hi, i have made an integer variable which shall counts the speldmg incrase. but it is a bit bugged. so guys maybe a have a better idea how i can make items which incrase spelldmg like in the black road or maybe someone has this trigger from black road.
my idea was that a unit takes an item then the integer grow up and when the hero is loosing the item then remove the spelldmgbonus
and this for loosing it
so and this is for example a spell
(variablen definition: Speller (Player(player))
SpelldmgP (Integer(integer) Array(1)) )
thx for help where my misstake could be or tell me another way how to do thx
my idea was that a unit takes an item then the integer grow up and when the hero is loosing the item then remove the spelldmgbonus
-
GetBonus
-
Events
- Unit - A unit Acquires an item
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Actions
- If ((Item-type of (Item being manipulated)) Equal to Ring of the Old Mages (1)) then do (Set SpelldamageP[(Player number of Speller)] = (Spellincrease[(Player number of (Owner of (Triggering unit)))] + 5)) else do (Do nothing)
- If ((Item-type of (Item being manipulated)) Equal to test) then do (Set SpelldamageP[(Player number of Speller)] = (Spellincrease[(Player number of (Owner of (Triggering unit)))] + 1000)) else do (Do nothing)
-
Events
-
LoseBonus
-
Events
- Unit - A unit Loses an item
-
Conditions
- ((Triggering unit) is A Hero) Equal to True
-
Actions
- If ((Item-type of (Item being manipulated)) Equal to Ring of the Old Mages (1)) then do (Set SpelldamageP[(Player number of Speller)] = (Spellincrease[(Player number of (Owner of (Triggering unit)))] - 5)) else do (Do nothing)
- If ((Item-type of (Item being manipulated)) Equal to test) then do (Set SpelldamageP[(Player number of Speller)] = (Spellincrease[(Player number of (Owner of (Triggering unit)))] - 1000)) else do (Do nothing)
-
Events
and this for loosing it
so and this is for example a spell
-
holy smite
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Holy Smite
-
Actions
- Wait 0.30 seconds
- Unit - Cause (Casting unit) to damage (Target unit of ability being cast), dealing (Real((((Intelligence of (Triggering unit) (Include bonuses)) x 2) + SpelldamageP[(Player number of Speller)]))) damage of attack type Spells and damage type Normal
-
Events
(variablen definition: Speller (Player(player))
SpelldmgP (Integer(integer) Array(1)) )
thx for help where my misstake could be or tell me another way how to do thx
Last edited by a moderator: