somewhere, he'd have to put in a hint message of some sort for this, which can be done most commonly (but not only way):
Add a~new script -> Output -> Print a message -> [MESSAGE] -> textual message
or
Add a~new script -> Output -> Print a message -> [EXPRESSION] -> various scripts or script messages
if (count > 4) {
msg ("Finally, with a struggle the door came free and smashed against the wall.")
// Other stuff
}
else {
msg ("The door is too tight to be opened.")
msg ("But, you're stubborn...")
}
this.count = this.count + 1
----------
flags ~ booleans are binary (dualistic~adversarial~opposites): true~false, on~off, yes~no, positive ~ negative, up ~ down, in ~ out, jumping ~ falling ~ walking ~ running ~ flying ~ swimming ~ drowning, blessed ~ cursed, armed ~ unarmed, and etc...
(lots of combination choices of how to use them)
orc.dead=true -> (dead)
orc.dead=false -> (alive)
orc.alive=true -> (alive)
orc.alive=false -> (dead)
orc.flying=true -> (not walking)
orc.walking=true -> (not running)
orc.running=false -> (walking)
light.switched_off=yes -> (unlit)
light.switched_on=no -> (unlit)
etc etc etc
And, they can easily be changed ~ "flagged" (set ~ setted), too:
orc.dead=false -> orc.dead=true -> dead orc
orc.alive=true -> orc.alive=false -> dead orc
and then put with with conditionals (such as "If" script):
if (orc.dead=true) {
player.experience = player.experience + orc.experience
player.cash = player.cash + orc.cash
msg ("You killed the orc!")
} else { // orc.dead=false
player.hp = player.hp - orc.damage
msg ("The orc attacks you!")
}
<object name="orc">
<dead type="boolean">false</dead>
</object>
if (player.attacks) {
orc.dead=true // this changes the orc from being "flagged" as alive to being "flagged" as now dead
msg ("You fatally struck the orc with your sword!")
}
// after the player.attacks script occurs successfully, the orc object now looks like this:
<object name="orc">
<dead type="boolean">true</dead>
</object>
// which would then activate the "if (orc.dead=true), then give the orc's exp and cash to player" script block