Recently I made a map full of traps in Indiana Jones style (spikes, trenches, flames etc) and they mechanics so far works only for a leader of party, wich I make it like that
The trap in spoiler mechanics is that you press certain button, certain spikes will hide allowing player (team) to pass through, but after given time spikes will popup, piercing leader and making game over if leader stands on them. What I want achieve is that if
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:
In this case Pixie should die, leaving rest unharm.
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);
}
}
}
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: