HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Requirements : Upgrades

07-05-2004, 09:31 PM#1
ForsakenSoldier
The Situation: I have this item that when you buy it, it upgrades all your units into another unit. I don't want the item to be able to be bought until all upgrades for the previous unit are maxed out (such as Mithril Swords - Level 3 and Mithril Plating - Level 3).

What I did: I went into the Object Editor and scrolled down to "Requirements" and set "Iron Swords" and "Iron Plating" as the two requirements. I then went scrolled down one more space to "Requirements - Levels" and set "3" and "3", because I want the Level 3 upgrades as the requirements.

The Problem: When I went to test it out and see if works, it didn't. The item was available as soon as the game started, without having even researched one level of the required upgrades.

Any help would be appreciated. If you know how to do what I need, please help. Thanks in advance.
07-05-2004, 10:17 PM#2
Anitarf
My guess would be that requirements work for building buildings or training units, but not for buying items. Instead, whenever one of the required upgrades is researched, increase an integer variable by 1 and when that variable reaches the needed amount (in your case, if you require level 3 swords and level 3 shields, that would be 6), use the action "neutral building - add item to marketplace".
07-06-2004, 01:08 AM#3
ForsakenSoldier
That's a good idea. I'll have to see if I can do that. Thanks.