i'm about creating my first game using quest and i got problem about detecting wether the exit (in this case have name roomunlock) is locked or unlocked.
here's the code:
if (HasAttribute(roomunlock, "locked")) {
UnlockExit (roomunlock)
msg ("you open the room")
}
else {
LockExit (roomunlock)
msg ("you lock the room")
}
with that code, i keep have message "you lock the room" again and again .... what is the valid code for detect exit locked or not ?
sorry about my bad english, not my mother language ... and i'll appreciate any kind of help from you guys.