Skip to content

SpellDataNamedValueFloatDriver

14.7

Inheritance 3 ancestors

Class Documentation

Edit documentation

Float logic driver returning a named data value from a specific spell's data, evaluated at a spell level. The spell is the one named by Spell, and ValueName selects which of its data values to read.

The driver determines the level per evaluation: if SpellLevel is set, the driver evaluates it (against the same owner) and truncates the result to an integer. Otherwise it searches the owner unit's spellbook for the spell by hash and uses the spell's current rank. The driver returns 0 when the spell hash cannot be resolved. It also returns 0 when no level source is available (no SpellLevel driver and the owner does not have the spell), and when the resulting level is above 6.

Properties

SpellLevel

Pointer<ILogicFloatDriver> = null
Edit documentation

Optional float driver supplying the spell level explicitly, truncated to an integer. Unset, the owner's current rank of Spell is used instead.

ValueName

String = ""
Edit documentation

Name of the spell data value to read, matched by hash (the string is hashed once and cached).