Manwe_Sulimo
New Member
- Reaction score
- 0
I have problems with this spell, i worked for hours on this (it is just for fun purposes only)
sense of it: when paladin casts a dummy spell 4/7/10 units (allied non-undead, or enemy undead) in 450 range are healed / damaged by holy light
the weird thing is that it doesn't work properly (either no holy light is done, or just once)
note that the dummy unit i use has 0 spell animation and the spell has no cooldown or mana cost
the weird thing is mainly that the first loop does hardly work at all (a text message i used to test showed but the holy light and so on makes problems), while thee second one does work slightly better (the tinting is done, only the retinting is not done)
any one got a clue where the problem is?
sense of it: when paladin casts a dummy spell 4/7/10 units (allied non-undead, or enemy undead) in 450 range are healed / damaged by holy light
the weird thing is that it doesn't work properly (either no holy light is done, or just once)
note that the dummy unit i use has 0 spell animation and the spell has no cooldown or mana cost
Trigger:
- Mass Heal
- Events
- Unit - Paladin 0004 <gen> Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Mass Holy Light
- Actions
- Set PA1[1] = (1 + (3 x (Level of Mass Holy Light for Paladin 0004 <gen>)))
- Set PA3 = (Position of Paladin 0004 <gen>)
- Set PA2[1] = (Units within 450.00 of PA3 matching (((((Matching unit) belongs to an enemy of Player 1 (Red)) Equal to True) and ((((Matching unit) is Magic Immune) Equal to False) and ((((Matching unit) is Undead) Equal to True) and (((Matching unit) is alive) Equal to Tr
- Unit - Create 1 Dummy for Player 1 (Red) at PA3 facing Default building facing (270.0) degrees
- Set PA4[1] = (Last created unit)
- Unit - Add Mass Holy Light (target) to PA4[1]
- Unit Group - Pick every unit in PA2[1] and do (Actions)
- Loop - Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- PA1[2] Less than or equal to PA1[1]
- Then - Actions
- Unit - Order PA4[1] to Human Paladin - Holy Light (Picked unit)
- Wait 0.01 game-time seconds
- Animation - Change (Picked unit)'s size to (300.00%, 300.00%, 300.00%) of its original size
- Else - Actions
- Do nothing
- If - Conditions
- Set PA1[2] = (1 + PA1[2])
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Loop - Actions
- Unit - Add a 0.01 second Generic expiration timer to PA4[1]
- Unit Group - Pick every unit in PA2[1] and do (Actions)
- Loop - Actions
- Animation - Change (Picked unit)'s vertex coloring to (100.00%, 0.00%, 0.00%) with 0.00% transparency
- Wait 5.00 game-time seconds
- Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
- Loop - Actions
- Custom script: call RemoveLocation(udg_PA3)
- Events
the weird thing is mainly that the first loop does hardly work at all (a text message i used to test showed but the holy light and so on makes problems), while thee second one does work slightly better (the tinting is done, only the retinting is not done)
any one got a clue where the problem is?