and one by DuncanS (that lets you specify the amount of health needed for substitute to trigger)class Scene_Battle < Scene_Base
#--------------------------------------------------------------------------
# overwrite : Check Substitute Condition
#--------------------------------------------------------------------------
def check_substitute(target, item)
(!item || !item.certain?)
end
end
I tried both in a new project, below materials, above main, but substitute just works standart as always (meaning it wont trigger if the ally is above 25%HP).
- class Scene_Battle < Scene_Base
- #--------------------------------------------------------------------------
- # * Check Substitute Condition
- #--------------------------------------------------------------------------
- def check_substitute(target, item)
- # default value is 25%, change it to whatever you want
- target.hp < target.mhp / 4 && (!item || !item.certain?)
- end
- end