Jump to content

File containing store bought items


mystang89

Recommended Posts

Hi all,

I'm a complete noob for editing files and modding things so I have a few questions which google didn't answer.

 

I'm trying to find the file that contains a list of items you can buy at the shop so I can add in a Potion of Restoration and also edit the cost of the Iru Elixirs. Anyone know where this file is and also would this require a mod or would this just be editing a file?

Link to comment
Share on other sites

You may want to visit LH Modding

http://forums.elementalgame.com/forum/1050

______________________________

 

CoreItems.xml (This is where you find the relevant items InternalNames)

CoreImprovements.xml (This is where you add the items InternalNames)

 

______________________________

 

However, you don't really need to edit the core file(s). You can simply create a mod file using Notepad.

 

e.g.

mystang89.xml

 

 

<?xml version="1.0"?>

<mystang89>
<ImprovementType InternalName="CityHub1">
<UnlocksShopItem>Potion_Restoration</UnlocksShopItem>
</ImprovementType>
</mystang89>
You would need to do the same for all the CityHubs. Alternatively, you can add the item to the "Merchant" improvement, meaning you only need to add it to one improvement instead of all the Cityhubs.
To edit the cost of the Iru Elixir, you will need to reproduce the xml for "Potion_HealingStrong" in a mod file (minus the GameItemTypeArtDef) and then modify the price in the mod file.

______________________________

 

Note that mods (Core file or mods folder) only apply to new games.

 

Also note that mods need to be enable in game options.

 

The mod folder is found:

\Documents\My Games\LegendaryHeroes\Mods\

Edited by PrimalSavage
Link to comment
Share on other sites

If there was a Thank you button i would use it. Thank you Primal Savage! That is exactly the information I was wanting!

 

However, reading

 

e.g.

mystang89.xml

 

 

<?xml version="1.0"?>

<mystang89>
<ImprovementType InternalName="CityHub1">
<UnlocksShopItem>Potion_Restoration</UnlocksShopItem>
</ImprovementType>
</mystang89>

is like reading Greek to me. The first line "mystang89.xml" I understand as the file name. I think the second line is a necessary line but don't know what its for. Same for 3rd. 4th I'm not sure what a city hub is. Is that any city or will that be only for conclaves? The 5th I understand that one!!! :D 6th is just the closing line for the 4th I think. Same with the 7th being a closing line for the 3rd.

 

Anyway, I thank you very much for answering my questions!

Link to comment
Share on other sites

<?xml version="1.0"?>

XML Declaration is mandatory

 

<mystang89></mystang89>

Just a container... containing all your xml. Could be anything

 

<ImprovementType InternalName="CityHub1"></ImprovementType>

This is the reference to the improvement you want to modify. InternalNames may or may not be the same as DisplayName. As I said, if you want to make it simple, replace "CityHub1" by "Merchant". Otherwise, you need to do the coding for all CityHubs (See below)

 

Cityhub1 = Generic Cityhub

 

CityHub2_Conclave

CityHub2_Fortress

CityHub2_Town

 

CityHub3_Conclave

CityHub3_Fortress

CityHub3_Town

 

CityHub4_Conclave

CityHub4_Fortress

CityHub4_Town

 

CityHub5_Conclave

CityHub5_Fortress

CityHub5_Town

Edited by PrimalSavage
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...