kelogsloops
You can change this now in User CP.
- Reaction score
- 45
Okay so I made an ability and based it off Brilliance Aura. the ability gives the hero passive armor piercing which was a second ability i added through triggering and that works, but most of all, this ability allows the hero to create illusions passively with X chance of occuring, like PL's illusion spell.
This is my coding
The thing is, i want it to limit to 6 illusions. Each illusion lasts for 10 seconds and an invisible dummy has a generic timer of 10 seconds, so that each dummy 'acts' as a number in the unit group for the illusion since i can't add an illusion to the unit group. It starts off fine, except that it maxes at 7 illusions for some strange reason, then when those all die, it makes 6 or 5 illusions max i think, and then it stops working.
This is my coding
Trigger:
- Crystalline Focus Add
- Events
- Unit - A unit Learns a skill
- Conditions
- (Learned Hero Skill) Equal to Crystalline Focus X
- Actions
- Unit - Add Crystalline Focus to (Triggering unit)
- Unit - Set level of Crystalline Focus for (Triggering unit) to (Level of Crystalline Focus X for (Triggering unit))
- Events
Trigger:
- Make Illusion
- Events
- Unit - A unit Is attacked
- Conditions
- Or - Any (Conditions) are true
- Conditions
- (Level of Crystalline Focus for (Attacking unit)) Equal to 1
- (Level of Crystalline Focus for (Attacking unit)) Equal to 2
- (Level of Crystalline Focus for (Attacking unit)) Equal to 3
- (Level of Crystalline Focus for (Attacking unit)) Equal to 4
- Conditions
- (Random integer number between 1 and 100) Less than or equal to (25 x (Level of Crystalline Focus for (Attacking unit)))
- Or - Any (Conditions) are true
- Actions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- (Number of units in IllusionNumber) Less than or equal to 6
- Then - Actions
- Set Temp_loc = (Position of (Attacking unit))
- Unit - Create 1 Dummy Test Visible for (Owner of (Attacking unit)) at Temp_loc facing Default building facing degrees
- Unit Group - Add (Last created unit) to IllusionNumber
- Hero - Create Wand of Illusion and give it to (Last created unit)
- Set item = (Last created item)
- Hero - Order (Last created unit) to use item on (Attacking unit)
- Unit - Add a 10.01 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_Temp_loc)
- Wait 10.01 seconds
- Unit Group - Remove (Last created unit) from IllusionNumber
- Else - Actions
- Do nothing
- If - Conditions
- If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- Events
The thing is, i want it to limit to 6 illusions. Each illusion lasts for 10 seconds and an invisible dummy has a generic timer of 10 seconds, so that each dummy 'acts' as a number in the unit group for the illusion since i can't add an illusion to the unit group. It starts off fine, except that it maxes at 7 illusions for some strange reason, then when those all die, it makes 6 or 5 illusions max i think, and then it stops working.