Hey i can't make so when 3 Footmen have been sold then they is removed from the shop so they cant be bourght anymore!!! PLZ HELP ME!!! It's pissing me off....
Maybe there is a simplier way, here is how i would do it: u need 3 variables, lets name them "sold1" "sold2" "sold3", set the variables as boolean and false by default
Event Unit sold Condition Unit type of triggering unit equal to footmen Actions
If Variable sold1 equels to false Then Set variable sold1 true Else ----
Then another trigger with same event and condition and this action:
If Variable sold1 equal to true Variable sold2 equal to false Then Set variable sold2 true Else ----
Then the last trigger, again same event and condition
If Variable sold1 equal to true Variable sold2 equal to true Variable sold3 equal to false Then Set variable sold3 true Run trigger "whatever" Else ------
The "whatever" trigger is the trigger where u put everything u want to happen when the 3 units are sold. U might think its easier just to put all these actions in same trigger since the event and condition is same, but dont do it. It wont work then, it will run the whole thing when the first unit is sold......so make seperate triggers. Hope this helped.
You may want alot of things, but u must remember there are limits with the world editor, other choise is for u to learn Jass. Anyway,how many shops u want to make? My suggestion was for one shop, i though u only wanted one shop. If that is the case, then my suggestion works, and in addition if u didnt realize, in the "whatever" trigger u can make it so that the shop is removed and replaced with an copy of that shop that has everything else but not the footmen.
I think within the "Neutral Building" trigger there is an action "Remove unit from market-place." All you need to do is make sure the shop has the "Sell units" ability, and when your trigger fires use that action. It's easy.
Damn!!! The Neutral building thing dosent work i have tryed!!! Its the reason i submited this Forum i used Neutral building to remove Units from special shop with Sell units but it dident work i dont know if i have done something wrong...
Okay maybe i dont have expained my self good enought
I got a shop with 3 Units Footmen, Riflemen and Knight When one of the units i bourght for eksampel the Footmen then he will be removed from game and the number of spawn units in my map i raised with one Footmen in the side the shop is in Then when 3 footmen is bourght he have to be removed els there comes to many spawn units and if neutral player owns the building the units dosent kill em and thats not the idea
Hey is someone ready to help me out here i stocked. When i use the Neutral Building - Remove Unit it dosent remove the unit.. WTF am i doing wrong with that trigger.. Can someone make a exampel so i can see what im doing wrong...