TAB - thinBasic Adventure Builder

T.A.B. is an interactive fiction/text adventure program for Windows and made with thinBasic.
 
HomeFAQSearchUsergroupsRegisterLog in
Latest topics
» TAB Version 66 Available
Mon Sep 26, 2016 12:02 pm by catventure

» TAB Version 65 Available
Mon Feb 23, 2015 12:04 pm by catventure

» Incubation pt 1
Wed Apr 24, 2013 9:24 am by Kabrinski

» Charecter movements - doors
Wed Mar 20, 2013 2:55 pm by garethfx

» Member feedback on game planning
Sun Mar 03, 2013 1:47 pm by garethfx

» Still alive - just!
Thu Feb 28, 2013 11:34 am by catventure

» TAB 64 crashes ...
Mon Aug 20, 2012 11:31 am by acko

» Idea on addition to object being container
Sat Aug 18, 2012 3:49 pm by catventure

» sizex=y action ...
Thu Aug 09, 2012 11:29 am by catventure


Share | 
 

 Request Charecter follow you and stop following you

View previous topic View next topic Go down 
AuthorMessage
garethfx
Experienced Adventurer


Male
Number of posts : 85
Age : 59
Location : Wales
Humor : Nothing like having a good laugh - oh and a pint!
Adventure Points : 53
Registration date : 2009-09-28

PostSubject: Request Charecter follow you and stop following you   Sat Feb 19, 2011 4:19 pm

HI Phil.

Just started developing some charecter movements. Ive set some so that in the start of game play the charecter is static in one location i.e. a house.

I looked through the charecter commands example and as far as it goes it meets the eventuallities I'd like, so not to reinvent the wheel I used those.

I now need to prompt certain charecters to follow the player when the player requests them to do so and stop in a location and stay there until the player comes back for them.

Ive looked through the tutorial and through te example command list and either im not seeing it or its not there but is there a command to do these 2 tasks - or am I pushing the system a little to hard

Gareth
Back to top Go down
View user profile
catventure
Admin Adventurer
avatar

Male
Number of posts : 376
Age : 65
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 52
Registration date : 2008-06-08

PostSubject: Re: Request Charecter follow you and stop following you   Sun Feb 20, 2011 8:51 am

garethfx wrote:

I now need to prompt certain charecters to follow the player when the player requests them to do so and stop in a location and stay there until the player comes back for them.
Ive looked through the tutorial and through te example command list and either im not seeing it or its not there but is there a command to do these 2 tasks - or am I pushing the system a little to hard


Hi Gareth,

Sure it can be done.

First you need to check/ensure the following words are present in the Vocabulary Editor:

V /quit/stop/
N /me/
N /following/

Entries needed in Character Editor Responses List:

'=========
[start]follow/follow me#charpresent%speech%[acts]cmess%speechname% agrees to follow you...#pattchar%speech%=follow[end]

[start]quit following/quit following me#charpresent%speech%[acts]cmess%speechname%: "I will no longer follow you then."#pattchar%speech%=random[end]

[start]wait[acts]cmess%speechname%: "I will wait here then."#pattchar%speech%=static[end]
'==========

If you want the Character to default to "static" when the player tells them to quit/stop following then alter the second entry above to:

[start]quit following/quit following me#charpresent%speech%[acts]cmess%speechname%: "I will no longer follow you then."#pattchar%speech%=static[end]

The third entry will also stop the character following and set its pattern to "static".

These entries work for ALL characters as written - you may need to customise them a bit so that they activate only for your preferred chars via the "speech" conditions.

Cheers,
Phil.



_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down
View user profile http://adventure.rpgdynasty.com
garethfx
Experienced Adventurer


Male
Number of posts : 85
Age : 59
Location : Wales
Humor : Nothing like having a good laugh - oh and a pint!
Adventure Points : 53
Registration date : 2009-09-28

PostSubject: Re: Request Charecter follow you and stop following you   Sun Feb 20, 2011 9:46 am

Thats great phil.

This ones a new code set experience and I thought best ask on this . Ill be at it asap.

Gareth
Back to top Go down
View user profile
garethfx
Experienced Adventurer


Male
Number of posts : 85
Age : 59
Location : Wales
Humor : Nothing like having a good laugh - oh and a pint!
Adventure Points : 53
Registration date : 2009-09-28

PostSubject: Re: Request Charecter follow you and stop following you   Sun Feb 20, 2011 12:37 pm

Hi Phil
Gave that all a go and checked that the code in the Charecter Command area was the same - It is. The worlds are in the right areas vebs and Nouns.

I tried it using follow me fred and follow and fred follow me, then just follow me and follow. each time I get "Thas not possible"

I then went to the example game - Charecter commands. I tried it there using smith but I get the same message.


Any ideas what may be wrong here. The code is word for word - Ive retyped it in, cut and paste and checked it against the examples in the post here and from the example. still the same

Gareth
Back to top Go down
View user profile
catventure
Admin Adventurer
avatar

Male
Number of posts : 376
Age : 65
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 52
Registration date : 2008-06-08

PostSubject: Re: Request Charecter follow you and stop following you   Sun Feb 20, 2011 6:55 pm

Hi Gareth,

To command characters in TAB use the format:

>say to <character>, <command(s)>

For example:
>say to farmer, get knife

or--

>say <character>, <command(s)>

For example:
>say farmer, get knife

or--

><character>, <command(s)>

For example:
>farmer, get knife


Do these inputs work:

>smith,follow me

>smith, stop following me

Thanks,
Phil.

_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down
View user profile http://adventure.rpgdynasty.com
garethfx
Experienced Adventurer


Male
Number of posts : 85
Age : 59
Location : Wales
Humor : Nothing like having a good laugh - oh and a pint!
Adventure Points : 53
Registration date : 2009-09-28

PostSubject: Re: Request Charecter follow you and stop following you   Sun Feb 20, 2011 8:51 pm

yep that does it of. In the farmer example it fails because there are no commands to cover - and thats right.
The Charector command - works ok there as well - I was not using the correct syntex. But I got it so far

I copied and pasted the whole charector command section from the example and pasted it across again.

Almost missed the System Message 86 - Spent ages looking at the code then realised - went back to the "Readme" and got the prompt to back to the command example - sure enough all there.

Seems to be working. now thanks - Note to self - Make note of commands to interact and put in a help file for the end users to use themselves ..............lol

cheers again Phil for the bail out.......

Gar

Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Request Charecter follow you and stop following you   

Back to top Go down
 

Request Charecter follow you and stop following you

View previous topic View next topic Back to top 

 Similar topics

+
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
TAB - thinBasic Adventure Builder :: TAB FORUMS :: General Forum-
Jump to: