set
New Member
- Reaction score
- 2
When i buy unit from market place , how to remove it so ppl cant buy 2 of the same?
set its stock to 1 in the object editor
the fleid looks like this:
Stats- Stock Maximum
Neutral Building - Remove (unit) from all marketplaces
Well, unless your shop has 11 different units available, you might want to consider replacing the shop with a version without the unit.
Though, it's a bit problematic if there are a lot of possibilities...
Limit Trainging
Events
Conditions
Actions
Player Group - Pick every player in (All players) and do (Player - Limit training of Footman to 1 for (Picked player))
Player Group - Pick every player in (All players) and do (Player - Limit training of Peasant to 1 for (Picked player))
Player Group - Pick every player in (All players) and do (Player - Limit training of Knight to 1 for (Picked player))
Removing Units
Events
Unit - A unit Sells a unit
Conditions
Actions
Neutral Building - Remove (Unit-type of (Sold unit)) from (Selling unit)
Adding Units
Events
Conditions
Actions
Neutral Building - Add Footman to all marketplaces with 1 in stock and a max stock of 1
Neutral Building - Add Peasant to all marketplaces with 1 in stock and a max stock of 1
Neutral Building - Add Knight to all marketplaces with 1 in stock and a max stock of 1
Neutral Hostile should automatically give gold....but just incase...
Code:Player Group - Pick every player in (All players) and do (Player - Turn Gives bounty On for (Picked player))