I saw the following code in a thread:
<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=6291Is the above code usable in squiffy?
I ask because I could not get it to work.