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

Tavern

Status
Not open for further replies.
Level 5
Joined
Jun 24, 2009
Messages
118
I need to create trigger,that makes Tavern's activaton radius to 1 or 0 when hero is chosen. (I already have that trigger but I need to put this into that trigger too.) Do I need some Customscript?
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
Have two abilities. One with a range of 1/0 and another with your default range. When a hero is chosen, remove the default ability and add the new one with a range of 1/0.
 
Level 5
Joined
Jun 24, 2009
Messages
118
No, It will not work because there are 8 players and if only one will pick hero then that's all - all four 7 players left cannot choose hero...
 
Level 18
Joined
Jan 21, 2006
Messages
2,552
You could try using a combination of GetLocalPlayer() and:

  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Neutral Building - Remove Footman from (Triggering unit)
Basically instead of removing the "detection" radius of the Sell ability, you could remove the units that it sells for a specific player. This will leave you with a Tavern that can be used by other players but for you specifically it will be "disabled".

It seems that this causes a desync, as I expected. If only one unit can be bought from a tavern by any one player then you could use this trigger to "disable" the Tavern.

  • Untitled Trigger 001
    • Events
    • Conditions
    • Actions
      • Player - Make Footman Unavailable for training/construction by Player 1 (Red)
If you make all of the available Tavern-units unavailable then it will appear as if the Tavern is disabled (for that one player). This is probably one of the best approaches.
 
Last edited:
Status
Not open for further replies.
Top