• Check out the results of the Techtree Contest #19!
  • 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.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[Trigger] Hero selecting trigger

Status
Not open for further replies.
Level 4
Joined
Sep 25, 2009
Messages
49
Im having a problem with my hero selecting trigger, When i go to select a hero it will remove the wisp (i want it to do that) But it wont spawn the hero... My old trigger worked, but in order to try and save room i tryed to fit it into 1 trigger

Old trigger:

  • spawn archer OLD
    • Events
      • Unit - A unit enters hero archer <gen>
    • Conditions
      • ((Triggering unit) is A ground unit) Equal to True
      • (Unit-type of (Triggering unit)) Equal to Wisp
      • (Owner of (Triggering unit)) Equal to Player 1 (Red)
    • Actions
      • Unit - Remove (Triggering unit) from the game
      • Unit - Create 1 Sylvanas Windrunner for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
New trigger:

  • spawn archer NEW
    • Events
      • Unit - A unit enters hero archer <gen>
    • Conditions
      • ((Triggering unit) is A ground unit) Equal to True
      • (Unit-type of (Triggering unit)) Equal to Wisp
    • Actions
      • Unit - Remove (Triggering unit) from the game
      • Unit - Create 1 Sylvanas Windrunner for (Triggering player) at (Center of (Playable map area)) facing Default building facing degrees
Any help?
 
well i know, i did that on purpose, and i dont think it would actually effect it >< cause i was trying to slim down 40 triggers into 4......

edit: didnt see your post- en funego
 
Wouldn´t it be better to use Entering Unit instead of Triggering Unit, cause of the Event?
 
triggering is better(heard today by the Reborn DEvil so credit him)
but also you can skip the condition trigger unit is a ground unit

you leak also a point
set the mid of the map to a point variable named TempLoc and create units at the variable position ,
as well as adding following line to your triggers
call RemoveLocation(udg_TempLoc)

what it look like in acceptable way

  • spawn archer NEW
    • Events
      • Unit - A unit enters hero archer <gen>
    • Conditions
      • (Unit-type of (Triggering unit)) Equal to Wisp
    • Actions
      • set TempLoc = CenterOfPlayableMapArea
      • Unit - Create 1 Sylvanas Windrunner for (OwnerOf(Triggering unit) at (TempLoc) facing 0.
      • Unit - Remove (Triggering unit) from the game
      • call RemoveLocation(udg_TempLoc)
 
i belive that this should work even a bit better

  • spawn archer NEW
  • Events
  • Unit - A unit enters hero archer <gen>
  • Conditions
  • (Unit-type of (Entering unit)) Equal to Wisp
  • Actions
  • set TempLoc = CenterOfPlayableMapArea
  • Unit - Create 1 Sylvanas Windrunner for (OwnerOf(Entering unit) at (TempLoc) facing 0.
  • Unit - Remove (Entering unit) from the game
  • call RemoveLocation(udg_TempLoc)
 
Status
Not open for further replies.
Back
Top