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 | 
 

 Re: Ships computer.

View previous topic View next topic Go down 
AuthorMessage
stants
Experienced Adventurer
avatar

Number of posts : 71
Age : 43
Location : Maidstone, Kent, UK
Humor : I shall tear your soul Apart!!!!!
Adventure Points : 32
Registration date : 2009-09-16

PostSubject: Re: Ships computer.   Sun May 01, 2011 5:58 pm

I need a little help with this. Youre on board the enterprise and you can see the ships computer. Im inserting code to allow speech commands to the computer so it can respond and play a sound file. The thing is I know a character can be male, female or it and also it can be made to be static. ( A non movable character). But a computer is not male or female so I guess I give it the it option.

Im not sure whether to enter the computer as a static object and maybe put code in the response editor. You can ask the computer questions i.e ask computer about <object>/<character>.

What would be the best way of doing this?

Create the computer as an object and put code into the response table
or create the computer as a static character and write character commands for it.

Im not sure if a computer is really a character though. Its an object isnt it but you can talk to it. Any help much appreciated.
Thankyou
Stants
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: Re: Ships computer.   Sun May 01, 2011 6:41 pm

stants wrote:

Im not sure whether to enter the computer as a static object and maybe put code in the response editor. You can ask the computer questions i.e ask computer about <object>/<character>.

What would be the best way of doing this?

Create the computer as an object and put code into the response table
or create the computer as a static character and write character commands for it.

Hi stants,
Hmmm... I am not sure either really Smile

I think I would enter it as a static object, assuming the computer is going to stay in the same place...
And then use "ask computer about XXX" type of commands, instead of
>computer, tell me about XXX
but a lot depends if you are only going to ask questions and elicit information.

You could even make it a non-object by just reference in the room description if needs be and not enter it in the Object Editor at all... Just an idea.
In that case you could enter /computer/ as an ORDINARY NOUN instead.

If making a character, I would agree with the "it" gender specification - although strictly speaking I would class it as an object.

Phil.


_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.
Back to top Go down
View user profile http://adventure.rpgdynasty.com
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: Re: Ships computer.   Sun May 01, 2011 7:00 pm

If making the ship's computer an OBJECT you could allow players to interact with it by cleverly using the LONG VERB facility...

LONG VERBS are words connected together to form one BIG verb by a separator symbol:

For this separator symbol I`ve chosen the » symbol which can be obtained by holding down the left ALT key and typing 0,1,7,5 on the numeric keypad then releasing the ALT key to get the » symbol.

Example Vocabulary Verb:

/computer »tell »me »about/

Player would type in an input something like this:

>computer tell me about XXXX


Response Entry would interpret as a simple VERB NOUN input!

[start]computer »tell »me »about XXXX#any conditions here[acts]actions here[end]

Worth thinking about.

Phil.



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

Number of posts : 71
Age : 43
Location : Maidstone, Kent, UK
Humor : I shall tear your soul Apart!!!!!
Adventure Points : 32
Registration date : 2009-09-16

PostSubject: Re: Re: Ships computer.   Sun May 01, 2011 7:08 pm

oh great that sounds pretty neat. Didnt even know you could do that. Dont think ive read that in the manual or maybe I just missed it.

Ill start coding in those response entries tommorrow.

Thanks for your help Phil

Kind Regards

Stants

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: Re: Ships computer.   Sun May 01, 2011 8:03 pm

Good. There's also long nouns too:
More info here:

http://ifiction.wordpress.com/2008/10/22/vocabulary-improves/

Phil.

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

Number of posts : 71
Age : 43
Location : Maidstone, Kent, UK
Humor : I shall tear your soul Apart!!!!!
Adventure Points : 32
Registration date : 2009-09-16

PostSubject: Re: Re: Ships computer.   Tue May 03, 2011 11:18 am

Hmmm computer not working properly in editor.

In Voabulary as a verb I have:

/computer»tell»me»about/

In the game flag2 i have set to 0 as computer is not working until an object or task has been completed. so in response I have:

[start]computer»tell»me»about %anywords%#flag2=0#[acts]playsamplecomputerunable.wav[end]

when i type in game computer tell me about <any words typed>

it doesnt understand

What am i doing wrong??

thankyou

Stants
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: Re: Ships computer.   Tue May 03, 2011 12:03 pm

I think I understand what you're trying to do - but it won't work with %anywords%. In fact you shouldn't need to use %anywords% at all. Also that action doesn't work exactly how you think it might either. It is only used at the end of RESPONSE list.

[start]%_%#v=XXX#flag2=0[acts]playsamplecomputerunable.wav[end]

How about the above entry? It will trigger if ANY VALID input is typed in but only work if the verb typed was the verb number of "computer»tell»me»about" and the flag 2 = 0 in which case should play the required sound file...

***But you need to insert another condition to check that the player is in the same room as the computer otherwise the entry will work in ANY location...
eg: room=X (CONDITION - is player in computer room)

[start]%_%#v=XXX#flag2=0#room=XXX[acts]playsamplecomputerunable.wav[end]


Please try and let me know

Phil.

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

Number of posts : 71
Age : 43
Location : Maidstone, Kent, UK
Humor : I shall tear your soul Apart!!!!!
Adventure Points : 32
Registration date : 2009-09-16

PostSubject: Re: Re: Ships computer.   Tue May 03, 2011 12:43 pm

Excellent Phil works a treat.

Thankyou very much kind sir.

Kind Regards

Stants.
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: Re: Ships computer.   Tue May 03, 2011 1:26 pm

Wow - you mean it really worked? cheers

I hadn't tried it - just assumed it would do Smile

That one entry alone saves having lots of other similar entries to cover asking about characters, objects, nouns etc

I take it then now I could type in

>computer tell me about spock

and assuming "spock" was a valid word in the vocab and if I hadn't got computer access yet, I would hear the computer unable .wav

Very neat!

Phil.

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

Number of posts : 71
Age : 43
Location : Maidstone, Kent, UK
Humor : I shall tear your soul Apart!!!!!
Adventure Points : 32
Registration date : 2009-09-16

PostSubject: Re: Re: Ships computer.   Wed May 04, 2011 9:21 am

hehe yes phil its working a treat. If you type computer tell me about <anything here> it plays wav file unable to comply. Library data disc required.

Ive set a flag so that when you are in the room and you are holding object 5 and you type insert disc it plays another wav file and you have access to the computers data files. Then the user can type computer tell me about <lots of subjects here> to get hints on what to do next.

Thanks for your help on this matter.

Working great.

Kind Regards

Stants.
Back to top Go down
View user profile
Sponsored content




PostSubject: Re: Re: Ships computer.   

Back to top Go down
 

Re: Ships computer.

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: