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

[Solved] Trigger(does this work)?

Status
Not open for further replies.
Level 7
Joined
May 18, 2010
Messages
264
  • Unit Buy Copy
    • EventsUnit Buy
    • Events
      • Unit - A unit Sells a unit
    • Conditions
      • Multiple ConditionsOr - Any (Conditions) are true
        • Conditions
          • (Triggering unit) Equal to (==) Heroes[11]
          • (Triggering unit) Equal to (==) Heroes[10]
          • (Triggering unit) Equal to (==) Heroes[9]
    • Actions
      • Game - Display to Player 1 (Red), at offset (0.00, 0.00) the text: unit sold
      • Unit - Remove Heroes[(Player number of (Owner of (Buying unit)))] from the game
      • Unit - Remove (Sold unit) from the game
      • Unit - Create 1 (Unit-type of (Sold unit)) for (Owner of (Buying unit)) at ((Owner of (Buying unit)) start location) facing 0.00 degrees
Heroes(11)(10)(9) is alredy preset to Taverns
Unit - Remove Heroes[(Player number of (Owner of (Buying unit)))] from the game <-- will this work?

(i got wisp that buys a unit from shop)



DONE FIXED>>>
 
Level 5
Joined
Feb 6, 2011
Messages
177
you can make it easier by removing the sold unit from the tavern without all these codes
its just like remove sold unit from the building or make it unsellable again just search for it in the triggers and you can make a region around the tavern in which the sold unit will appear
and just trigger it like
a unit enters region
game .... show messege to all players : (Name of owner of entering unit + has chosed + hero proper name
and then just
move unit enstantly to any other region you want . so that it would be a spawnable area
oh yeah and in the conditions add if Entering unit equal to hero equal true
so that your wisp dont be moved XD good luck
 
Status
Not open for further replies.
Top