Like the title states, I want to be able to compare two variables on a per attack and per spell basis for a map I'm working on.
Ex:
When attacked, if variable 1 > variable 2, an effect could be applied and vice versa.
When a person is hit with an ability if variable 1 > variable 2, they are fully hit by the effect, and in the reverse, they can take half or less of the full damage.
Both of these examples would be based on equations that would add up to each variable.
An example of this would be: if a fighting type unit is an expert at fighting with a specific weapon, they get bonuses towards being able to hit more often or do damage to a target; not only that, but they can get bonuses based on chosen passive skills and magical items, etc.
I suppose the question is: how can I do these comparisons using the trigger/data editor?
I'm assuming a rough version would have the variables stored in a global variable and then use the event "Unit has attacked" (forget exact syntax), and then comparing the variables in the conditions to give the desired effects.
Like the title states, I want to be able to compare two variables on a per attack and per spell basis for a map I'm working on.
Ex:
When attacked, if variable 1 > variable 2, an effect could be applied and vice versa.
When a person is hit with an ability if variable 1 > variable 2, they are fully hit by the effect, and in the reverse, they can take half or less of the full damage.
Both of these examples would be based on equations that would add up to each variable.
An example of this would be: if a fighting type unit is an expert at fighting with a specific weapon, they get bonuses towards being able to hit more often or do damage to a target; not only that, but they can get bonuses based on chosen passive skills and magical items, etc.
I suppose the question is: how can I do these comparisons using the trigger/data editor?
I'm assuming a rough version would have the variables stored in a global variable and then use the event "Unit has attacked" (forget exact syntax), and then comparing the variables in the conditions to give the desired effects.