BarzahdX
Active Member
- Reaction score
- 18
I don't normally need help with the triggers I make, because they're basically logic.. However, I made these triggers, and they don't work--I just don't know why, at all.. They make sense, please help.
Two beginning triggers for this one are here.
Would be awesome if I could get it to work, but even if I can't--I'd at elast like to know why.. I have faith in you.
Code:
Rune of Grenk 2
Events
Time - Every 1.00 seconds of game time
Conditions
Actions
Set Unit_Group[4] = (Units within (150.00 x (Real((Level of Rune of Grenk for Hero[8])))) of Point_Array[5] matching (((Matching unit) belongs to an ally of (Owner of Hero[8])) Equal to True))
Set Unit_Group[5] = (Units within (150.00 x (Real((Level of Rune of Grenk for Hero[8])))) of Point_Array[5] matching (((Matching unit) belongs to an enemy of (Owner of Hero[8])) Equal to True))
Set Unit_Group[6] = (Units within (150.00 x (Real((Level of Rune of Grenk for Hero[8])))) of Point_Array[5] matching ((((Matching unit) belongs to an ally of (Owner of Hero[8])) Equal to True) and ((Current movement speed of (Matching unit)) Less than 400.00)))
Unit Group - Pick every unit in Unit_Group[4] and do (Actions)
Loop - Actions
Set Attacked_Position[2] = (Position of (Picked unit))
Unit - Create 1 Rune Warden Dummy for Neutral Hostile at Attacked_Position[2] facing Default building facing degrees
Unit - Add a 0.40 second Generic expiration timer to (Last created unit)
Unit - Add Runic Slow to (Last created unit)
Unit - Set level of Runic Slow for (Last created unit) to 3
Unit - Order (Last created unit) to Undead Necromancer - Cripple (Picked unit)
Custom script: call RemoveLocation(udg_Attacked_Position[2])
Unit Group - Pick every unit in Unit_Group[5] and do (Actions)
Loop - Actions
Set Attacked_Position[2] = (Position of (Picked unit))
Unit - Create 1 Rune Warden Dummy for Neutral Passive at Attacked_Position[2] facing Default building facing degrees
Unit - Add a 0.40 second Generic expiration timer to (Last created unit)
Unit - Add Runic Slow to (Last created unit)
Unit - Set level of Runic Slow for (Last created unit) to 2
Unit - Order (Last created unit) to Undead Necromancer - Cripple (Picked unit)
Custom script: call RemoveLocation(udg_Attacked_Position[2])
Unit Group - Pick every unit in Unit_Group[6] and do (Actions)
Loop - Actions
Set Attacked_Position[2] = (Position of (Picked unit))
Unit - Create 1 Rune Warden Dummy for Neutral Passive at Attacked_Position[2] facing Default building facing degrees
Unit - Add a 0.40 second Generic expiration timer to (Last created unit)
Unit - Add Runic Slow to (Last created unit)
Unit - Set level of Runic Slow for (Last created unit) to 1
Unit - Order (Last created unit) to Undead Necromancer - Cripple (Picked unit)
Custom script: call RemoveLocation(udg_Attacked_Position[2])
Two beginning triggers for this one are here.
Code:
Rune of Grenk 1
Events
Unit - A unit Spawns a summoned unit
Conditions
Or - Any (Conditions) are true
Conditions
(Unit-type of (Summoned unit)) Equal to Rune of Grenk (Level 1)
(Unit-type of (Summoned unit)) Equal to Rune of Grenk (Level 2)
(Unit-type of (Summoned unit)) Equal to Rune of Grenk (Level 3)
(Unit-type of (Summoned unit)) Equal to Rune of Grenk (Level 4)
Actions
Set Point_Array[5] = (Position of (Summoned unit))
Unit - Set level of Rune of Grenk (AAura) for (Summoned unit) to (Level of Rune of Grenk for Hero[8])
Unit - Set level of Rune of Grenk (EAura) for (Summoned unit) to (Level of Rune of Grenk for Hero[8])
Wait 60.00 seconds
Custom script: call RemoveLocation(udg_Point_Array[5])
Code:
Rune Warden
Events
Unit - A unit enters (Playable map area)
Conditions
(Unit-type of (Entering unit)) Equal to Rune Warden
Actions
Set Hero[8] = (Entering unit)
Trigger - Turn off (This trigger)
Would be awesome if I could get it to work, but even if I can't--I'd at elast like to know why.. I have faith in you.