• 🏆 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!

picking up item spawns hostile

Status
Not open for further replies.
Level 2
Joined
Apr 7, 2010
Messages
14
i have a trigger already -

  • Events
  • Unit - A unit acquires an item
  • Conditions
  • (Item-type of (Item being manipulated)) Equal to Item
  • Actions
  • Unit - Create one Enemy at (Center of Playable Map Area)
How do i make it so that if you drop the item and pick it up again, the enemy will not spawn again?
 
Level 20
Joined
Jul 6, 2009
Messages
1,885
  • Item
    • Events
      • Unit - A unit Acquires an item
    • Conditions
      • (Item-type of (Item being manipulated)) Equal to Tome of Experience
      • Boolean Equal to False
    • Actions
      • Unit - Create 1 Footman for Player 1 (Red) at (Center of (Playable map area)) facing Default building facing degrees
      • Set Boolean = True
Boolean is variable of type boolean.
 
Status
Not open for further replies.
Top