Does the issue occur in the editor or during gameplay? If it occurs during gameplay, please specify which movement system is being used (free movement or grid movement):
Gameplay, Both
Briefly describe the issue you're experiencing:
Anything in a script below a set_terrain_types
command will NOT trigger!
Took an age to find out why a script was not being executed!
Turned out the above command was prematurely ending the script...nothing below happens.
Are there any errors in the in-game debug console or external console window?
No
Provide the steps necessary to reproduce the issue:
- have a tile with a player prohibited terrain on a map
- create a script like this:
display_message("changing terrain...");
set_terrain_types(player, ALL, array["terrain_name"]);
display_message("Terrain changed!");
- run game and exec above script
- message 1 will display, the terrain type will set (so you can now walk on the terrain), but message 2 will not show, nor anything else that would happen after.