WB Coding !(name 'itm_peasantbodyslim' is not defined)

正在查看此主题的用户

解决方案
That's somehow a strange error with which I am not common. Will ask at the modding discord about it.
I fixed it!!!
The problem was that I had a troop ID in my module troops that didn't exist "griffin_troop" as an upgrade for the forest bandit.
I deleted it and changed it to "swadian_recruit" and it works now.
Show the troop and the item entry which you made.
["peasantbodyslim", "Blue Peasant Tunic", [("peasantbodyslim",0)], itp_type_body_armor|itp_merchandise|itp_covers_legs, 0, 60, weight(2)|abundance(90)|head_armor(0)|body_armor(15)|leg_armor(10)|difficulty(0), imodbits_armor, [], [fac_kingdom_1] ],

["swadian_recruit", "Pesant", "Pesants", tf_male|tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet, no_scene, reserved, fac_kingdom_1, [itm_leather_cap,itm_leather_boots,itm_pitch_fork,itm_peasantbodyslim], def_attrib|str_8|agi_5|int_5|cha_5|level(3), wp(35), knows_common|knows_power_strike_1|knows_ironflesh_1|knows_athletics_1, swadian_face_younger_1, swadian_face_middle_2 ],
 
点赞 0
Always use the code environment at the forum for script snippets. It's at the button with the three dots.

Hm, I don't see a problem here. Maybe place it before the boots but that shouldn't cause an error. Can you show the full error message?
 
点赞 0
!(name 'itm_peasantbodyslim' is not defined)
Exporting strings...
Exporting skills...
Exporting tracks...
Exporting animations...
Exporting meshes...
Exporting sounds...
Exporting skins...
Exporting faction data...
Exporting item data...
Exporting scene data...
Exporting particle data...
Exporting party_template data...
Exporting quest data...
Exporting info_page data...
It took 1.70399999619s
!(name 'itm_peasantbodyslim' is not defined)
Exporting postfx_params...
It took 2.81100010872s
______________________________
Script processing has ended.
Press any key to restart. . .
 
点赞 0
That's somehow a strange error with which I am not common. Will ask at the modding discord about it.
I fixed it!!!
The problem was that I had a troop ID in my module troops that didn't exist "griffin_troop" as an upgrade for the forest bandit.
I deleted it and changed it to "swadian_recruit" and it works now.
 
点赞 0
解决方案
Lol. Still weired that it gives that error message in the script then though. Nice to see that you found the problem however ^^
Mark your question as solved with your own answer as best answer
 
点赞 0
后退
顶部 底部