-- everything is a location, an object or a timer --
Most functions accept attributes as parameters. Attributes can have a
variety of types, which would make the parameter overview quite
difficult to read;
In order to preserve the readability of the tables with parameter
overviews, attributes are not listed in the tables (except for the
equal() function).
For each of the above items, an attribute parameter may be substituted.
So in case there is, for example, a location listed as a parameter,
this parameter may also be an attribute that holds a location.
In case an attribute contains another attribute, it will retrieve this
attribute's value.
When a location or object is stored in an attribute, the attribute can
be used to refer to the object's descriptions, flags, triggers or
attributes. References can be 1 level deep:
printcr(r_last_visited.d_sys) is a valid statement, whereas
printcr(r_room.r_visitor.d_sys) is not.
The XVAN interpreter keeps track of the contents type of an attribute.
E.g. if an attribute is loaded with a value, it cannot be used as a
location. The following is invalid and will cause a runtime error:
r_attrib = 4503
printcr(r_attrib.d_sys) # runtime error
An attribute does not have to stick with one type. The number attribute
in the previous example can be assigned a direction in a new assignment
statement.
Attribute parameters have the following possible syntaxes:
Attributes |
Syntax |
Remark |
|
local attribute |
Will use local attribute from current location or object |
global attribute |
Will use global attribute from current location or object |
|
location.localattribute |
Location may not be a wildcard |
|
object.localattribute |
Object may not be a wildcard |
|
location.globalattribute |
location may be a wildcard |
|
object.globalattribute |
object may be a wildcard |
Text strings are used for descriptions and as function parameters, for
print() functions. Several functions for printing are available. In
order to limit the number of consecutive print calls in the game source
text, wildcards and ids may also be used in text strings.
So, instead of:
print("There ")
print(%this.r_to_be_verb)
print(" ")
print(%a)
print(" ")
print(%this)
printcr(" here.")
This will do the same:
printcr("There [this.r_to_be_verb] [a] [this] here.")
The string parameter may contain the following ids and wildcards:
string |
Id or wildcard |
remarks |
|
[l_<locname>] |
Any location, will print d_sys |
[o_<objname>] |
Any object, will print d_sys |
|
[m_<timer>] |
Any timer, will print timer value |
|
[d_description] |
Any description, will print the text
(*) |
|
[d_attribute] |
Any attribute, will print its value
(*) |
|
[l_location] |
The player's current location |
|
[o_actor] |
The actor from the user input |
|
[o_subject] |
The subject from the user input |
|
[o_spec] |
The specifier from the user input |
|
[action] |
The action from the user input |
|
[this] |
The location or object executing this trigger |
|
[dir] |
The direction from the user input |
|
[prepos] |
The preposition from the user input |
|
[value] |
The value from the user input |
|
[ord] |
The ordinal number from the user input |
|
[the] |
Prints 'the' if the location or object following has an article
defined with it. |
|
[a] |
Prints 'a' or 'an' if the location or object following has an
article defined with it. |
(*)
In case a local attribute or local description is used without a
preceding location or object, the compiler will prefix it with the id of
the location or object that is currently being compiled. For strings
that are being compiled in verb definitions, there must always be a
location or object prefix ,as verbs are self-contained and not
associated with a particular location or object.
(the following section is from the XVAN introduction manual)
So, as we are creating Interactive Fiction works, text will be an
important part of the story. Strings can be very lengthy, which makes
the story’s source code harder to read. XVAN has a number of mechanisms
to format text strings so the story source is easier to read, without
affecting the way how the string is printed.
All carriage returns and spaces after a ‘/’ will be ignored up to the
next non-<cr>-or-space character.
d_long_descr "This is a very very long description that /
goes on and on and on over several /
lines in the source file, but it will print /
as one line on the screen.”
Will print as:
This is a very very long description that goes on and on and on over
several lines in the source file, but it will print as one line on the
screen.”
Example:
d_long_descr "This is a very very long description that”
“ goes on and on and on over several“
“ lines in the source file, but it will print”
“ as one line on the screen.”
This is a very very long description that goes on and on and on over
several lines in the source file
but it will print as one line on the screen.
The following string formatting characters are available:
d_descr "This is a string with a \n, a \t, a \” and a \\ in it.”
Will print as:
This is a string with a
, a , a “ and a \ in it.
The remainder of this document describes the functions that are available in XVAN. You may use the hyperlinks to quickly jump to a function.
Add a choice and a response to the choices list.
addchoice() |
Parameter 1 |
Parameter 2 |
remarks |
|
string of text |
string of text |
Delimited by “” |
Adds parameter 1 to the list of possible choices. When selected, the
text string in parameter 2 is returned as user input (as if it were
typed from the keyboard).
Note: works only in ifi-xvan version, will be ignored by other releases.
IFI-XVAN maintains a json textstring that can be used by the story to
communicate directly with the graphical front-end (GUI). The json string
can be controlled by means of the addjson(), sendjson() and clearjson()
functions.
addjson() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
string |
location
object |
-- |
parameter 2 is optional |
|
|
|
|
|
The text string and object/location ID are added to the json string.
sending an inventory update to the GUI;
changing
an icon in the gui (e.g. lamp on or off icon);
sending
a map update to the gui
Ends the further execution of a trigger and tells the interpreter that
it is ok to offer the action record to other locations and objects for
processing.
No parameters.
Exits the trigger.
This is the default value when returning from a trigger. If neither
agree(), disagree() or nomatch() is present at the end of a trigger, the
compiler will insert an agree() function.
Change the console window background color.
background() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
word |
-- |
-- |
'blue' or 'black' |
|
|
|
|
Changes the color of the console window background.
Blue
and black are possible background colors, they must be defined as words
in the vocabulary file.
Selecting
blue implies white text.
Selecting
black implies white text.
Removes an existing exit from a location.
blockexit() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
direction |
-- |
|
|
|
|
|
Direction is no longer a valid exit from the location
The function works one-way. If there is a ‘way back’ it will remain
available.
Checks whether parameter 1 can see parameter 2
cansee() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
location |
-- |
|
object |
object |
|
|
Returns true or false.
All combinations of parameter 1 and parameter 2 are allowed.
Sets the value of a flag to 0.
clearflag() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
local flag |
-- |
-- |
Will use local flag from current location or object |
common flag |
-- |
|
Will use common flag from current location or object |
|
location.localflag |
-- |
|
Location may not be a wildcard |
|
object.localflag |
-- |
|
Object may not be a wildcard |
|
location.commonflag |
-- |
|
|
|
object.commonflag |
-- |
|
|
Flag value is 0
--
IFI-XVAN maintains a json textstring that can be used by the story to
communicate directly with the graphical front-end (GUI). The json string
can be controlled by means of the addjson(), sendjson() and clearjson()
functions.
No parameters.
The json string is cleared.
The
IFI Library contains predefined XVAN verb source code for interacting
with the GUI.
Blank the main screen.
No parameters.
Fills the main screen with the background color.
--
Clear the status window.
No parameters.
Fills the status screen with the background color.
--
Manually execute the t_entrance trigger for a location or object's
contained objects, but not for the location/object itself.
contents() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
|
|
|
object |
|
|
|
Trigger t_entrance will be executed for the contained objects of
Parameter 1 but not for parameter 1 itself.
Contents() has the following possible return values:
Determine the number of objects in a location or object contains that
comply with the value of the flag parameter.
count() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
Parameter 4 |
remarks |
|
location |
Common flag |
0 or 1 |
[level] |
|
object |
|
|
|
|
Returns a number.
Example 1:
count(l_room, f_takeable, 1) will return the number of
objects that are owned by l_room with common flag f_takeable set to 1.
Example 2:
count(o_bed, f_takeable, 1, 2) will return the number of
objects that are max 2 levels in the containment tree below o_bed and
with common flag f_takeable set to 1.
Turn on debug mode.
debug() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
number |
-- |
-- |
Number can be 0, 1 or 2 |
|
|
|
|
Debug(1) prints indented messages when entering and leaving triggers.
Debug(2): debug(1), plus additionally prints function calls (function
name and parameter values).
Debug(0): turns off debug mode.
Find the destination when going in a certain direction without actually
going there.
dest() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
direction |
-- |
|
object |
|
|
|
Effects:
Returns the location when traveling from the location in parameter in
the direction in parameter 2..
When parameter 1 is an object, the object's location will be used.
Ends the further execution of a trigger and tells the interpreter not to
offer the action record to other locations and objects for processing.
No parameters.
Exits the trigger.
Further handling of the action record will be terminated.
--
Determine the distance between locations or objects.
distance() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
location |
|
|
object |
object |
|
|
Returns an integer that denotes the number of moves between parameter 1
and parameter 2.
Integer division
div |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
attribute |
attribute |
attribute |
|
timer |
timer |
timer |
|
|
|
value |
value |
|
Calculates the integer division of parameter 2 and parameter 3 and
stores the result in parameter 1.
Syntax:
Execute the t_entrance trigger for a location or object's contained
objects, as well as for the location/object itself.
entrance() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
|
|
|
object |
|
|
|
Trigger t_entrance will be executed for the Parameter 1 location or
object and its contained objects.
Entrance() has the following possible return values:
Checks whether parameter 1 and parameter 2 have identical values
equal() |
Parameter 1 |
Parameter 2 |
Remark |
|
location |
location |
|
object |
object |
|
|
local attribute |
Local attribute |
Will use local attribute from current location or object |
|
global attribute |
global attribute |
Will use global attribute from current location or object |
|
location.localattribute |
location.localattribute |
Location may not be a wildcard |
|
object.localattribute |
object.localattribute |
Object may not be a wildcard |
|
location.globalattribute |
location.globalattribute |
|
|
object.globalattribute |
object.globalattribute |
|
|
timer |
timer |
Will use the timer value |
|
direction |
direction |
|
|
word |
word |
|
|
value |
value |
|
Returns true or false.
Execute the t_exit trigger for location /object and all its contained
objects.
exit() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
|
|
|
object |
|
|
|
Trigger t_exit will be executed for the Parameter 1 location or object
and its contained objects.
Exit() has the following possible return values:
“[dir]” -> t_move # dir is a wildcard to denote a direction
t_move
if valdir(l_location, dir) then
if exit(l_location) then # call all t_exit triggers
move(o_player, dir) # move updates current location
entrance(l_location) # call all t_entrance triggers
endif
else
printcr(“You can’t go that way.”)
nomatch() # let other objects react.
endif
agree()
Determine the direction of the first move to a location.
firstdir() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
location |
|
|
object |
object |
|
|
Returns the direction for the first move when traveling from parameter 1
to parameter 2.
Get information on the specifier needed to complete an action.
No parameters.
Asks the user to enter the specifier necessary to process his input.
“Unlock [o_door]”
printcr(“What do you want to unlock [the] [o_door] with?)
getspec()
> unlock the door
How do you want to unlock the door?
Ok, the door is now unlocked.
The above example assumes the location will have a trigger for “unlock
[o_door] with [o_key]” to print the last line.
Get information on the subject needed to complete an action.
No parameters.
Asks the user to enter the subject necessary to process his input.
“take ”
printcr(“What do you want to take?)
getsubject()
What do you want to take?
> old brass key
old brass key, taken.
The above example assumes the location will have a trigger for “take
[o_key]” to print the last line.
Let’s object travel to the location, using the possible exits that the
locations offer.
goto() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
object |
location |
[moves] |
Parameter 3 is optional with default value 1 |
|
|
|
|
|
This function will try to generate a path from the Parameter 1 object's
current location to the parameter 2 location. If such a path exists, the
object will be moved the number of moves as indicated by Parameter 3.
if equal(owner(o_fred), l_dest) then
# fred has reached the destination
stopcounter(m_move_fred)
# insert here what Fred must do when he reaches his destination
else
# Fred is not yet at l_dest
# Move Fred to the next location on the route to l_dest
goto(o_fred, l_dest)
# reset the timer for the next round, it fires at value 1
setcounter(m_move_fred, 0)
endif
agree()
Pause further execution until the player hits a key.
No parameters.
Continues when the player hits a key.
Add whites spaces before the next string that is printed
indent() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
number |
-- |
-- |
Positive or negative value |
-- |
-- |
-- |
|
The interpreter has an internal indent value that is set to 0 when the
story starts.
When called with a value in Parameter1, the internal indent value is
increased by the value of Parameter 1.
When called with no parameters, the interpreter will print the number of
white spaces indicated by the interpreter's internal indent value.
Check whether a location or an object is a source of light (i.e. it
emits light) or is in the line of sight of a light source.
islit() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
|
|
|
object |
|
|
|
Returns true or false.
> turn off the lamp
It is now pitch black.
> turn on the lamp
You cannot see a lamp here
> turn off the lamp
It is now pitch black.
> turn on the lamp
You are in a twisty passage.
Check something is an object..
isobject() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
|
|
|
object |
|
|
|
|
local attribute |
|
|
|
|
common attribute |
|
|
|
Returns true when parameter 1 is an object, otherwise returns false.
--.
Move an object into another object or a location.
Function() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
object |
location |
[word] |
|
object |
object |
|
|
|
object |
direction |
|
|
Create a new exit between 2 locations.
newexit() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
direction |
location |
|
|
|
|
|
A passage from Parameter 1 location to Parameter 3 location with the
direction as specified in parameter 2.
Informs the interpreter that it should discard the fact that there was a
matching action record.
No parameters.
Exits the trigger.
The nterpreter will continue as if there were no match. Nomatch() will also
count for the contained objects.
Prevents the timers from being fired at the end of a turn.
No parameters.
Timers will not be fired and associated triggers will not be executed.
Get an object’s containing location or object.
owner() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
object |
|
|
|
|
|
|
|
Returns the location or object that contains the Parameter 1 object
--
Check whether an object is contained in a location or object.
owns() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
Parameter 4 |
remarks |
|
location |
object |
[depth] |
[word] |
|
object |
|
|
|
|
Returns true or false.
Randomly select one item of a list.
pickone() |
Parameter 1 |
Parameter 2 |
Parameter n |
remarks |
|
Anything but a string |
Anything but a string |
Anything but a string |
Parameters may be of different types. |
|
|
|
|
Returns one of the parameters in the parameter list.
There is no maximum number of parameters.
Switches playmode.
playmode() |
Parameter 1 |
Parameter 2 |
Parameter n |
remarks |
|
word |
-- |
-- |
Interpreter, choice or hybrid |
Interpreter mode: user input via keyboard . For IFI-XVAN links, compass
etc work as per the settings in the story file.
Choice mode: user input via selecting a choice from a list of choices.
For IFI-XVAN links, compass and sidebar are enabled in this mode.
Hybrid mode: only for IFI-XVAN. In the side bar a shortcut list will be
displayed, but keyboard input is also enabled.
Print text on the screen.
print() |
Parameter 1 |
Parameter 2 |
remarks |
|
String of text |
|
Delimited by “” |
commondescription |
|
|
|
localdescription |
|
|
|
location.commondecscription |
|
|
|
object.commondescription |
|
|
|
location.localdescription |
|
Location may not be a wildcard |
|
object.localdescription |
|
Object may not be a wildcard |
|
location |
|
Will print last used location.d_sys |
|
object |
|
Will print last used object.d_sys |
|
timer |
|
Will print timer value |
Prints the Parameter 1 (content) on the screen.
Similar to print(), but prints a carriage return at the end of the
printed text.
Note: works only in Glk and Linux console version, will be ignored by
other releases.
Stop playing the story and exit the program.
No parameters.
Ends the story playing session.
--
Remainder part of division
rem |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
attribute |
attribute |
attribute |
|
timer |
timer |
timer |
|
|
|
value |
value |
|
Calculates the remainder of the integer division of parameter 2 and
parameter 3 and stores the result in parameter 1.
Syntax:
Start the game from scratch.
No parameters.
The same as quitting the game and starting it again.
Restores a session previously saved by the save() function.
No parameters.
Restores the story playing session to the situation saved earlier by the
save() function.
This function will search for the file save.dat in the current
directory.
Calculate a random number.
rnd() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
value |
value |
-- |
Value must be a number |
|
|
|
|
Effects:
Will return an integer between Parameter 1 and Parameter 2 (borders
included).
Example: rnd(1,3) will return either 1, 2 or 3.
Run common trigger code from a local trigger.
No parameters.
When called from a local trigger, this function will run the local
trigger’s common trigger code (if any) and then return to the trigger.
Run verb code from a trigger.
No parameters.
When called from a trigger, this function will run the verb code for the
current action and then return to the trigger.
Save the current story progress.
No parameters.
Saves the current progress so it can be restored later by using the
restore() function.
This function will save the current story progress in file save.dat in
the current directory.
IFI-XVAN maintains a json textstring that can be used by the story to
communicate directly with the graphical front-end (GUI). The json string
can be controlled by means of the addjson(), sendjson() and clearjson()
functions.
No parameters.
The json string is sent.
Give instructions to parser in case of ambiguity when parsing user input
.
score() |
Parameter 1 |
Parameter 2 |
Remark |
|
number |
-- |
|
Certain combinations of actor, subject and specifier get higher
priority.
VERB drop
"drop [o_subject]"
AMBIGUITY_RULES
if owns(o_actor, o_subject) then score(5)
END_RULES
move(o_subject, owner(o_subject))
ENDVERB
VERB drop
"drop [o_subject]"
AMBIGUITY_RULES
if owns(o_player, o_subject) then score(5)
END_RULES
if not(owns(o_player, o_subject) then
print("But you are not holding [the] [o_subject])
else
move(o_subject, owner(o_subject))
endif
ENDVERB
Position the cursor in the statuswindow.
setcursor() |
Parameter 1 |
Parameter 2 |
Remark |
|
x-position |
y-position |
both parameters must be numbers |
Positions the cursor in the statuswindows on position (x,y).
Set the value of a flag to 1.
setflag() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
commonflag |
|
|
|
localflag |
|
|
|
|
location.commonflag |
|
|
|
|
object.commonflag |
|
|
|
|
location.localflag |
|
|
Location may not be a wildcard. |
|
object.localflag |
|
|
Object may not be a wildcard. |
The Parameter 1 flag will be set to 1.
--
Randomly change the order of a location or object's contained objects
list.
shuffle() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
-- |
-- |
|
object |
-- |
-- |
|
Randomizes the response order from contained objects.
Start a timer.
starttimer() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
timer |
|
|
|
|
|
|
|
Timer status will be set to start.
The timer will start from its current value.
Stop a timer.
stoptimer() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
timer |
|
|
|
|
|
|
|
Timer status will be set to stop.
--
Execute a common trigger for objects that are contained in a location or
object and that comply with the value of the flag parameter.
synchronize() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
Parameter 4 |
Parameter 5 |
|
location |
common trigger |
common flag |
0 or 1 |
[level] |
object |
|
|
|
|
Returns the number of the objects that executed their trigger.
synchronize(l_room, t_take_by_fred , f_takeable, 1)
will
execute trigger t_take_by_fred for the objects that are owned by l_room
with common flag f_takeable set to 1. It will return the number of
objects that actually executed the trigger.
Test whether a flag has been set (value = 1).
testflag() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
commonflag |
|
|
|
localflag |
|
|
|
|
location.commonflag |
|
|
|
|
object.commonflag |
|
|
|
|
location.localflag |
|
|
Location may not be a wildcard. |
|
object.localflag |
|
|
Object may not be a wildcard. |
Returns true or false.
if testflag(this, f_locked) then
printcr(“But [the] [this] is locked. You must unlock it first.”)
endif
agree()
Read user input from a file rather than from the keyboard.
No parameters.
The interpreter will start reading the input from file "testinput.txt".
After the end of the file has been reached, the interpreter will switch
back to keyboard input.
Change the text color.
text() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
word |
-- |
-- |
'blue' or 'black' |
|
|
|
|
Changes the text color.
Copy all user input and interpreter output to a file.
No parameters.
The interpreter will copy the user input and the interpreter output to
file "transcript.txt". Calling transcript() when it is already active
will turn it off.
Execute a trigger.
trigger() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
commontrigger |
|
|
|
localtrigger |
|
|
|
|
location.commontrigger |
|
|
|
|
object.commontrigger |
|
|
|
|
location.localtrigger |
|
|
Location may not be a wildcard. |
|
object.localtrigger |
|
|
Object may not be a wildcard. |
Executes the Parameter 1 trigger.
Tries to execute a command in a text string for the given scope.
try() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
Parameter 4 |
remarks |
|
location |
0 or 1 |
0 or 1 |
string of text |
|
object |
|
|
|
|
|
common attribute |
|
|
|
|
|
local attribute |
|
|
|
|
|
location.commonattribute |
|
|
|
|
|
location.localattribute |
|
|
|
|
|
object.commonattribute |
|
|
|
|
|
object.localattribute |
|
|
|
|
Creates an action record from the text string parameter 3 and offers it
to the location/object in parameter 1 for execution.
t_clear_chest
if cansee(o_npc, o_chest) then
if try(o_npc, 1, 0, “[o_npc], open [o_chest]”) then
if not(try(o_npc, 1, 0, “[o_npc], take [o_all] from [o_chest]”) then
disagree()
(it’s a bit more complicated, e.g. what to do when the player is in the
same room as the chest? But this example illustrates the purpose of
try().
Revert to the game state after the previous turn.
undo() |
Parameter 1 |
Parameter 2 |
Parameter n |
remarks |
|
[word |
-- |
-- |
clear |
.Effects:
Restores the situation from before the last move..
Check whether a direction is a valid exit.
valdir() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
location |
direction |
|
|
commonattribute |
commonattribute |
|
|
|
localattribute |
localattribute |
|
|
|
location.commonattribute |
location.commonattribute |
|
|
|
object.commonattribute |
object.commonattribute |
|
|
|
location.localattibute |
location.localattibute |
|
Location may not be a wildcard. |
|
object.localattribute |
object.localattribute |
|
Location may not be a wildcard. |
Returns true or false.
Wait one or more moves
wait() |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
number |
-- |
-- |
|
|
|
|
|
Effects:
The number of moves indicated in Parameter 1 will pass without further
user input. For each move, the timers will be processed.
--
Ask the player to enter yes or no.
No parameters.
Returns true if the player enters yes.
Add parameters
+ |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
attribute |
attribute |
attribute |
|
timer |
timer |
timer |
|
|
|
value |
value |
|
Parameter 2 and 3 are added and the result is stored in parameter 1.
Syntax:
Add parameters
+= |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
attribute |
attribute |
-- |
|
timer |
timer |
|
|
|
|
value |
|
|
Parameter 2 is added to parameter 1.
Syntax:
Subtract parameters
- |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
attribute |
attribute |
attribute |
|
timer |
timer |
timer |
|
|
|
value |
value |
|
Parameter 3 is subtracted from parameter 2 and the result is stored in
parameter 1.
Syntax:
Subtract parameters
-= |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
attribute |
attribute |
-- |
|
timer |
timer |
|
|
|
|
value |
|
|
Parameter 2 is subtracted from parameter 1.
Syntax:
Multiply parameters
* |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
attribute |
attribute |
attribute |
|
timer |
timer |
timer |
|
|
|
value |
value |
|
Parameter 2 and 3 are multiplied and the result is stored in parameter
1.
Syntax:
Multiply parameters
*= |
Parameter 1 |
Parameter 2 |
Parameter 3 |
remarks |
|
attribute |
attribute |
-- |
|
timer |
timer |
|
|
|
|
value |
|
|
Parameter 1 is multiplied by parameter 2.
Syntax:
.