Limit Building Trigger

Nathan0093

New Member
Reaction score
4
I'm trying to limit the number of houses each player can build depending on how many castle he has. (10 each) The house can be upgraded to provide more gold income, but the problem arises here. If a player built 10 houses already without upgrading, then he cannot build anymore, and this is what I want. However, if he upgrades them all, then he can build more un-upgraded version of the house. How do I make it so that the game recognize both versions as the same type I want to limit?
 

Seannny

Why GUI when you can Jass?
Reaction score
46
So, you need a variable for this to keep track of the number of Houses the play has, as well as a variable to keep track of the castle bonus (every time they build a castle add the bonus to this )Both are Integer variables

Every time a play builds a house, add 1 to the House # variable. Do a check to see if the Number of castle bonus varible is less than the House variable. If so, destroy the house they just built.
 

FireBladesX

Eating my wings!
Reaction score
123
A much easier way (I hope):

Code:
Player - Limit training of House to 10 for Player 1 (Red)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top