Look through first 10 lines of http://forums.taleworlds.com/index.php/topic,60099.msg1553218.html#msg1553218
and use "get_weapon_length(item[6])". Don't forget to define new item slot
Of course, I must now present another question. Being rather new to the module system and python coding, I'm not sure how exactly to define a new item slot
I'm just trying to call up the length for weapons that are already in the game and store it as a variable. I know for a fact that I could make a script that would do this in a very clear, understandable way, but it would be a little tedious with a lot of control statements. I just want to know if there is a quicker way to do it.
Oh, and this is the operation I'll be using to get the weapon id:
(agent_get_wielded_item,<destination>,<agent_id>,<hand_no>),
I'm not exactly sure will be stored either.
Not sure if it works but defining a new header/ID (id_weapons_for_item_length) for every item and then proceed to make the script call the values accordingly ?
I'm still struggling with shield only slot assignation, which is half way to what you wish for.
(store_script_param_1, ":weapon"), # where ":weapon" is the weapon id
(try_begin),
(eq, ":weapon", "itm_sword"),
(assign, reg0, 96),
(else_try),
...
etc
(try_end),
Of course, I would have to manually type in the weapon lengths.
But honestly, I really don't understand the item slots and stuff. I wouldn't even know where to begin with that method.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.