Any idea why these commands aren't working on Spectrum? They work fine in Adventuron.
start_at = my_location locations { my_location : location "Testing one, two, three!" ;On Spectrum, the commands aren't recognised:
} on_describe {
: if (is_at "my_location" && is_in_section_one) {
: print "Type 'one', 'two' or 'three'." ;
}
: if (is_at "my_location" && is_in_section_two) {
: print "Success! We're past the choice bit." ;
}
} on_command { : match "one_" {
: if (is_in_section_one) {
: set_integer var = "choice_result" value = "1" ;
: set_false "is_in_section_one" ;
: set_true "is_in_section_two" ;
: redescribe;
}
}
: match "two_" {
: if (is_in_section_one) {
: set_integer var = "choice_result" value = "2" ;
: set_false "is_in_section_one" ;
: set_true "is_in_section_two" ;
: redescribe;
}
}
: match "three_" {
: if (is_in_section_one) {
: set_integer var = "choice_result" value = "3" ;
: set_false "is_in_section_one" ;
: set_true "is_in_section_two" ;
: redescribe;
}
}
} booleans {
is_in_section_one : boolean default = "true" ;
is_in_section_two : boolean default = "false" ;
} integers {
choice_result : integer "0" ;
}
Grateful for any ideas about what could be going wrong!