HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Shops

06-06-2004, 09:57 AM#1
Gliver
i want to make something like that.. I buy a unit from shop and the type of that unit to be removed from shop, so that i can have only one from a kind. i tried "neutral building - remove unit type(from all markets)" but it does work.
06-06-2004, 01:04 PM#2
linkmaster23
Hrmm, couldn't you just look at the Marketplace and see how it memoves items when you buy them? I don't understand the inner working of Shops. Just look at the Marketplace you might find something there.
06-06-2004, 02:12 PM#3
LegolasArcher
On the unit sold, set the stock maximum to 1 and the restock rate to 0
06-06-2004, 02:22 PM#4
Gliver
its not good. after bought unit death i want to be able to buy another one
06-06-2004, 02:56 PM#5
DarkMage
It will take simple trigger to do this.
the first one:
Event:
Unit - A unit enters (Playable map area)
Conditions:
(Number of living <unit type> units owned by <Player>) Greater than or Equal to 1
Actions:
Player-Make <Unit type> Unavailable for Training/construction by <Player>

the second one:
Event:
Unit-A unit owened by <player> Dies
Condition:
(Number of living <Unit type> units owned by <player> less than 1)
Actions:
Player-Make <unit type> Available for training/construction by <player>

and there you have it. I tested it so i know it works.
06-06-2004, 03:11 PM#6
Gliver
Thank u DarkMage and all of u!