-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Labels
Description
Request from the blog.
could you make a script where it inflicts a state based on how much mp the character has?
This could be achieved in a few ways.
- Formula Effects: http://himeworks.com/2014/02/formula-effects/
Basically, you would write a formula that specifies whether a state should be added or not. Formula supports both the attacker and the target.
For example, if you want to add state 5 to the target if the attacker's MP is less than 100, or state 6 if MP is less than 200, you would do something like this
<formula effect>
if a.mp < 100
b.add_state(5)
elsif a.mp < 200
b.add_state(6)
end
</formula effect>
- Conditional Effects: http://himeworks.com/2014/03/conditional-effects/
Assign conditions to each effect. Each condition is a formula.
This is not as flexible because conditions are mutually exclusive (there's no way to have one condition depend on another condition), but if it's something simple then it should be fine.
Reactions are currently unavailable