catventure Admin Adventurer
Number of posts : 412 Age : 72 Location : UK Humor : Enjoys a laugh! Adventure Points : 77 Registration date : 2008-06-08
| Subject: TAB Alpha Version 38 Available Fri Jul 18, 2008 6:18 pm | |
| Hi,
18 Jul 2008 ( Release 38 ) ========= *NEW. "#else#" ACTION command implemented. An extension to TAB coding.
EXAMPLE: [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 command 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]
*ADDED. New parser variable CONDITIONS that were missing or forgotten: charn1=charn2 - is parser variable charn1 the same number as parser variable charn2? charn2=charn1 charn1<>charn2 - is parser variable charn1 not the same as parser variable charn2? charn2<>charn1
*ADDED. When entering CONTAINER objects in the Object Editor, TAB now warns user that the corresponding location number will be used as its contents holder. If accepted that Location will be flagged as "Inside of Object X." and will not be editable in the Locations Editor.
catventure.
Last edited by catventure on Sun Aug 03, 2008 1:23 pm; edited 1 time in total |
|
catventure Admin Adventurer
Number of posts : 412 Age : 72 Location : UK Humor : Enjoys a laugh! Adventure Points : 77 Registration date : 2008-06-08
| Subject: Re: TAB Alpha Version 38 Available Sun Jul 20, 2008 12:42 am | |
| 20 Jul 2008 (Release 38.1) ========= FIX. "#else#" not functioning correctly. Amended
FIX. Condition "objlocn2=absent" was missing due to duplication of "objlocn2=here"
Regards, catventure. |
|