// swapterrain.txt
// v1.0.0
// By Thralni

// This very simple scripts waits untill a terrain object on it's space is being searched, and then flips the terrain on it.

beginterrainscript; 

variables;

body;

beginstate INIT_STATE;
break;

beginstate START_STATE;
break;

beginstate SEARCH_STATE;
	flip_terrain(my_loc_x,my_loc_y);
	play_sound(-58);
break;