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

[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