I have some questions for pro coders !
Is there a way to add new wares to the game without requiring a reboot or altering savefiles ?
To fill traders I need to use setup.xml, but it is only used at the game start right ?
that's all for the moment
Edit : I've seen a bunch of lines that, I supposed, update the warelist of the NPC for a newer version :
Code: Select all
<patch sinceversion="2" state="complete">
<do_if value="$actor.type == entitytype.armsdealer">
<include_actions ref="md.Setup.SetArmsDealerWares" />
<set_value name="$TraderDefinition" list="md.$ArmsDealerLists" />
<clear_list list="$WareList"/>
<do_all exact="$TraderDefinition.count" counter="$i">
<add_inventory entity="$actor" ware="$TraderDefinition.{$i}.{1}" min="$TraderDefinition.{$i}.{2}" max="$TraderDefinition.{$i}.{3}" chance="$TraderDefinition.{$i}.{4}" />
<set_value name="$Price" min="$TraderDefinition.{$i}.{1}.minprice" max="$TraderDefinition.{$i}.{1}.maxprice" />
<append_to_list name="$WareList" exact="[$TraderDefinition.{$i}.{1}.id, $Price]"/>
</do_all>
<remove_value name="$TraderDefinition" />
<remove_value name="$Price" />
</do_if>
</patch>