• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Trigger] One and Only One

Status
Not open for further replies.
Level 2
Joined
Aug 26, 2007
Messages
10
Event:
-A Unit enters Region 008 <gen>
Conditions:
-(Entering Unit) Equal to Sir Edwin<gen>
Actions:
-Remove Dreadlord 0037<gen> from the game
-Create 1 Eredar Warlock for Player 2(Blue) at (Center of Region 002<gen>) facing Default building facing Degrees

However, whenver the Hero enters the region again, another one comes... How do I make it so that this only happens once?
 
Level 8
Joined
Aug 4, 2008
Messages
279
This leaks, try this:
  • Event:
  • -A Unit enters Region 008 <gen>
  • Conditions:
  • -(Triggering) Equal to Sir Edwin<gen>
  • Actions:
  • -Remove Dreadlord 0037<gen> from the game
  • -Set Point = center of region 002
  • -Create 1 Eredar Warlock for Player 2(Blue) at Point facing Default building facing Degrees
  • -Custom Script: call RemoveLocation (udg_Point)
  • Trigger - Turn of this Trigger
(PS:point is a point variable.)
 
Status
Not open for further replies.
Top