... | @@ -51,9 +51,17 @@ In this example, the extra "IgnitionDamage" skill would only fire if the |
... | @@ -51,9 +51,17 @@ In this example, the extra "IgnitionDamage" skill would only fire if the |
|
- ignite{ticks=20}
|
|
- ignite{ticks=20}
|
|
- effects:particles{}
|
|
- effects:particles{}
|
|
|
|
|
|
In this example is a placeholder from MMOItems being stored inside a variable.
|
|
In this example is a placeholder from MMOItems being stored inside a int/float variable.
|
|
|
|
|
|
PlaceholderDamage:
|
|
PlaceholderDamage:
|
|
Skills:
|
|
Skills:
|
|
- setvariable{var=caster.new_skill_damage;value="%mmoitems_stat_skill_damage%";type=INTEGER} @self
|
|
- setvariable{var=caster.new_skill_damage;value="%mmoitems_stat_skill_damage%";type=INTEGER} @self
|
|
- damage{a="100 * <caster.var.new_skill_damage>"} @PIR{r=5}
|
|
- damage{a="100 * <caster.var.new_skill_damage>"} @PIR{r=5}
|
|
|
|
|
|
|
|
Also,other variables can be stored inside a int/float variable.
|
|
|
|
|
|
|
|
VariableDamage:
|
|
|
|
Skills:
|
|
|
|
- setvariable{var=caster.VariableA;value="%mmoitems_stat_skill_damage%";type=INTEGER} @self
|
|
|
|
- setvariable{var=caster.VariableB;value="%<caster.var.VaribaleA> * 2";type=INTEGER} @self
|
|
|
|
- setvariable{var=caster.VariableC;value="<caster.var.VaribaleA> + <caster.var.VaribaleB>";type=INTEGER} @self |
|
|
|
\ No newline at end of file |