- Joined
- Jul 16, 2013
- Messages
- 40
- Reaction score
- 5
- First Language
- English
- Primarily Uses
I originally found the script below on this site. There is a link to the exact page below. Anyway, I would like to know if it is possible to edit this script so that it uses a variable instead of an HP percentage. More specifically, if an actor has the substitute flag, I want them to cover for any actor whose HP is lower than or equal to the value in the specified variable.
Where I found the script: http://forums.rpgmak...ult-substitute/
Where I found the script: http://forums.rpgmak...ult-substitute/
- 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
Last edited by a moderator:

