my map has 100 script folders and about 1.000 sripts.. how should i describe it?
in every mission folder there are like 10 scripts.
if you fail at one of my missions then i enable scripts, that were enabled by default. i disable scripts that were disabled by default. i reset all timers and counters. i remove and respawn all mission units. i just restore everything regarding that mission. i set everything to the same as it was when the mission started for the first.
if you want to make a checkpoint at the defending part then you have to restore the exact same situation which was there before you started failing at it. that means: remove the units 1-6, all base units, all base buildings, all enemy waves, then spawn/transfer all of them again. also enable scripts that were enabled when that part started first. disable scripts that were disabled. reset all timers and counters regarding that mission segment.. if you manage to restore the situation then it will start again.. thats how restarts in my mission map work.
just check out my map. open any mission folder, for example m01p0. the script "m01p0 success" will set the map up for the next mission of player0. that means: disable current mission folder, enable next mission folder. "m01p0 fail" resets this mission for player0 again. its really hard to describe this.. best way is if you try to understand the scripts yourself..
Edited by user
14 years ago |
Reason: Not specified