I'm trying to setup a formula that only affects an enemy.
I’m trying to use the following, which works when you defeat an enemy, but when an Elly is defeated it errors due to the b.enemyId() not existing for an actor
I'm using Formula Effects by HimeWorks
The formula I have so far
if(b.hp == 0) {
$gameVariables.setValue(5, b.enemyId());
$gameSwitches.setValue(3, true);
}
I’m trying to use the following, which works when you defeat an enemy, but when an Elly is defeated it errors due to the b.enemyId() not existing for an actor
I'm using Formula Effects by HimeWorks
The formula I have so far
if(b.hp == 0) {
$gameVariables.setValue(5, b.enemyId());
$gameSwitches.setValue(3, true);
}