getEffectEvolution
Shared
Reads the level of one of an effect's evolutions.
float|false getEffectEvolution(effect effect, string name)
Parameters
| Name | Type | Description |
|---|---|---|
| effect | effect | The effect. |
| name | string | The evolution's name. Case does not matter. |
Returns
The level, or false if that evolution was never set with setEffectEvolution, or with a wrong argument.
Example
local fire = createEffect("fire_large", 0, 0, 3)
setEffectEvolution(fire, "strength", 0.3)
outputDebugString(getEffectEvolution(fire, "STRENGTH")) -- 0.3