- Joined
- Sep 25, 2013
- Messages
- 604
I'm creating a map that is supposed to be like the game Age of Mythology, but I have run into some difficulty with Town Centers. I want to make it so Town Centers you create all upgrade together to the same tier when you upgrade just one to the next tier. I tried this method:
Norse Keeps
Events
Unit - A unit Finishes an upgrade
Conditions
(Unit-type of (Triggering unit)) Equal to Keep
Actions
Sound - Play ClanInvitation <gen>
Game - Display to (All players) for 9.00 seconds the text: ((Name of (Owner of (Triggering unit))) + has advanced to the Classical Age!)
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Town Center) and do (Unit - Replace (Picked unit) with a Keep using The old unit's relative life and mana)
But then i realized that while this way replaces Town Centers I made before upgrading to the next tier, those that i built afterwards were still Town Centers and not at the same tier as the others. I also tried making it so the builder unit (Ulfsark) could build all the tiers of the Town Center which are as follows: Town Center, Keep, Stronghold, Fortress. But I ran to even more problems. I triggers, like the previous one, except these ones disabled the construction of prior tiers after upgrading a Town Center. For example, If I upgraded a Town Center to a Keep, then the trigger would disable Town Centers from being constructed by the builder. The problem was that once I met the requirements to upgrade to a particular tier, say a keep, those same requirements would allow me to build a keep with the builder before I had even upgraded to a Keep at a Town Hall as I made it so he could build all the tiers. It has been very complicated and I even tried a method where I made a mock town center to upgrade to. For example: a Town Center would upgrade to a "mock" Keep which I would then trigger to be replaced by an actual keep after the upgrade. I did this so I could initially disable the construction of all the tiers except the first one (Town Center) which would make it so I couldn't build them until i had enabled them with a trigger after upgrading to a tier. For example: In the build menu you can only build a Town Center as you haven't upgraded to the next tier. Then, you meet the requirements and upgrade tot he next tier. This causes a trigger to disable the construction of Town Centers, replace the mock unit that just finished upgrading with an actual Keep, and enable the construction of Keeps. I've tried every possible way i know how. There is no action for adding or removing a building from the build menu. It would be a lot easier if there was... i think ha.
Norse Keeps
Events
Unit - A unit Finishes an upgrade
Conditions
(Unit-type of (Triggering unit)) Equal to Keep
Actions
Sound - Play ClanInvitation <gen>
Game - Display to (All players) for 9.00 seconds the text: ((Name of (Owner of (Triggering unit))) + has advanced to the Classical Age!)
Unit Group - Pick every unit in (Units owned by (Owner of (Triggering unit)) of type Town Center) and do (Unit - Replace (Picked unit) with a Keep using The old unit's relative life and mana)
But then i realized that while this way replaces Town Centers I made before upgrading to the next tier, those that i built afterwards were still Town Centers and not at the same tier as the others. I also tried making it so the builder unit (Ulfsark) could build all the tiers of the Town Center which are as follows: Town Center, Keep, Stronghold, Fortress. But I ran to even more problems. I triggers, like the previous one, except these ones disabled the construction of prior tiers after upgrading a Town Center. For example, If I upgraded a Town Center to a Keep, then the trigger would disable Town Centers from being constructed by the builder. The problem was that once I met the requirements to upgrade to a particular tier, say a keep, those same requirements would allow me to build a keep with the builder before I had even upgraded to a Keep at a Town Hall as I made it so he could build all the tiers. It has been very complicated and I even tried a method where I made a mock town center to upgrade to. For example: a Town Center would upgrade to a "mock" Keep which I would then trigger to be replaced by an actual keep after the upgrade. I did this so I could initially disable the construction of all the tiers except the first one (Town Center) which would make it so I couldn't build them until i had enabled them with a trigger after upgrading to a tier. For example: In the build menu you can only build a Town Center as you haven't upgraded to the next tier. Then, you meet the requirements and upgrade tot he next tier. This causes a trigger to disable the construction of Town Centers, replace the mock unit that just finished upgrading with an actual Keep, and enable the construction of Keeps. I've tried every possible way i know how. There is no action for adding or removing a building from the build menu. It would be a lot easier if there was... i think ha.