| 08-27-2002, 05:32 AM | #1 |
Guest | One cannot purchase a skill/equipment upgrade unless one currently controls the necessary buildings. The 2nd tier Strength of the Moon upgrade, for example, requires a Tree of Ages. However, I am in a situation in which I wish to remove that requirement. Is there any way to edit upgrades / upgrade requirements -- without requiring the user to download files other than the .w3m? Thanks! -GS |
| 08-27-2002, 07:14 AM | #2 |
Guest | heh, you could always hide a "tree of ages" somewhere on the map to fulfill the upgrade requirements. |
| 08-27-2002, 07:34 AM | #3 |
Here's what you do: Triggers Make a new unit variable called Tree. Map Init { Events --Map Initialization Conditions Actions --Unit - Create 1 Tree of Ages for Neutral Passive at (Random point in (Playable map area)) facing (Center of (Playable map area)) --Set Tree == (Last created unit) --Unit - Deny shared vision of Tree to Player 1 (Red) --Unit - Hide Tree --Unit - Change ownership of Tree to Player 1 (Red) and Change color } (The ownership change keeps a 'visited-but-fogged spot' from appearing on the map) Defeat { Events --Unit - A unit owned by Player 1 (Red) Dies Conditions --(Number of units in (Units owned by Player 1 (Red) matching (((Triggering unit) is A structure) Equal to False))) Equal to 0 Actions --Game - Defeat Player 1 (Red) with the message: Defeat! } Of course you can tack on whatever other defeat/victory conditions you want. |
| 08-27-2002, 03:03 PM | #4 | |
Guest | Quote:
Yes, and without nasty triggers. First extract the NightElfUpgradeFunc.txt and NightElfUpgradeStrings.txt from your war3.mpq. Place them in a folder called 'units' under your war 3 directory. Using NightElfUpgradeStrings as a guide, find the appropriate 4 letter bracketed entry (e.g., [Rost]) in NightElfUpgradeFunc.txt for the upgrade you want to modify. You should see a line like this: requires=XXXX Just remove whatever is after the = sign and you remove the requirements for that upgrade. Save the file. Make sure you also save and close the map you're working on in the World Editor. Import the changed .txt file into your map. That's it! I've successfully removed all the upgrade requirements for every Human and Orc upgrade this way. At a human blacksmith you can research all three weapon/armor upgrades successively without having anything other than the blacksmith on the map. I've even modified these .txt files so that a scout tower can't be upgraded to a guard tower, and the icon to upgrade to guard tower doesn't appear on the scout tower. If you have any more questions, let me know! Care. |
| 08-28-2002, 05:01 AM | #5 |
Can those files be inserted into w3ms? I was under the impression that the txt files had to remain in mpqs in order to be read. |
| 08-28-2002, 06:45 AM | #6 | |
Guest | Quote:
They can be inserted. Apparently the text files work fine when inserted into a map (.w3m). Care. |
| 08-28-2002, 01:04 PM | #7 |
Guest | yep, except for upgrade,abilityunitmetadata.slk and miscdata.txt all thats in units folder cna be inst\erted |
