Is this code usable in squiffy
TyCamden
26 May 2016, 14:48I saw the following code in a thread:
thread: viewtopic.php?f=24&t=6291
Is the above code usable in squiffy?
I ask because I could not get it to work.
<object name="animal_1">
<attr name="type" type="string">lion</attr>
</object>
<object name="animal_2">
<attr name="type" type="string">zebra</attr>
</object>
if (this.type = "lion") {
msg ("Oh... %@$@#.... I can't outrun it and I don't have any weapon/protection.... $#@$@#!")
msg ("The hungry lion easily chases you down, tears you to shreds, and gobbles you up.")
msg ("GAME OVER")
finish
} else if (this.type = "zebra") {
msg ("You admire the beautifully white and black striped zebra.")
}
thread: viewtopic.php?f=24&t=6291
Is the above code usable in squiffy?
I ask because I could not get it to work.
Dennis Carlyle
27 May 2016, 02:05No, it's not code that can be used in Squiffy. It's offered up as an example of "if/else" logic that's often used in game scripts.
The post it's in says it's "Text Adventure" syntax. Not sure if that refers to Quest's script language or something else.
The post it's in says it's "Text Adventure" syntax. Not sure if that refers to Quest's script language or something else.