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?
 
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...
 
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.
Back
Top