Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Jul 2014
Location: Finland
journeyman
OP Offline
journeyman
Joined: Jul 2014
Location: Finland
I would like to create some custom items for a mod I am working on. A unique item like a ring would be a nice quest reward. It looks like items like a rings are listed in Armor.xlsm but every attempt to add a new lines has failed. The Editor doesn't seem to be reading them.

There is a scripting query:
query ItemGetProperty([in](ITEM)_Item, [in](STRING)_Property, [out](STRING)_Value)

I have no idea what the query is supposed to do. But with a similar call it should be pretty easy to create a custom items.

Like:
ItemSetProperty(ITEM_ABC_MyRing, "Telekinesis", "1");
ItemSetProperty(ITEM_ABC_MyRing, "SpeedBonus", "1");

etc..

Could we expect to have something like this if there are no other way ?
And when ?


Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
Originally Posted by BioSpirit
I would like to create some custom items for a mod I am working on. A unique item like a ring would be a nice quest reward. It looks like items like a rings are listed in Armor.xlsm but every attempt to add a new lines has failed. The Editor doesn't seem to be reading them.


You need to generate the appropriate .txt files using the macros in the .xlsm files.
The editor/game only reads those generated .txt files.

Joined: Jul 2014
Location: Finland
journeyman
OP Offline
journeyman
Joined: Jul 2014
Location: Finland
I haven't had any luck with that. After using the macros I can see my items appearing in the .txt files in :

...\Data\Editor\Templates\Stats\Generated\Data\Armor.txt
and
...\Data\Editor\Templates\Stats\Generated\Links\Armor.txt

But I don't see them in the Editor/Game. I also made a little test by deleting the "Stats" folder completely and the Editor is working just "fine" without the folder. Item stats are there like before deletion.

Any Ideas ?

Joined: Jul 2014
R
addict
Offline
addict
R
Joined: Jul 2014
There are a few steps involved with creating a custom item ingame.

1) First you need a RootTemplate for your item. You can right click a Ring item in the "View Templates" window of the Editor and "Create new from selected". For the filepath, change it from Public/Main/RootTemplates/ to Public/(Your mod name)/RootTemplates/ (creating the folder if necessary in your game's install directory.

2) A Stats entry for your object. This needs to be in the Public/(your mod name)/Stats/Generated/Data/ for your mod (creating the folders if necessary). You can really name the txt file anything you want. Note that this folder is not the one within the Editor filepaths. You can model your item stats after other objects of the same type.

3) A links entry in the Public/(your mod name)/Stats/Generated/Links/ folder. Within a single line you need to combine the name from your Stats entry with the GUID of your RootTemplate (right click your template in the editor and copy GUID to clipboard).

4) In your RootTemplate file in the Editor, change the "Stats" entry to the name you created in the Stats/Generated/Data/ folder. You may need to reload the Editor to see it as a valid option.

5) Actually getting your item into the game. There are several ways to do this, depending on your needs.

Joined: Jul 2014
Location: Finland
journeyman
OP Offline
journeyman
Joined: Jul 2014
Location: Finland
Thanks a lot. Those are very good instructions and I actually got it to work. claphands Now I can have a better quest rewards.


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5