loop = true
while (loop) {
get input {
if (result = "keyword") {
msg ("you may continue")
loop = false
//stuff happens
}
else if (result = "leave") {
msg ("you give up, for now...")
loop = false
//go back
}
}
}
<function name="input">
get input {
on ready {
if (result = "keyword") {
msg ("you may continue")
// stuff happens
}
else if (result = "leave") {
msg ("you give up, for now...")
// go back
}
else {
msg("false")
input()
}
}
}
</function>
<game name="xxx">
</game>
<object name="global_data_object">
<attr name="gender_stringlist_attribute" type="simplestringlist">male;female</attr>
<attr name="xxx" type="script">
// blah scripts
</attr>
<object name="sword_1">
<alias>claymore</alias>
// etc Attributes
</object>
// etc other Objects and~or Attributes
</object>
// or, you can do locally too:
<object name="room">
<object name="room_local_data_object">
<attr name="gender_stringlist_attribute" type="simplestringlist">male;female</attr>
// etc other Objects and~or Attributes
</object>
</object>
// and you can also put scripts into Functions, which are global (I don't think Functions can be local).
// you can also put scripts into Commands, which are global (I don't think Commands can be local).
// there's also Turnscripts and Timers, both of which can be global or local.
// you can also use the 'game' Game Object to store data too (though I don't like to crowd this up, prefering to use the independent 'Data' Object