Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: Externalised Merchants
Re: New feature: Externalised Merchants[message #365549 is a reply to message #364793] Tue, 25 July 2023 01:27 Go to previous messageGo to previous message
Kitty

 
Messages:473
Registered:October 2017
Location: Germany
kodamaqq wrote on Mon, 08 August 2022 03:12
Hey! I want to make a drug boy not to sell regen boost, which is a bit OP in my opinion. His id is 80, and I should find eeeh AdditionalDealer_61_Inventory.xml and edit it, right? Or no? happy Also, regen boost id is 235, so I should find like

<INVENTORY>
<uiIndex>2</uiIndex>
<sItemIndex>235</sItemIndex>
<ubOptimalNumber>2</ubOptimalNumber>
</INVENTORY>

and delete those entries? What am I doing wrong? Would be happy if someone explains.
-
I merchants.xml, the drug dealing kid has ID 60

 <MERCHANT>
  <uiIndex>60</uiIndex>
  <szName>drug dealer Cambria ruins (F9)</szName> 
-
also in merchants.xml, a few lines above, we can read:

</MERCHANT>
	<!-- a few non-profile-based merchants after this -->
	<!-- The inventory files are numbered, for example, slot 40 uses AdditionalDealer_21_Inventory.xml, and so on -->
	<MERCHANT>
		<uiIndex>40</uiIndex>
		<szName>A10 bunker rebel quartermaster</szName>
-
so, the ID 40 in merchants.xml (Rebel Quartermaster) will be using AdditionalDealer_21_Inventory.xml

Why is this?

merchants.xml contains

- named merchants (they do have a profile in mercsprofiles.xml)

those don't have their own AdditionalDealer-xml, they have xml with their name (i.e., TonyInventory.xml)

inventory of those can be found in the xml with their name in (ID 0-19)

- Additional Dealers (for two types, profile and non-profile)

for profiles:

ID 20-39 in merchants.xml are for named merchants that have been added afterwards (hence, additional dealers)

There are currently two examples, Darrel as ID 20 and Kyle as ID 21

ID 20 in merchants.xml = AdditionalDealer_1_Inventory.xml (for Darrel)

ID 21 = AdditionalDealer_2_Inventory.xml (for Keith)

for non-profile:

starting from ID 40 are merchants without a profile in mercprofiles.xml

that vastly expands the possible merchants, since those won't take away a place in mercprofiles.xml

(ID 68 is a special one for blackmarket, inventory for that is defined in a lua-script, see feature description "intel" for more)

-
So, what about our average school boy? 

He has ID 60 in merchants.xml and is a non-profile merchant

(so, according to the quote above, when ID 40 is AdditionalDealer_21_Inventory.xml,)

his ID 60 is AdditionalDealer_41_Inventory.xml
-
what is it with this crazy sorting?

- the named ones are from vanilla ja2
- later on the possabilty to add additional, named (profile), merchants was added
- and again sometime even later, the possability for non-named (non-profile)  merchants was added
- plus, the balckmarket was added after that (see "intel"-feature for more on that)

[Updated on: Tue, 25 July 2023 01:34]




How to get: latest 1.13, 7609 and more | 7609 SCI (eng) | Compiling+SVN

I need more details. (Didi Hallervorden)

Report message to a moderator

Master Sergeant
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: New feature: Take prisoners, interrogate them
Next Topic: New Quest: a questline continues...
Goto Forum:
  


Current Time: Fri Nov 29 04:53:56 GMT+2 2024

Total time taken to generate the page: 0.01343 seconds