[en] - Modding Corner > Coding
Coding in Edain 4.00
Prinz von Dol Amroth:
There are normally no special things to do for editing lotr.str.
Is the name of your lotr.str in your big "data\lotr.str"?
Yes it's possivle to change the commandpoints of a unit. Objects have the parameter CommandPoints.
CragLord:
No, its name is lotr.str, everything is fine now, made some trivial error while I was editing file... xD
DrHouse93:
How can I make upgrades available from different buildings?
For example, right now, the Isengard Banner Carrier and the Mordor Fire Arrows are available respectively inside the Isengard Armory and Sauron's Influence on Mordor's Arsenal. I've changed the Commandbutton of the upgrades and I've set that the required building for both is the Mordor Orc Tent. But, even if the upgrade is purchased and the building actually exists, the game still says the units can't receive that upgrade. (Sorry, I know this is an over-spammed question, but any combination I tried it didn't solve the problem).
This is the code:
--- Code: ---Upgrade Upgrade_IsengardBasicTraining
DisplayName = UPGRADE:IsengardBasicTraining
Type = OBJECT
Tooltip = UPGRADE:IsengardBasicTraining
BuildCost = ISENGARD_PERSONAL_BASIC_TRAINING_BUILDCOST
BuildTime = ISENGARD_PERSONAL_BASIC_TRAINING_BUILDTIME
ResearchCompleteEvaEvent = UpgradeBannerCarrierReady
RequiredObjectFilter = NONE +MordorOrcPit +MordorOrcPitOutpost
StrategicIcon = AptStrategicUnitUpgradeBannerCarrier
End
Upgrade Upgrade_MordorFireArrows
DisplayName = UPGRADE:IsengardFireArrowUpgrade
Type = OBJECT
Tooltip = TOOLTIP:IsengardFlamingArrows
BuildCost = ISENGARD_PERSONAL_FIRE_ARROWS_BUILDCOST
BuildTime = ISENGARD_PERSONAL_FIRE_ARROWS_BUILDTIME
ResearchSound = UpgradeFlamingArrows
UpgradeFX = FX_PorterDeliverFlamingArrows
RequiredObjectFilter = NONE +MordorOrcPit +MordorOrcPitOutpost
StrategicIcon = AptStrategicUnitUpgradeArrow
End
--- Ende Code ---
And that code doesn't work until I build an armory. It just seems the game ignores this code
FG15:
Is this for a map.ini or normal coding? Map.inis ignore all object definitions in filters, so you can only work with KindOfs. Therefore, you have to give the desired building an unique KindOf and use that.
Also, I'm not 100% sure if this entry is even changable in map.inis because I've never tried to change it myself. Then I would just change another button with the same image, which doesn't have the requirements.
DrHouse93:
It is for a map.ini, unfortunately. Btw, I solved with a nice trick suggested by Fredius: I placed an armory belonging to the Player outside the map, while the upgrade may be researched only in the Orc Pit xD
Thank you nonetheless for your answer^^
Navigation
[0] Themen-Index
[#] Nächste Seite
[*] Vorherige Sete
Zur normalen Ansicht wechseln