- Joined
- Jul 23, 2019
- Messages
- 80
- Reaction score
- 15
- First Language
- Traditional Chi
- Primarily Uses
- RMMV
Hi, is there a way to save a battler's actor id to variable so they are removed either when the state wears off or are removed when knocked out?
I've tried several variations but cannot seem to save the actor id as variables
example: (state 223 is a passive state all summon gets)
<Custom Remove Effect>
if (b.isStateAffected(223))
{
$gameVariables.setValue(50, BattleManager._action ? 1 + BattleManager._action._targetIndex : -999);
$gameParty.removeActor($gameVariables.value(50));
target.performCollapse();
// Clear the target's results.
target.clearResult();
}
<Custom Remove Effect>
Have also tried
var ID = b;
$gameVariables.setValue(50, ID);
or similar ones like (var ID = user var ID = target) but none of it seems to work.
Using troops common events with span of turn works and removes the dead summons but gives a huge fps drop every turn.
The common event is shown in the picture, skill 267 only appears on dead summon when they are knocked out using a passive state.
I've tried several variations but cannot seem to save the actor id as variables
example: (state 223 is a passive state all summon gets)
<Custom Remove Effect>
if (b.isStateAffected(223))
{
$gameVariables.setValue(50, BattleManager._action ? 1 + BattleManager._action._targetIndex : -999);
$gameParty.removeActor($gameVariables.value(50));
target.performCollapse();
// Clear the target's results.
target.clearResult();
}
<Custom Remove Effect>
Have also tried
var ID = b;
$gameVariables.setValue(50, ID);
or similar ones like (var ID = user var ID = target) but none of it seems to work.
Using troops common events with span of turn works and removes the dead summons but gives a huge fps drop every turn.
The common event is shown in the picture, skill 267 only appears on dead summon when they are knocked out using a passive state.