• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[Trigger] Passive Spell Problem

Status
Not open for further replies.
Level 5
Joined
Mar 24, 2008
Messages
98
  • Hyper Intuition
    • Events
      • Time - Every 5.00 seconds of game time
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to HeRO
    • Actions
      • Set CastingUnits[0] = (Triggering unit)
      • Set CastingPoints[0] = (Position of CastingUnits[0])
      • Set CastingGroups[0] = (Units within 1000.00 of CastingPoints[0])
      • Unit Group - Pick every unit in CastingGroups[0] and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) belongs to an enemy of (Owner of CastingUnits[0])) Equal to True
            • Then - Actions
              • Set CastingUnits[1] = (Picked unit)
              • Set CastingPoints[1] = (Position of CastingUnits[1])
              • Cinematic - Ping minimap for (All players controlled by a Computer player) at CastingPoints[1] for 3.00 seconds, using a Warning ping of color (50.00%, 50.00%, 0.00%)
              • Skip remaining actions
            • Else - Actions
      • Custom script: call DestroyGroup(udg_CastingGroups[0])
      • Custom script: call RemoveLocation(udg_CastingPoints[0])
      • Custom script: call RemoveLocation(udg_CastingPoints[1])
      • Set CastingUnits[0] = No unit
      • Set CastingUnits[1] = No unit
So this is my Trigger.. I just dont get why it doesnt work...
The Purpose of this GUI Passive Spell is to Detect Units around 1000 Area via Minimap Ping. But It doesnt work >.<
Anybody helP?
 
Level 9
Joined
Oct 11, 2009
Messages
477
There is no "triggering unit" the event is time.

Yeah, Etzer is right, there is no "triggering unit" the event is time", only a Boolean function is used in which is to check a unit classification, like this:

  • <Trigger's name>
    • Events
      • <The event(s)>
    • Conditions
      • Triggering unt is A Hero Equal to True
    • Actions
      • <The action(s)>
:cute:
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
Just reading this now. What exactly did you expect triggering unit to refer to? Its not like the computer pulls your ideas out of your head and puts them into variables lol. I laughed.

dm251 said:
Please Lock this thread.. I have Solved the problem.. ^^

Typically threads aren't locked when they're solved.
 
Status
Not open for further replies.
Top