• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!

Warcraft 3 editor gold trigger help

Status
Not open for further replies.
Level 4
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