| 08-27-2003, 08:09 PM | #1 |
I'm trying to make a shop which sells units, but just like you cannot build certain units until you have researched some tech, or have built a given building, you cannot purchase some units until you have researched an upgrade. The in-game idea is that you must learn how to use the unit first, then you are allowed to buy it. Thanks, Trick |
| 08-27-2003, 09:01 PM | #2 |
Techtree - Requirements If that doesn't work... then, hmm... You could have triggers that add the Unit-type of the unit to said building whenever you learn the upgrade. You'd have to give the building the "Sell Units" ability... also, you'd need a trigger to restock the units (I think), since the pesky "Sell Units" ability tends to remove added units from the list... Perhaps there's a better way, I'm not sure. |
| 08-27-2003, 09:07 PM | #3 |
If techtree requirements doesn't work then do "make <unit type> unavailable/available for training/construction" will work...at the start of the map make it unavial, when they research the proper upgrade make it available...(it won't show up as disabled though...) |
| 08-27-2003, 09:40 PM | #4 |
I'll give these a try. Possible issue might be that I want to have one shop which several allies will shop at and maintain the restrictions for each. Also, I tried making a new shop for a race, and having it sell Town Portal Scrolls. It let me try to purchase one with only a Town Hall (no tier 2 upgrade). Guess I need to try again... |
| 08-27-2003, 10:01 PM | #5 |
Ah, right, Techtree - Requirements works for items if you put them in "Items Made" but they are ignored with "Items Sold." I guess the same would be true with "Units Trained", but that's obviously not what you're looking for. I think adding and restocking them via triggers should work. |
| 08-27-2003, 10:02 PM | #6 |
Ah, right, Techtree - Requirements works for items if you put them in "Items Made" but they are ignored with "Items Sold." I guess the same would be true with "Units Trained", but that's obviously not what you're looking for. I think adding and restocking them via triggers should work. Neutral Building - Add Unit-type to Marketplace is the action. (It doesn't have to be a "Marketplace", just needs the "Sells Units" ability) |
| 12-03-2003, 12:30 AM | #7 |
Just copy off the Merc shop... emote_sweat |
