I want to make a spell that's damage is (100 + 3 x int) x (level of skill + 1) so ı created this triggerLightning
-
Events
-

Unit - A unit Starts the effect of an ability
-
-
Conditions
-

Lightning Equal to (Ability being cast)
-
-
Actions
-

Set int = (Intelligence of (Triggering unit) (Include bonuses))
-

Game Cache - Store (Real(int)) as int of Category1 in (Last created game cache)
-

Set numberofbolts = (Level of Lightning for (Triggering unit))
-

Game Cache - Store (Real(numberofbolts)) as lvllightning of Category2 in (Last created game cache)
-

Unit - Cause (Triggering unit) to damage (Target unit of ability being cast), dealing ((100.00 + (Load int of Category1 from (Last created game cache))) x ((Load lvllightning of Category2 from (Last created game cache)) + 1.00)) damage of attack type Spells and damage type Normal
-
but it always damages enemy 80
could you tell me what mus I do?

Last edited by a moderator:


