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 | 

 understanding carriedX

View previous topic View next topic Go down 
Apprentice Adventurer

Number of posts : 35
Age : 69
Adventure Points : 0
Registration date : 2008-06-10

PostSubject: understanding carriedX   Thu Jul 31, 2008 10:41 pm

I've looked in the language.txt file and have been trying to understand the carriedX.

Could someone explain how this is to be used?

Back to top Go down
View user profile
Admin Adventurer

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

PostSubject: Re: understanding carriedX   Fri Aug 01, 2008 11:36 am

Hi Sandy,



Check if a particular object is carried by player or not carried by player

X = object number

Object 5 = a sword

Character 1 = a creature

Example usage:

attack creature with sword#charpresent1#carried5[acts]cmessYou swing the sword and swiftly decapitate the creature. It is dead.#charloc1=0#else#charpresent1#notcarr5[acts]cmessBut you aren't holding a sword![end]

This translates as:
IF character 1 (the creature) is present AND the sword is carried THEN kill the creature and remove it from game (set its location to 0) ELSE IF the creature is here but the sword is not carried THEN tell the player via a cmess action...

There are also companion commands:

objlocn1=carried - is objn1 carried?
objlocn1=notcarried - is objn1 not carried?

Here is a further example which could follow the above one:

attack %charn1% with %objn2%#charpresentn1#objlocn2=carried[acts]cmessYou attack %charname1% with the %objn2%. It didn't seem to have any effect...#else#charpresentn1#objlocn2=notcarried[acts]cmessBut you aren't holding a %objn2%![end]

This will trigger if the player tries to attack ANY valid character with ANY valid object providing the character is present and will produce a different reply depending on if the object in question is carried or not carried.


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

understanding carriedX

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: