Ugh.. Help with my trigger.

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.

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.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
Your generic expiration timers look a bit small, try changing them to 2 second or so.
 

BarzahdX

Active Member
Reaction score
18
I fixed it.. I think it was the expiration timer, even though I have it set so that they take less than .4 to cast the spell, but whatever.. I've also used .5 before, so I figured it would work--but at least it's taken care of. Thanks for your reply, +rep.
 

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
I kinda gave you the exact answer you needed, and you tell me it isn't?
 

BarzahdX

Active Member
Reaction score
18
Well I fixed it before you replied. :)

I had a hunch it might have been the expiration timers.. What I'm saying is that it doesn't make any sense that it didn't work, but now it does work, so I'm all good.. I gave you +rep(at least I tried, it wouldn't let me), what's your deal?

Off-topic question: If a dummy unit has casted a spell and is waiting to expire, will it automatically cast other spells? Or would I just set its acquisition range to 0?
 

AceHart

Your Friendly Neighborhood Admin
Reaction score
1,495
> will it automatically cast other spells?

Maybe when under computer control.
Or with abilities like Heal on autocast.
With a cooldown that lasts longer than the dummy, no such "problems" can happen.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      • Ghan
        Administrator - Servers are fun

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top