• 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.

Warcraft 3 editor gold trigger help

Status
Not open for further replies.
Level 5
Joined
May 24, 2017
Messages
93
Hi,

I need help with a trigger in the Warcraft 3 editor,

I want to take gold from a player when a unit moves on to a way point.

What trigger action do I use?
 
Do you mean the event when you teleport to the target location of the waypoint? You can do it using a Unit Enters Region and a Unit Leaves Region, specifying your region and its' corresponding region, and call the action,

  • Player - Add Property

Unit enters region, add unit to a group that filters out entering and exiting units.
Unit leaves region, remove unit from that group and check if unit is in the corresponding region.
If so, do your actions...

Let the events do the adding and removing of units in the group for you.
 
Status
Not open for further replies.
Top