How to change the weapons available to the different multiplayer classes?

正在查看此主题的用户

LAWolves

Regular
Just what the title says.

Is it all about compiling the module system? Is a tutorial about this I may have overlooked?
 
Yes, you certainly did overlook a tutorial.

(item_set_slot, "itm_whatever", slot_item_multiplayer_item_class, multi_item_class_type_whatever), #types in header_commons
(call_script, "script_multiplayer_set_item_available_for_troop", "itm_whatever", "trp_whatever"),
 
I've read that tutorial actually, the reason why I didn't use it was because I feared that compiling it using the module system would have deleted all other changes I made to the module i am modifing.

I was trying to make some "new" weapons available to various factions in the "Battle For Calradia" mod (for my own personal use) so I think that using the module system would cancel the rest of the mod. Is there an other way? or A way that would le me use the mod with the changes i'm going to make?
 
Not sure why you wouldn't use the module system... you'll need to redo your changes anyways with a new patch.
Anyways, I dug up some values from scripts.txt under game_quick_start.
507 3 288230376151712425 60 19 =
(item_set_slot, "itm_whatever", slot_item_multiplayer_item_class, multi_item_class_type_whatever),
#multi_item_class_type_other = 0
multi_item_class_type_sword = 1
multi_item_class_type_axe = 2
multi_item_class_type_blunt = 3
multi_item_class_type_war_picks = 4
multi_item_class_type_cleavers = 5
multi_item_class_type_two_handed_sword = 6
multi_item_class_type_two_handed_axe = 7
multi_item_class_type_spear = 8
multi_item_class_type_lance = 9
multi_item_class_type_small_shield = 10
multi_item_class_type_large_shield = 11
multi_item_class_type_bow = 12
multi_item_class_type_crossbow = 13
multi_item_class_type_arrow = 14
multi_item_class_type_bolt = 15
multi_item_class_type_throwing = 16
multi_item_class_type_throwing_axe = 17
multi_item_class_type_horse = 18
multi_item_class_type_light_armor = 19
multi_item_class_type_medium_armor = 20
multi_item_class_type_heavy_armor = 21
multi_item_class_type_light_helm = 22
multi_item_class_type_heavy_helm = 23
multi_item_class_type_light_foot = 24
multi_item_class_type_heavy_foot = 25
multi_item_class_type_glove = 26
The 3 is the number of parameters. The large values are reference IDs. The same applies below:
1 3 936748722493063277 288230376151711897 360287970189640862
= (call_script, "script_multiplayer_set_item_available_for_troop", "itm_whatever", "trp_whatever"),

The script, item, and troop reference IDs I have may not necessarily be the same as yours. Since you don't have the module system, you'll have to find all three of them hard way, by looking at the module system and seeing where they are referenced by other scripts, and then finding that script in scripts.txt and its reference value. By the time you're done that you might as well use the module system.
 
后退
顶部 底部