• 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] What in the hell am I doing wrong?!?!

Status
Not open for further replies.
Level 4
Joined
Jul 26, 2008
Messages
57
:ned: I have been having a problem with WC3 triggers ever since I looked into the editor. Okay, so I decided to open up an Untitled map and mess around with stuff. HOWEVA, once i get into the triggers, whenever I test the trigger in game, the damn things never work! None of em! I MUST be doing something wrong, because the damn trigger editor is acting like it's hating me. :cry:

  • revive
  • Events
  • Unit - PEWPEW 0009 <gen> Dies
  • Conditions
  • (Owner of (Triggering unit)) Equal to Player 9 (Gray)
  • Actions
  • Wait 3.00 game-time seconds.
  • Unit - Create 1 PEWPEW for Player 9 (Gray) at (Center of Revive <gen>) facing 313.00 degrees
  • Camera - Pan camera for Player 1 (Red) to (Center of (Playable map area)) over 2.00 seconds
  • Game - Display to Player Group - Player 9 (Gray) the text: Your PEWPEW is back...
  • invulnerable base
  • Events
  • Conditions
  • PEWPEW Base 0010 <gen> Equal to PEWPEW Base 0010 <gen>
  • Actions
  • Unit - Make PEWPEW Base 0010 <gen> Invulnerable
Alright, what am I doing wrong here? :ned:
 
Level 7
Joined
Jul 20, 2008
Messages
377
Your second trigger has no event. No event means the trigger doesn't know when to start running.
 
Level 12
Joined
Aug 22, 2008
Messages
911
And the condition in the second spell is useless- remove it, the trigger will execute anyway.

On the first spell you need to pan the camera for Player 9 (Gray).
And you should store your units into variables, it should look like this: (PEWpew IS A VARIABLE!!!)
  • Revive
    • Events
      • Unit - A unit dies
    • Conditions
      • And (All conditions)
        • (Triggering Unit) equal to PEWpew
        • Owner of (Triggering Unit) equal to Player 9 (Gray)
    • Actions
      • Wait 3.00 game- time seconds
      • Unit - Create 1 PEWPEW for Player 9 (Gray) at (Center of Revive <gen>) facing 303.00 degrees
      • Set PEWpew = (Last Created Unit)
      • Camera - Pan camera for Player 9 (Gray) to Position of (PEWpew) over 2.00 seconds
      • Game - Display to Player Group - Player 9 (Gray) the text: Your PEWPEW is back...
 
Level 3
Joined
Dec 28, 2008
Messages
35
And the condition in the second spell is useless- remove it, the trigger will execute anyway.

On the first spell you need to pan the camera for Player 9 (Gray).
And you should store your units into variables, it should look like this: (PEWpew IS A VARIABLE!!!)
  • Revive
    • Events
      • Unit - A unit dies
    • Conditions
      • And (All conditions)
        • (Triggering Unit) equal to PEWpew
        • Owner of (Triggering Unit) equal to Player 9 (Gray)
    • Actions
      • Wait 3.00 game- time seconds
      • Unit - Create 1 PEWPEW for Player 9 (Gray) at (Center of Revive <gen>) facing 303.00 degrees
      • Set PEWpew = (Last Created Unit)
      • Camera - Pan camera for Player 9 (Gray) to Position of (PEWpew) over 2.00 seconds
      • Game - Display to Player Group - Player 9 (Gray) the text: Your PEWPEW is back...

that sounds right
 
Level 4
Joined
Jul 26, 2008
Messages
57
And the condition in the second spell is useless- remove it, the trigger will execute anyway.

On the first spell you need to pan the camera for Player 9 (Gray).
And you should store your units into variables, it should look like this: (PEWpew IS A VARIABLE!!!)
  • Revive
    • Events
      • Unit - A unit dies
    • Conditions
      • And (All conditions)
        • (Triggering Unit) equal to PEWpew
        • Owner of (Triggering Unit) equal to Player 9 (Gray)
    • Actions
      • Wait 3.00 game- time seconds
      • Unit - Create 1 PEWPEW for Player 9 (Gray) at (Center of Revive <gen>) facing 303.00 degrees
      • Set PEWpew = (Last Created Unit)
      • Camera - Pan camera for Player 9 (Gray) to Position of (PEWpew) over 2.00 seconds
      • Game - Display to Player Group - Player 9 (Gray) the text: Your PEWPEW is back...

:ned: LOL, I just now noticed that I totally messed up on the camera panning, my bad :p.

But wait, why do I need this?:

  • Set PEWpew = (Last Created Unit)
Why do I need to tell it that it is the last created unit? I mean, even though it is, what is it going to change? :ned:
 
Status
Not open for further replies.
Top