sheep
New Member
- Reaction score
- 2
Why dont my double event work, my actions dont respont to "Unit - A unit Begins channeling an ability". Why is that? And what can I do to solve it.
Trigger:
- Equiping items
- Events
- Unit - A unit Begins channeling an ability
- Unit - A unit Uses an item
- Conditions
- (Item-class of (Item being manipulated)) Equal to Artifact
- Actions
- Game - Display to (All players) the text: (Name of (Item being manipulated))
- Game - Display to (All players) the text: (casting unit + (Name of (Casting unit)))
- -------- Items --------
- If ((Ability being cast) Equal to Cloak ) then do (Set loadi = Cloak) else do (Do nothing)
- Game - Display to (All players) the text: (loadi + (String(loadi)))
- -------- Init --------
- Set Temp_ability = (Ability being cast)
- -------- Subtracting stats --------
- Game - Display to (All players) the text: (String(Equipment_stats[13]))
- Hero - Modify Strength of (Casting unit): Subtract Equipment_stats[(Integer((Substring((String((((Integer((Substring((String(loadi)), 1, 2)))) - 10) + (10 x (Player number of (Triggering player)))))), 3, 4))))]
- Hero - Modify Agility of (Casting unit): Subtract Equipment_stats[(Integer((Substring((String((((Integer((Substring((String(loadi)), 1, 2)))) - 10) + (10 x (Player number of (Triggering player)))))), 5, 6))))]
- Hero - Modify Strength of (Casting unit): Subtract Equipment_stats[(Integer((Substring((String((((Integer((Substring((String(loadi)), 1, 2)))) - 10) + (10 x (Player number of (Triggering player)))))), 7, 8))))]
- -------- Saving stats --------
- Set Equipment_stats[(((Integer((Substring((String(loadi)), 1, 2)))) - 10) + (10 x (Player number of (Triggering player))))] = loadi
- -------- Adding stats --------
- Hero - Modify Strength of (Casting unit): Add (Integer((Substring((String(loadi)), 3, 4))))
- Hero - Modify Agility of (Casting unit): Add (Integer((Substring((String(loadi)), 5, 6))))
- Hero - Modify Intelligence of (Casting unit): Add (Integer((Substring((String(loadi)), 7, 8))))
- -------- Remove old spell --------
- If ((Integer((Substring((String(loadi)), 1, 2)))) Equal to 13) then do (Unit - Remove Equipment_abilitys[(3 + ((Player number of (Triggering player)) x 10))] from Equipment[(Player number of (Triggering player))]) else do (-------- Head --------)
- If ((Integer((Substring((String(loadi)), 1, 2)))) Equal to 12) then do (Unit - Remove Equipment_abilitys[(2 + ((Player number of (Triggering player)) x 10))] from Equipment[(Player number of (Triggering player))]) else do (-------- gloves --------)
- If ((Integer((Substring((String(loadi)), 1, 2)))) Equal to 11) then do (Unit - Remove Equipment_abilitys[(1 + ((Player number of (Triggering player)) x 10))] from Equipment[(Player number of (Triggering player))]) else do (-------- Neckless --------)
- -------- Inset new --------
- Unit - Add Temp_ability to Equipment[(Player number of (Triggering player))]
- Set Equipment_abilitys[(((Integer((Substring((String(loadi)), 1, 2)))) - 10) + (10 x (Player number of (Triggering player))))] = Temp_ability
- Events