Jump to content

TIP: Static user input (a hack, but it works)


mrb

Recommended Posts

I am using this script in a special town I constructed for debugging purposes. I wanted to be able to teleport into any town in the scenario without traipsing all over the outdoors. This state is triggered by a special encounter area on the floor in front of a portal. Obviously, any number of responses can be checked. Seems to work fine!

 

beginstate 10;

 

get_text_response("Enter town number:");

 

check_text_response_match("28");

if (got_text_match() == 1) {

print_str("Your party is teleported to the Haverly Estate...");

block_entry(1);

move_to_new_town(28,26,6);

end();

}

check_text_response_match("36");

if (got_text_match() == 1) {

print_str("Your party is teleported to the Operations Center...");

block_entry(1);

move_to_new_town(36,26,6);

end();

}

break;

 

The key to this is the end() statement, working just like a C break statement.

 

regards,

 

mrb

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...