• 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] Help with instantly move trigger condition

Status
Not open for further replies.
Level 7
Joined
Jul 7, 2008
Messages
332
I need help.
I'm making a custom hero map :cute:
I choose a hero then he get instantly moved to the next location where you choose 2 skills (you get 2 lumber), I want the hero to move instantly to the next location after he choosed 2 skills, but I can't find the condition :(
Wood = 0 won't do.
I though about "If hero got 2 abilities over level 0" but couldn't find something like that.
 
Level 35
Joined
Oct 9, 2006
Messages
6,394
If he buy the skills for wood, then checking for player resources "wood" equal or lesser then 0 should do the trick (If you remember to make the condition check for it every 0.01 second or similar.)

  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • ((Owner of (Triggering unit)) Current lumber) Less then or equal to 0
  • Actions
    • Unit - Move (Triggering unit) instantly to (Center of (Where ever you want))
or make a seperat trigger to check for wood


  • Events
    • Time - Every 0.01 seconds of game time
  • Conditions
    • None unless you want
  • Actions
    • Unit Group - Pick every unit in (Units in (Playable map area) matching (((Owner of (Matching unit)) Current lumber) Less then or equal to 0)) and do (Unit - Move (Picked unit) instantly to (Center of (Where ever you want))
Hope this helps, else an other good suggestion have also been postet.
 
Status
Not open for further replies.
Top