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
TAB Coding Extension: "else" I_icon_minitimeToday at 9:54 am by catventure

» How to engage in intelligent conversation with NPCs?
TAB Coding Extension: "else" I_icon_minitimeYesterday at 9:01 pm by catventure

» refine player-available gender/name options
TAB Coding Extension: "else" I_icon_minitimeMon Nov 18, 2024 6:04 pm by catventure

» Incubation pt 1
TAB Coding Extension: "else" I_icon_minitimeSun Nov 17, 2024 4:22 pm by catventure

» Happy New Year 2024!
TAB Coding Extension: "else" I_icon_minitimeSun Dec 31, 2023 4:04 pm by catventure

» TAB Version 71
TAB Coding Extension: "else" I_icon_minitimeMon Aug 21, 2023 12:17 pm by catventure

» TAB Version 70
TAB Coding Extension: "else" I_icon_minitimeSun Oct 02, 2022 1:49 pm by catventure

» TAB Version 70
TAB Coding Extension: "else" I_icon_minitimeFri Sep 30, 2022 10:23 pm by catventure

» TAB Version 70
TAB Coding Extension: "else" I_icon_minitimeMon May 23, 2022 4:08 pm by catventure


Share | 
 

 TAB Coding Extension: "else"

View previous topic View next topic Go down 
AuthorMessage
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

TAB Coding Extension: "else" Empty
PostSubject: TAB Coding Extension: "else"   TAB Coding Extension: "else" I_icon_minitimeThu Jul 17, 2008 5:30 pm

Hi,

I'm pleased to announce ACTION command #else# is back for next release !

Example RESPONSE usage format:

[start]words conditions#condition#condition[acts]action#action#else#condition#condition[acts]action#action#else#condition#condition[acts]action#action#else#[acts]action[end]

Therefore you can have multiple conditions and actions in respect of the SAME starting "words conditions". .. Think about it; it could save writing several individual entries to build up a particular game puzzle and also cuts down on typing too!

Think of action "#else#" as meaning ELSE IF. The last use of action "#else#" in this example shows how to do an ELSE DO type of statement.

In other words if NONE of the previous Response entry conditions and actions were executed then this default action in respect of the valid words conditions will ALWAYS be done. Notice there are no conditions before the [acts] tag for this "catch-all" usage of "#else#"

Example SCRIPT 1 or 2 usage format:

[start]condition[acts]action#else#condition#condition[acts]action#else#condition[acts]action[end]

There are no "words conditions" in these coding editors but you could use #else# as above
to truncate several entries into a single entry to save space...

You can still use the or-checking syntax ( "or_" prefix on conditions) in this new extension to TAB coding as well.

[start]words condition#or_ condition#or_condition[acts]action#else#or_condition#or_condition[acts]action#else#[acts]action[end]

Hope you like it!

Best wishes,

Phil.


Last edited by catventure on Fri Jul 18, 2008 1:41 pm; edited 1 time in total
Back to top Go down
https://adventure.forumotion.com
MidKnight
Apprentice Adventurer
MidKnight

Male
Number of posts : 32
Age : 54
Location : Haworth Yorkshire
Humor : I am a Vulcan, I don't have emotions
Adventure Points : 0
Registration date : 2008-06-08

TAB Coding Extension: "else" Empty
PostSubject: Re: TAB Coding Extension: "else"   TAB Coding Extension: "else" I_icon_minitimeThu Jul 17, 2008 10:24 pm

"Hope you like it!"

Like it? I could smear it in jam and eat it for breakfast.
One of the most handiest commands in TAB. Amazing how much code can be saved carefully using this command.

Jason
Back to top Go down
 

TAB Coding Extension: "else"

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: