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 67 Available
Yesterday at 5:01 pm by catventure

» 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

Share | 

 TAB Coding Extension: "then"

View previous topic View next topic Go down 
Admin Adventurer

Number of posts : 377
Age : 65
Location : UK
Humor : Enjoys a laugh!
Adventure Points : 53
Registration date : 2008-06-08

PostSubject: TAB Coding Extension: "then"   Sun Jul 20, 2008 10:19 am


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

Example RESPONSE usage format:

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

Therefore you can have multiple conditions and actions in respect of the SAME starting "words conditions".

Think of action "#then#" as meaning if previous actions triggered THEN DO next set of conditions/actions.

In other words if the FIRST Response entry conditions and actions were executed THEN do the next set of conditions and actions... If those have executed successfully then continue on to process the final set of conditions and actions!

Works also in Script 1 and 2.

This extension to the coding makes again for more power and flexibility.

Can be used to good effect in conjunction with "or_" conditions and "else" action as well.

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

In this second example the "then" action is only carried out if the set of actions following the "else" were done.

Will be present in next release.

Best wishes,

_________________ ; Home of the TAB I.F. project.
Back to top Go down
View user profile

TAB Coding Extension: "then"

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: