Code:
for (var i = 0; i <= 2; i+=1){
var mapID = 40; //Map ID
var eSwitch = "A"; //Event switch
var p=[mapID,i,eSwitch];
if($gameSelfSwitches.value(p)){
if (($gameMap.event(i).x === $gameVariables.value(54)) && ($gameMap.event(i).y === $gameVariables.value(55)))
//Variables IDs 54 and 55 stores current X and Y of player
{
//Make game over - spikes pierced a leader... Add knockout to leader
$gameActors.actor(1).addState(1);
}
}
}Spoiler

some of party member will be left behind (standing on popup spikes) that party member will be killed. My question is how to do that with most efficient way since script event is limited to 12 lines?
(example. Party members 1 - 4 will make to pass through spikes, but all other had no luck and they were hit by spikes, causing them death)
edit:
Spoiler


