I'm working on a golem unit that should spawn a smaller golem every time it is damaged with a value over 25. I'm trying to use custom respond effect on state 27's notes to get the variable to increase by one, which would spawn a smaller golem once if the damage on it was over 25. Essentially, every time the golem is damaged over 25, one spawn of smaller golems appears. I'll attach everything I've done so far but if I need to supply anymore information please let me know. Also, I'm a beginner so explaining every minor thing might help me more! 😀
Elder Iron Golem --> State 27 (if damage over 25 increase variable 12 by 1) --> Variable 12 (If variable 12 is increased by 1 common event 8 should allow one smaller golem to appear)
Discord: Jeramy#7017 (if you would like to explain through share screens/mic/messages)
Notes for state 27:
<Custom Respond Effect>
if (this.isHpEffect() && value > 25)
$gameVariables.setValue(12, $gameVariables.value(12) + 1);
</Custom Respond Effect>
State 27:
Common Event: 8
Troop 32 / Variable 12:
Enemies: Elder Iron Golem (35) / Baby Iron Golem (36)
Elder Iron Golem --> State 27 (if damage over 25 increase variable 12 by 1) --> Variable 12 (If variable 12 is increased by 1 common event 8 should allow one smaller golem to appear)
Discord: Jeramy#7017 (if you would like to explain through share screens/mic/messages)
Notes for state 27:
<Custom Respond Effect>
if (this.isHpEffect() && value > 25)
$gameVariables.setValue(12, $gameVariables.value(12) + 1);
</Custom Respond Effect>
State 27:
Common Event: 8
Troop 32 / Variable 12:
Enemies: Elder Iron Golem (35) / Baby Iron Golem (36)