How to copy items from one mod to the other (Tutorial)

Users who are viewing this thread

I have a question as well, though I probably already know the answer.

Can you do this with a mod from one version, to a mod in another?

As in, take a lightsaber from the .751 star wars mod, and put it in the .808 mod, Battle for Sicily.
 
Night Raider said:
Do you have the codes to make firearms and ammunition available at merchants?

Module_triggers (In modulesystem)
# Refresh Weapon sellers
  (0.0, 0, 24.0, [], [
                      (reset_item_probabilities,100),
                      (set_merchandise_modifier_quality,120),
                      (try_for_range,reg(2),weapon_merchants_begin,weapon_merchants_end),
                      (troop_add_merchandise,reg(2),itp_type_one_handed_wpn,5),
                      (troop_add_merchandise,reg(2),itp_type_two_handed_wpn,5),
                      (troop_add_merchandise,reg(2),itp_type_polearm,5),
                      (troop_add_merchandise,reg(2),itp_type_shield,6),
                      (troop_add_merchandise,reg(2),itp_type_bow,4),
                      (troop_add_merchandise,reg(2),itp_type_crossbow,3),
                      (troop_add_merchandise,reg(2),itp_type_thrown,5),
                      (troop_add_merchandise,reg(2),itp_type_arrows,2),
                      (troop_add_merchandise,reg(2),itp_type_bolts,2),
                      (troop_add_merchandise,reg(2),itp_type_pistol,2),
                      (troop_add_merchandise,reg(2),itp_type_bullets,2),

                      (troop_ensure_inventory_space,reg(2),merchant_inventory_space),
                      (store_troop_gold, reg(6),reg(2)),
                      (lt,reg(6),600),
                      (store_random,reg(:cool:,100),
                      (val_add,reg(:cool:,200),
                      (troop_add_gold,reg(2),reg(:cool:),
                      (end_try,0),
                     ]),
Add this.

Module_info(In your mod's file folder)
display_wp_firearms = 1

Just do this 1.
 
Night Raider said:
That is totally different than what this thread is about.
Indeed, this is for those who do not have acces to the source of a certain mod, yet want to add more items.
Unfortunately the code for making firearms available in stores is in triggers.txt, wich is basically unreadable.  :sad:
 
At best, I could tell you how to include that pistol and cartridges in the zendar chest of native, but its native after all, you could easily do that with the module system. As soon as a mod adds a new item, all changes. Unless they add the items at the bottom of the list, but that doesnt happen very often.
 
Open troops.txt and search for:
trp_zendar_chest Zendar_Chest Zendar_Chest 48 0 0 3
  -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  5 5 4 4 18
74 74 73 65 71 67 0
274 131072 0 1 0 0
  0 0 0 0

Change it to:
trp_zendar_chest Zendar_Chest Zendar_Chest 48 0 0 3
  303 0 73 0 73 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0 -1 0
  5 5 4 4 18
74 74 73 65 71 67 0
274 131072 0 1 0 0
  0 0 0 0

That should give you the flintlock and two cartridges. I havent tested it myself, so Im not sure if it will work. Backup first.
 
Was wondering, does the armor code to enable armor to be sold in shops work with clothing also (courtly/nobility outfits)?

EDIT-Perhaps we could get a code to enable boots for the Khergit boots?  Also a question:  unlike mods where the item files seem accessible, to do this in Native I'm guessing we need the brf editor?  Thanks for the info!
 
Hound_of_Culann said:
Was wondering, does the armor code to enable armor to be sold in shops work with clothing also (courtly/nobility outfits)?
Not sure, you can always try tough.

EDIT-Perhaps we could get a code to enable boots for the Khergit boots?  Also a question:  unlike mods where the item files seem accessible, to do this in Native I'm guessing we need the brf editor?  Thanks for the info!
The code for "metallic" foot armor is 65550. So change:

itm_khergit_guard_boots Khergit_Guard_Boots Khergit_Guard_Boots 1  lamellar_boots_a_L 0  3854 0 254 126976 1.000000 100 0 0 20 0 0 0 0 0 0 0 0
0

to:

itm_khergit_guard_boots Khergit_Guard_Boots Khergit_Guard_Boots 1  lamellar_boots_a_L 0  65550 0 254 126976 1.000000 100 0 0 20 0 0 0 0 0 0 0 0
0

You don't need to do anything with the brf to add this boots, the meshes are included in native.
 
Gonna try to copy some units from other mods into Native, just to see if I'm able to do it..
Tnx for this really cool tool  :wink:
 
Back
Top Bottom