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 | 
 

 TAB Coding Extension: "else"

View previous topic View next topic Go down 
AuthorMessage
catventure
Admin Adventurer
avatar

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

PostSubject: TAB Coding Extension: "else"   Thu 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.

_________________
http://tab.thinbasic.com ; Home of the TAB I.F. project.


Last edited by catventure on Fri Jul 18, 2008 1:41 pm; edited 1 time in total
Back to top Go down
View user profile http://adventure.rpgdynasty.com
MidKnight
Apprentice Adventurer
avatar

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

PostSubject: Re: TAB Coding Extension: "else"   Thu 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
View user profile
 

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: