Running_dap
New Member
- Reaction score
- 3
Is it possible to show the custom value of a unit to a spell/abilities tooltip? If not, is it possible to show what a (integer) variable contains on a spell/ability's tooltip?
Nope. The variable is not possible nor the custom value
What do you need it for?
Maybee there is a way to work around it
Rawrawr
Events
Unit - A unit Gains a level
Conditions
Actions
Set SpellPower = (3 x (Intelligence of (Leveling Hero) (Exclude bonuses)))
Unit - Set level of Spell Power for (Leveling Hero) to (3 x (Intelligence of (Leveling Hero) (Exclude bonuses)))
Rawrawr
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Firebolt (Neutral Hostile)
Actions
Set SpellPower = (3 x (Intelligence of (Leveling Hero) (Include bonuses)))
Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing ((390.00 x (1.30 x (Real((Level of Firebolt (Neutral Hostile) for (Casting unit)))))) + (Real(SpellPower))) damage of attack type Spells and damage type Normal
[B]Name:[/B] Firebolt
[B]Description:[/B] The mage conjures a powerful bolt of fire and throws it at the enemy, dealing 150 DMG (+3 DMG per Spell Power)
Make a dummy ability With super many Lvl's?
Set the description to:
lvl 1 = unit has 1 spell power
lvl 2 = unit has 2 spell power
etc.
then you have an integer with the units spell power. and when ever the unit gets + spell power in any kidn of way. Ex.
unit casts an ability
set spell power integer =spell power integer + x
set lvl of Spellpower for triggering unit to spell power (integer)
Or just make abilities triggered, and write in the description a Value, called SpellPower, like this:
Firebolt: Deals 100+(Hero Level * Spell Power) damage to target.
And make a trigger to check this Spell Power if you write in chat the word, -spellpower.