If you're using the gamebook mode or online version, I don't know how they work, but for the desktop version in Text Adventure mode, we've got the script:
http://quest5.net/wiki/Firsttimehttp://quest5.net/wiki/Category:All_Fun ... t_Commands (page 1, range: A-S)
http://quest5.net/w/index.php?title=Cat ... h#mw-pages (page 2, range: S-Z)
firsttime {
-> // your scripts
} otherwise {
-> // your scripts
}
---------
another script option is to simply use a boolean ("flag"):
<game name="blah">
-> // blah scripts
-> <key_on_lock_completed type="boolean">false</key_on_lock_completed>
-> <score type="int">0</score>
-> // blah scripts
</game>
in the unlock script block, have this:
if (game.key_on_lock_completed = false) {
// these 4 script lines below, and there matching above, might not be correctly done (you'd need to see how they're done, what are the "terms~labels" used and etc)
-> lock.unlocked = true // or maybe it's: lock.locked = false
-> lock.isopen = true
-> game.score = game.score + 1 // or, I guess it's suppose to be: IncreaseScore (1)
-> game.key_on_lock_completed = true
} else if (game.key_on_lock_completed = true) {
-> msg ("You've already completed this task of unlocking the lock with the key")