Skip to content

Inflict state based on MP #264

@HimeWorks

Description

@HimeWorks

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.

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>

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions