TAB - thinBasic Adventure Builder
Would you like to react to this message? Create an account in a few clicks or log in to continue.

TAB - thinBasic Adventure Builder

T.A.B. is an interactive fiction/text adventure program for Windows and made with thinBasic.
 
HomeLatest imagesSearchRegisterLog in
Latest topics
» How was it done? Implementing in-game clocks
Re: Keys I_icon_minitimeToday at 9:54 am by catventure

» How to engage in intelligent conversation with NPCs?
Re: Keys I_icon_minitimeYesterday at 9:01 pm by catventure

» refine player-available gender/name options
Re: Keys I_icon_minitimeMon Nov 18, 2024 6:04 pm by catventure

» Incubation pt 1
Re: Keys I_icon_minitimeSun Nov 17, 2024 4:22 pm by catventure

» Happy New Year 2024!
Re: Keys I_icon_minitimeSun Dec 31, 2023 4:04 pm by catventure

» TAB Version 71
Re: Keys I_icon_minitimeMon Aug 21, 2023 12:17 pm by catventure

» TAB Version 70
Re: Keys I_icon_minitimeSun Oct 02, 2022 1:49 pm by catventure

» TAB Version 70
Re: Keys I_icon_minitimeFri Sep 30, 2022 10:23 pm by catventure

» TAB Version 70
Re: Keys I_icon_minitimeMon May 23, 2022 4:08 pm by catventure


Share | 
 

 Re: Keys

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

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

Re: Keys Empty
PostSubject: Re: Keys   Re: Keys I_icon_minitimeTue May 24, 2011 12:13 pm

Is it possible to have several different key types.

i.e Silver key, Gold Key, Bronse Key.

If i put this into object editor /silver key/ it doesnt like it I guess because of the space. I dont really want the user to have to type take silverkey as there should be a space after silver.
/silverkey/ does work however but i cannot put a synonym of /silverkey/key/ as I have several keys to be used in the game.

So all I want to know is can you have a space after a word in the object editor or does it all need to be just one word.

Thankyou.

Kind Regards

Stants
Back to top Go down
catventure
Admin Adventurer
catventure

Male
Number of posts : 410
Age : 72
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 77
Registration date : 2008-06-08

Re: Keys Empty
PostSubject: Re: Re: Keys   Re: Keys I_icon_minitimeTue May 24, 2011 5:29 pm

Hi Stants,

It's best not to have a lot of objects with same generic name...

You could use the

/long¯noun/

It is a type of noun (ordinary, object or character noun) that can have extra word(s) that are joined to it using a separator symbol making the TAB parser think that it is a single word...
For this separator symbol TAB uses: "¯"
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.


So you could use that for your KEY object noun "keywords". For example:

/gold¯key/

/silver¯key/

/bronze¯key/

but probably best not to have the noun single word "key" as an object noun synonym, but instead enter it as a separate ORDINARY noun eg:

/key/

The problem comes when the player types
>take key
>drop key
>examine key etc..etc..

Since several keys may exist in the game at the same time - Which key are they referring to?

One quite EASY solution could be to put an entry early up the list into the RESPONSE Editor such as:

[start]%_%#or_n1=XXX#or_n2=XXX[acts]cmessThere are several keys in the game. Please be more specific about which key you mean...[end]

XXX = substitute this with the ORDINARY general noun NUMBER of the key.

Translated this reads: If the player types ANY VALID input but has ALSO typed the ordinary noun "key" as a first or second noun; then print the message asking the player to be a bit more specific about which key he/she means.

That might be acceptable to you as a makeshift solution...

(There is probably another way to custom design the Response entry to make the program seem more "intelligent" by checking which (if any) key OBJECT is present or "here" (worn carried or in current room) and so ASSUME the player is referring to a particular one - and then reset the parser variables, use the "updatecommand" action and then the "jump" action to carry on response matching to the relevant KEY object noun... You would need to know exactly how many keys in the game and their numbers)


Regards,
catventure. (Phil)
Back to top Go down
https://adventure.forumotion.com Online
stants
Experienced Adventurer
stants

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

Re: Keys Empty
PostSubject: Re: Re: Keys   Re: Keys I_icon_minitimeWed May 25, 2011 12:26 pm

cool thanks phil.

Used the long noun and its working perfectly.

Many thanks

Cheers

Stants.
Back to top Go down
Sponsored content




Re: Keys Empty
PostSubject: Re: Re: Keys   Re: Keys I_icon_minitime

Back to top Go down
 

Re: Keys

View previous topic View next topic Back to top 
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: