A few questions that hopefully someone feels like answering

正在查看此主题的用户

vako

Sergeant at Arms
ok then,

I'm using the official editor/python, but I'm certainly not expert with it as anyone who has come across my previous trouble-shooting posts will have realised.  I've stored up a number of problems and questions for one post to save cluttering up the board.  I'm making a new post because last time I posted on the Q&A thread no one answered me.

Preliminaries dealt with, here are two problems I could use imput on first:
At "start a new game" this comes up

rgl.between(skill_level,0,(skills[skill_no].max_level+1))

I've had three explanations:
1) a missing or incorrect comma in module_troops
2) a discrepancy in stat levels to skill levels (e.g. you can't have riding 5 if your agility is only 4)
3) something to do with store_skill_level, I think from fisheye on the Q&A thread, which I don't undestand

I fixed this last fiddle last night by fixing the stat levels to skill levels for I had modified for marnid and borcha.  Yay me!  First thing this morning I redid the gear for all the merchants and tavernkeepers and the blasted thing's back up again.  I've checked it three times and can't find any misplaced punctuation. 

so... does anyone know something else it could be?  Could last night's lack of message have been a fluke?  Would someone be willing to go over my module_troops code with a fresh pair of eyes to check for errors?  If it is something to do with store_skill_level where on earth do I go to find it, because my computer can't pick up store_skill_level in a search?  This particular error does not usually stop me from getting into the game, but obviously I can't put the thing up for other people with a glaring great error message.

Second Problem:
I made a new novice ground scene (where the trainer in Zendar sends you).  It's a simple ground with fence, outside, so it should have a skybox. The code line looks like this:
  ("novice_ground",0,"trainingground1", "BO_trainingground1", (-100,-100),(100,100),-100,"0",
    [],[]),

I'm getting the following error message when I'm sent there:
File:e\develope\mb\rgl\rglManifold.h
Line223
Expression:1_face = =f1

pressing ignore three times usually sends you to this new novice ground and it seems to work fine, the sky is a mouvey colour, but I've always gone to it at early morning so I'm not sure if it is supposed to be otherwise. (I have to go back to wings and fix the ground now I've worked out how to make it tile.)

Questions:
#Can you link one indoor scene to another indoor scene?  For instance, in castles, can you use one of the unused doors, put a passage in, and use it to go to another indoor scene, like a room?  How would one go about putting this into code?  From experementing I gather it to be more than simply putting the name of the new scene into the second last set of square brackets in the code line, but my brain won't make the leap past that.

#in Wings3d, after you've unwrapped something - badly obviously, because it won't import into brfedit - invalid texture coordinates and the like - can you undo you're unwrapping and start again?  I've now started saving something separately before unwrapping it, but I have a complicated model I don't feel like building again, but am stuck with a bad unwrapping job I did first time around. (I don't want to have to unwrap it again, unwrapping is hard, boreing and timeconsuming, but if I want the damnable thing in game, Well, I'm just going to have to, arn't I)

um, I can't think of anything else, thought there was more but I'm going to have to leave it at that for now, my father and stepmother are coming for tea and if I don't get off the computer soon I'm going to get yelled at.

Thanks, in advance, for all and any imput, Vako
 
For your first problem, why don't you post the code in this thread, so lots of people can look it over.  Just post the code you changed, though.

For your second:  If you want it outside, you need to generate the scene, so give it the scene flag "sf_generate."  Then, you need to paste the terrain code into the place it's in for all the other entries (the eighth spot).

For your third:  Yes you can.  I'm not real sure, as it's been a long time since I did it, but I know you need to change the number of the passage.  Probably what you do is this:
put all the scenes you want to link to in the ninth spot of your scene entry in module_scenes.py.  Then, when you put the passage up, change the number for it.  The number probably corresponds to where the scene is listed in the scenes you listed in module_scenes.py.  If it's like it used to be, the first number is the scene you jump to, the second is the entry point of that scene.
(I used this back in the dark ages for my Zendar mod--if you went from Prescan's shop back to the town square, you ended up just outside the merchant's door.  Leave the happy boar, you appear just outside the door.  (You could also go to a house scene through the big door on the far end of the square, as well as going into the arena without entering a fight.  When the player went to Zendar from the world map, they started on the outside-side of a portcullis, and had to use a secret-door-type-thing to enter the town.  It's still on the repository, if you want to check it out (though you don't need to, and this is an excessively long interjection).))

And for your fourth problem, I don't know.  Good luck.
 
Stonewall382 说:
For your first problem, why don't you post the code in this thread, so lots of people can look it over.  Just post the code you changed, though.

ok, I will.  I have no idea how to put it in a code box so I'll just put it in the post.  The only bits that I changes were between the brackets where the items are listed:


# Armor Merchants
  ["zendar_armorer","Rabugti","Rabugti",tf_hero|tf_is_merchant, scn_zendar_center|entry(4),0,  fac_commoners,[itm_linen_tunic,itm_wrapping_boots],def_attrib|level(2),wp(20),knows_inventory_management_10, 0x00000000000c318301f24e38a36e38e3],

  ["town_1_armorer","Urumuda","Urumuda",tf_hero|tf_is_merchant, scn_town_1_center|entry(9),0, fac_swadians,[itm_linen_tunic,itm_woolen_hose],def_attrib|level(2),wp(20),knows_inventory_management_10, 0x000000000004428401f46e44a27144e3],
  ["town_2_armorer","Alin","Alin",tf_hero|tf_female|tf_is_merchant, scn_town_2_center|entry(9),0, fac_swadians,[itm_woolen_dress,itm_grey_hose],def_attrib|level(2),wp(20),knows_inventory_management_10, 0x000000000004300101c36db6db6db6db],
  ["town_3_armorer","Ganzo","Ganzo",tf_hero|tf_is_merchant, scn_town_3_center|entry(9),0, fac_swadians,[itm_red_linen_tunic,itm_woolen_hose],def_attrib|level(2),wp(20),knows_inventory_management_10, 0x00000000000c530701f17944a25164e1],
  ["town_4_armorer","Beranz","Beranz",tf_hero|tf_is_merchant, scn_town_4_center|entry(9),0, fac_swadians,[itm_coarse_tunic,itm_wrapping_boots],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000c840501f36db6db7134db],
  ["town_5_armorer","Mirchaud","Mirchaud",tf_hero|tf_is_merchant, scn_town_5_center|entry(9),0, fac_swadians,[itm_coarse_tunic_2,itm_wrapping_boots],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000c000601f36db6db7134db],
  ["town_6_armorer","Stamar","Stamar",tf_hero|tf_is_merchant, scn_town_6_center|entry(9),0, fac_swadians,[itm_coarse_tunic,itm_grey_hose],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000c10c801db6db6dd7598aa],
  ["town_7_armorer","Regos","Regos",tf_hero|tf_is_merchant, scn_town_7_center|entry(9),0, fac_swadians,[itm_coarse_tunic_2,itm_blue_hose],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x000000000010214101de2f64db6db58d],
 
  ["town_8_armorer","Meltor","Meltor",tf_hero|tf_is_merchant, scn_town_8_center|entry(9),0, fac_vaegirs,[itm_tunic_pants_white,itm_wrapping_boots],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x000000000010318401c96db4db6db58d],
  ["town_9_armorer","Imirza","Imirza",tf_hero|tf_is_merchant, scn_town_9_center|entry(9),0, fac_vaegirs,[itm_tunic_pants_blue,itm_wrapping_boots,itm_woolen_cap_blue],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x000000000008520501f16db4db6db58d],
  ["town_10_armorer","Rimusk","Rimusk",tf_hero|tf_is_merchant, scn_town_10_center|entry(9),0, fac_vaegirs,[itm_tunic_pants_brown,itm_wrapping_boots,itm_woolen_cap],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x000000000008600701f35144db6db8a2],
  ["town_11_armorer","Talbar","Talbar",tf_hero|tf_is_merchant, scn_town_11_center|entry(9),0, fac_vaegirs,[itm_tunic_pants_white,itm_wrapping_boots,itm_woolen_cap_blue],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x000000000008408101f386c4db4dd514],
  ["town_12_armorer","Kramuk","Kramuk",tf_hero|tf_is_merchant, scn_town_12_center|entry(9),0, fac_vaegirs,[itm_tunic_pants_blue,itm_wrapping_boots],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000870c501f386c4f34dbaa1],
  ["town_13_armorer","Chau","Chau",tf_hero|tf_is_merchant, scn_town_13_center|entry(9),0, fac_vaegirs,[itm_tunic_pants_brown,itm_wrapping_boots],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000c114901f245caf34dbaa1],
  ["town_14_armorer","Zelk","Zelk",tf_hero|tf_is_merchant, scn_town_14_center|entry(9),0, fac_vaegirs,[itm_linen_tunic,itm_wrapping_boots,itm_blue_headcloth],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000001021c001f545a49b6eb2bc],

# Weapon merchants
  ["zendar_weaponsmith","Dunga","Dunga",tf_hero|tf_is_merchant, scn_zendar_center|entry(3),0,  fac_commoners,[itm_leather_apron,itm_wrapping_boots,itm_woolen_cap,itm_leather_gloves],def_attrib|level(2),wp(20),knows_inventory_management_10, 0x00000000000021c401f545a49b6eb2bc],

  ["town_1_weaponsmith","Struga","Struga",tf_hero|tf_is_merchant, scn_town_1_center|entry(10),0, fac_swadians,[itm_leather_apron,itm_wrapping_boots,itm_leather_gloves,itm_blue_headcloth],def_attrib|level(2),wp(20),knows_inventory_management_10, 0x000000000004424701d545a89484d69a],
  ["town_2_weaponsmith","Sebula","Sebula",tf_hero|tf_is_merchant, scn_town_2_center|entry(10),0, fac_swadians,[itm_leather_apron,itm_wrapping_boots,itm_leather_gloves,itm_headcloth],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000c524101f185a89496d69a],
  ["town_3_weaponsmith","Gutlans","Gutlans",tf_hero|tf_is_merchant, scn_town_3_center|entry(10),0, fac_swadians,[itm_leather_apron,itm_wrapping_boots,itm_leather_gloves,itm_blue_headcloth],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000c624501f185a89496d69a],
  ["town_4_weaponsmith","Khavel","Khavel",tf_hero|tf_is_merchant, scn_town_4_center|entry(10),0, fac_swadians,[itm_leather_apron,itm_wrapping_boots,itm_leather_gloves,itm_brown_headcloth],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000c730901f186e89424469a],
  ["town_5_weaponsmith","Ryis","Ryis",tf_hero|tf_is_merchant, scn_town_5_center|entry(10),0, fac_swadians,[itm_leather_apron,itm_wrapping_boots,itm_leather_gloves,itm_headcloth],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000c838101f186e89424469a],
  ["town_6_weaponsmith","Plais","Plais",tf_hero|tf_is_merchant, scn_town_6_center|entry(10),0, fac_swadians,[itm_leather_apron,itm_wrapping_boots,itm_leather_gloves,itm_headcloth],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x000000000010938201f36e9b0a2e431a],
  ["town_7_weaponsmith","Belgaru","Belgaru",tf_hero|tf_is_merchant, scn_town_7_center|entry(10),0, fac_swadians,[itm_leather_apron,itm_wrapping_boots,itm_leather_gloves,itm_blue_headcloth],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000003c401f36e9b0a2e431a],

  ["town_8_weaponsmith","Norskh","Norskh",tf_hero|tf_is_merchant, scn_town_8_center|entry(10),0, fac_vaegirs,[itm_leather_apron,itm_wrapping_boots,itm_leather_gloves,itm_brown_headcloth],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x000000000004100401f4aeca8d2e231a],
  ["town_9_weaponsmith","Doru","Doru",tf_hero|tf_is_merchant, scn_town_9_center|entry(10),0, fac_vaegirs,[itm_leather_apron,itm_hide_boots,itm_leather_gloves,itm_woolen_cap],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000420c501f254934d2e231a],
  ["town_10_weaponsmith","Nelag","Nelag",tf_hero|tf_is_merchant, scn_town_10_center|entry(10),0, fac_vaegirs,[itm_leather_apron,itm_hide_boots,itm_leather_gloves,itm_woolen_cap_blue],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000c310501f2a76c4d2e5c4e],
  ["town_11_weaponsmith","Vlan","Vlan",tf_hero|tf_is_merchant, scn_town_11_center|entry(10),0, fac_vaegirs,[itm_leather_apron,itm_hide_boots,itm_leather_gloves,itm_woolen_cap],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x000000000010418601f2a5b64d2e484a],
  ["town_12_weaponsmith","Mleza","Mleza",tf_hero|tf_is_merchant, scn_town_12_center|entry(10),0, fac_vaegirs,[itm_leather_apron,itm_wrapping_boots,itm_leather_gloves,itm_headcloth],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000852c801f2a5b6dd2e3922],
  ["town_13_weaponsmith","Dibus","Dibus",tf_hero|tf_is_merchant, scn_town_13_center|entry(10),0, fac_vaegirs,[itm_leather_apron,itm_wrapping_boots,itm_leather_gloves,itm_brown_headcloth],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x000000000008734001f2a5b6d2466462],
  ["town_14_weaponsmith","Crahask","Crahask",tf_hero|tf_is_merchant, scn_town_14_center|entry(10),0, fac_vaegirs,[itm_leather_apron,itm_wrapping_boots,itm_leather_gloves,itm_blue_headcloth],def_attrib|level(5),wp(20),knows_inventory_management_10, 0x00000000000c81c401f2a5b6d36e6db6],

#Tavern keepers
  ["zendar_tavernkeeper","Tavernkeeper","Tavernkeeper", tf_hero, scn_the_happy_boar|entry(1),0, fac_commoners,[itm_linen_tunic,itm_blue_hose,itm_woolen_cap_blue],def_attrib|level(2),wp(20),knows_common, 0x00000000000c114501e36db6db6db6db],

  ["town_1_tavernkeeper","Turegor","Turegor",tf_hero,scn_town_1_tavern|entry(9),0, fac_swadians,[itm_red_linen_tunic,itm_woolen_hose],def_attrib|level(2),wp(20),knows_common, 0x00000000000c218701e351450caad563],
  ["town_2_tavernkeeper","Matheas","Matheas", tf_hero, scn_town_2_tavern|entry(9),0, fac_swadians,[itm_red_shirt,itm_woolen_hose],def_attrib|level(2),wp(20),knows_common, 0x00000000001031c101e35128e268d44b],
  ["town_3_tavernkeeper","Imbrea","Imbrea", tf_hero|tf_female, scn_town_3_tavern|entry(9),0,  fac_swadians,[itm_blue_dress,itm_grey_hose],def_attrib|level(2),wp(20),knows_common, 0x000000000008000201ca45468bb4c4a2],
  ["town_4_tavernkeeper","Falsevor","Falsevor", tf_hero, scn_town_4_tavern|entry(9),0, fac_swadians,[itm_linen_tunic,itm_blue_hose,itm_brown_headcloth],def_attrib|level(2),wp(20),knows_common, 0x000000000004420301e352496eb4d44b],
  ["town_5_tavernkeeper","Gharmall","Gharmall", tf_hero, scn_town_5_tavern|entry(9),0, fac_swadians,[itm_blue_shirt,itm_grey_hose],def_attrib|level(2),wp(20),knows_common, 0x000000000008520301ca492689265db6],
  ["town_6_tavernkeeper","Belinda","Belinda", tf_hero|tf_female, scn_town_6_tavern|entry(9),0, fac_swadians,[itm_green_dress,itm_green_hose,itm_headcloth],def_attrib|level(2),wp(20),knows_common, 0x000000000008100401db6dc7214e26d4],
  ["town_7_tavernkeeper","Ruby","Ruby", tf_hero|tf_female, scn_town_7_tavern|entry(9),0, fac_swadians,[itm_woolen_dress_2,itm_woolen_hose],def_attrib|level(2),wp(20),knows_common, 0x00000000000c200301db6dc692492492],

  ["town_8_tavernkeeper","Qaelmas","Qaelmas", tf_hero, scn_town_8_tavern|entry(9),0, fac_vaegirs,[itm_blue_linen_tunic,itm_grey_hose,itm_headcloth],def_attrib|level(2),wp(20),knows_common, 0x00000000000c628601edb64b09249249],
  ["town_9_tavernkeeper","Rose","Rose", tf_hero|tf_female, scn_town_9_tavern|entry(9),0, fac_vaegirs,[itm_woolen_dress_2,itm_hide_boots],def_attrib|level(2),wp(20),knows_common, 0x000000000010500401db6dc692492492],
  ["town_10_tavernkeeper","Ralcha","Ralcha", tf_hero|tf_female, scn_town_10_tavern|entry(9),0, fac_vaegirs,[itm_woolen_dress,itm_hide_boots],def_attrib|level(2),wp(20),knows_common, 0x000000000000000401cb6dc724912492],
  ["town_11_tavernkeeper","Naldera","Naldera", tf_hero|tf_female, scn_town_11_tavern|entry(9),0, fac_vaegirs,[itm_woolen_dress,itm_hide_boots],def_attrib|level(2),wp(20),knows_common, 0x00000000000c300701e36dc6db6db91a],
  ["town_12_tavernkeeper","Laruqen","Laruqen", tf_hero, scn_town_12_tavern|entry(9),0, fac_vaegirs,[itm_blue_linen_tunic,itm_blue_hose,itm_blue_headcloth],def_attrib|level(2),wp(20),knows_common, 0x00000000000c734901d924928b6c9249],
  ["town_13_tavernkeeper","Willow","Willow", tf_hero|tf_female, scn_town_13_tavern|entry(9),0, fac_vaegirs,[itm_blue_dress,itm_grey_hose,itm_headcloth],def_attrib|level(2),wp(20),knows_common, 0x00000000000c100101e36924d5b5b91a],
  ["town_14_tavernkeeper","Reamald","Reamald", tf_hero, scn_town_14_tavern|entry(9),0, fac_vaegirs,[itm_brown_shirt,itm_orange_hose,itm_headcloth],def_attrib|level(2),wp(20),knows_common, 0x00000000000c800001da49192d6de75d],
 



store merchants haven't been done yet.

the marnid and borcha changes have ended up like this:



["borcha","Borcha","Borcha",tf_hero, scn_town_13_castle|entry(6),reserved, fac_commoners,[itm_tunic_pants_white,itm_wrapping_boots,itm_woolen_cap],def_attrib|str_8|agi_8|int_9|cha_4|level(:cool:,wp(70),knows_pathfinding_2|knows_tracking_3|knows_riding_2|knows_spotting_3,0x00000000000c524301c946981065126e],
   ["Marnid","Marnid","Marnid", tf_hero, scn_the_happy_boar|entry(4),reserved, fac_commoners,[itm_linen_tunic,itm_blue_hose,itm_club],def_attrib|str_6|agi_6|int_8|cha_9|level(6),wp(60),knows_trade_3|knows_inventory_management_2|knows_riding_2,0x00000000000c600301c2510211a5b292],



The female troop trees have been taken out (as marked by # at the beginning of the lines).  Other changes are as follows:



#Mountain Clan Troops
  ["bear_clan_axeman","bear_clan_axeman","bear_clan_axemen",tf_guarantee_boots|tf_guarantee_armor,0,0,fac_vaegirs,
   [itm_battle_axe,itm_battle_axe,itm_war_axe,itm_searaider_helmet,itm_rawhide_coat,itm_rawhide_coat,itm_fur_hat,itm_hunter_boots,itm_hunter_boots],
   def_attrib|level(20),wp_two_handed(180)|wp(100),knows_athletics_5|knows_power_strike_2|knows_ironflesh_3,mountain_clans_face1, mountain_clans_face2],
  ["wolf_clan_scout","wolf_clan_scout","wolf_clan_scouts",tf_guarantee_boots,0,0,fac_vaegirs,
   [itm_throwing_axes,itm_javelin,itm_throwing_axes,itm_hand_axe,itm_knife,itm_club,itm_quarter_staff,itm_rawhide_coat,itm_rawhide_coat,itm_woolen_cap,itm_fur_hat,itm_hunter_boots,itm_hunter_boots],
   def_attrib|level(20),wp_one_handed(160)|wp_throwing(100),wp(60),knows_athletics_6|knows_power_throw_3|knows_ironflesh_3,mountain_clans_face3, mountain_clans_face4],
  ["eagle_clan_archer","eagle_clan_archer","eagle_clan_archers",tf_guarantee_boots|tf_guarantee_ranged,0,0,fac_vaegirs,
   [itm_long_bow,itm_long_bow,itm_strong_bow,itm_arrows,itm_arrows,itm_barbed_arrows,itm_rawhide_coat,itm_rawhide_coat,itm_fur_hat,itm_hand_axe,itm_hand_axe,itm_knife,itm_spiked_club,itm_searaider_helmet,itm_hunter_boots,itm_hunter_boots,itm_leather_gloves],
   def_attrib|level(20),wp_archery(180)|wp(100),knows_athletics_3|knows_power_draw_4|knows_ironflesh_3,mountain_clans_face1, mountain_clans_face2],

#Mercenary Troops
   ["runaway_slave","runaway_slave","runaway_slaves",0,0,0,fac_commoners,
    [itm_stones,itm_knife,itm_cudgel,itm_shirt],
    def_attrib|level(1),wp(20),knows_common,bandit_face1,pirate_face2],
   ["townsman","townsman","townsmen",tf_guarantee_boots,0,0,fac_commoners,
    [itm_knife,itm_club,itm_hammer,itm_dagger,itm_wrapping_boots,itm_shirt,itm_linen_tunic],
    def_attrib|level(4),wp(60),knows_common,vaegir_face1,swadian_face2],
   ["watchman","watchman","watchmen",tf_guarantee_boots|tf_guarantee_armor,0,0,fac_commoners,
    [itm_fighting_pick,itm_winged_mace,itm_dagger,itm_broadsword,itm_round_shield,itm_woolen_cap,itm_padded_coif,itm_leather_armor,itm_padded_cloth,itm_wrapping_boots],
    def_attrib|level(9),wp(90),knows_common,vaegir_face2,swadian_face1],
   ["caravan_guard","caravan_guard","caravan_guards",tf_mounted|tf_guarantee_horse|tf_guarantee_boots|tf_guarantee_armor,0,0,fac_commoners,
    [itm_spear,itm_military_pick,itm_sword,itm_scimitar,itm_round_shield,itm_round_shield,itm_light_morion,itm_skullcap,itm_gambeson,itm_padded_leather,itm_leather_boots,itm_saddle_horse],
    def_attrib|level(15),wp(150),knows_common,vaegir_face1,swadian_face2],
   ["escort","escort","escorts",tf_mounted|tf_guarantee_horse|tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet,0,0,fac_commoners,
    [itm_spear,itm_military_pick,itm_spiked_mace,itm_estoc_3,itm_scimitar_4,itm_scimitar_5,itm_large_shield,itm_large_shield,itm_round_shield,itm_morion,itm_light_morion,itm_guard_helmet,itm_scale_shirt,itm_lamellar_cuirass,itm_mail_shirt,itm_mail_chausses,itm_leather_boots,itm_leather_gloves,itm_hunter,itm_saddle_horse_brown],
    def_attrib|level(20),wp(200),knows_common,vaegir_face2,swadian_face1],
   ["lance","lance","lance",tf_mounted|tf_guarantee_horse|tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet,0,0,fac_commoners,
    [itm_lance,itm_lance,itm_bastard_sword,itm_scimitar_4,itm_scimitar_2,itm_bastard_sword_4,itm_great_sword,itm_great_sword_3,itm_battle_axe,itm_two_handed_mace,itm_spiked_mace,itm_reinforced_morion,itm_reinforced_burgonet,itm_battle_shield,itm_large_shield,itm_scale_shirt_plated,itm_lamellar_cuirass,itm_plate_armor,itm_mail_boots,itm_iron_greaves,itm_leather_boots,itm_gauntlets,itm_warhorse,itm_grey_hunter,itm_saddle_horse],
    def_attrib|level(25),wp(250),knows_common,vaegir_face1,swadian_face2],
   ["sellsword","sellsword","sellswords",tf_guarantee_boots|tf_guarantee_armor,0,0,fac_commoners,
    [itm_estoc,itm_estoc_2,itm_sword,itm_dagger,itm_mace1,itm_round_shield,itm_padded_coif,itm_light_morion,itm_leather_jerkin,itm_gambeson,itm_leather_boots,itm_leather_boots],
    def_attrib|level(15),wp(150),knows_common,vaegir_face2,swadian_face1],
   ["bodyguard","bodyguard","bodyguards",tf_guarantee_boots|tf_guarantee_armor,0,0,fac_commoners,
    [itm_estoc,itm_estoc,itm_estoc_3,itm_bastard_sword,itm_dagger,itm_assassins_dagger,itm_mace1,itm_mace2,itm_round_shield,itm_searaider_shield,itm_morion,itm_light_morion,itm_guard_helmet,itm_leather_jerkin,itm_gambeson,itm_mail_shirt,itm_lamellar_cuirass,itm_scale_shirt,itm_leather_boots,itm_leather_boots,itm_leather_gloves],
    def_attrib|level(20),wp(200),knows_common,vaegir_face1,swadian_face2],
   ["bravo","bravo","bravi",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet,0,0,fac_commoners,
    [itm_estoc,itm_estoc,itm_estoc_2,itm_estoc_3,itm_bastard_sword,itm_bastard_sword_2,itm_bastard_sword_3,itm_great_sword_3,itm_great_sword_4,itm_assassins_dagger,itm_mace1,itm_spiked_mace,itm_round_shield,itm_searaider_shield,itm_searaider_shield,itm_reinforced_morion,itm_reinforced_burgonet,itm_morion,itm_scale_shirt_plated,itm_scale_shirt_plated,itm_lamellar_cuirass,itm_gambeson,itm_iron_greaves,itm_iron_greaves,itm_leather_boots,itm_leather_gloves], 
    def_attrib|level(25),wp(250),knows_common,vaegir_face2,swadian_face1],
   ["crossbowman","crossbowman","crossbowmen",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_ranged,0,0,fac_commoners,
    [itm_bolts,itm_bolts,itm_crossbow,itm_military_pick,itm_estoc,itm_dagger,itm_round_shield,itm_light_nasal_helmet,itm_skullcap,itm_light_morion,itm_leather_jerkin,itm_padded_leather,itm_leather_boots,itm_leather_boots],
    def_attrib|level(20),wp_archery(130)|wp(70),knows_power_draw_3|knows_common,vaegir_face1,swadian_face2],
   ["master_crossbowman","master_crossbowman","master_crossbowmen",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_ranged,0,0,fac_commoners,
    [itm_bolts,itm_bolts,itm_crossbow,itm_heavy_crossbow,itm_military_pick,itm_sword,itm_estoc,itm_estoc_2,itm_dagger,itm_estoc_dagger,itm_mace2,itm_searaider_shield,itm_round_shield,itm_guard_helmet,itm_morion,itm_leather_jerkin,itm_scale_shirt_plated,itm_lamellar_cuirass,itm_leather_boots,itm_leather_boots],
    def_attrib|level(25),wp_archery(160)|wp(90),knows_power_draw_4|knows_common,vaegir_face2,swadian_face1],

  #swadian Infantry
  ["swadian_peasant","swadian_peasant","swadian_peasants",tf_guarantee_boots,0,0,fac_swadians,
   [itm_knife,itm_club,itm_hand_axe,itm_brown_felt_hat,itm_linen_tunic,itm_wrapping_boots],
   def_attrib|level(4),wp(60),knows_common,swadian_face1,swadian_face2],
  ["swadian_militiaman","swadian_militiaman","swadian_militia",tf_guarantee_boots|tf_guarantee_armor,0,0,fac_swadians,
   [itm_knife,itm_spiked_club,itm_hand_axe,itm_pickaxe,itm_swadian_shield_4,itm_red_linen_tunic,itm_red_shirt,itm_swadian_leather_breastplate,itm_woolen_cap_red,itm_wrapping_boots],
   def_attrib|level(:cool:,wp(80),knows_common,swadian_face3,swadian_face4],
  ["swadian_regular","swadian_regular","swadian_regulars",tf_guarantee_boots|tf_guarantee_armor,0,0,fac_swadians,
   [itm_fighting_pick,itm_small_halberd,itm_small_halberd,itm_pike3,itm_knife,itm_swadian_shield_3,itm_swadian_shield_4,itm_brown_skullcap,itm_padded_coif,itm_red_padded_cloth,itm_wrapping_boots],
   def_attrib|level(12),wp(120),knows_common,swadian_face5,swadian_face1],
  ["swadian_infantryman","swadian_infantryman","swadian_infantry",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet,0,0,fac_swadians,
   [itm_pike2,itm_pike2,itm_halberd3,itm_halberd3,itm_military_pick,itm_dagger,itm_dagger,itm_swadian_shield_3,itm_swadian_shield_3,itm_segmented_helmet,itm_brown_skullcap,itm_red_padded_cloth,itm_red_padded_cloth,itm_leather_boots],
   def_attrib|level(1:cool:,wp(180),knows_athletics_3|knows_common,swadian_face2,swadian_face3],
  ["swadian_guard","swadian_guard","swadian_guards",tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet,0,0,fac_swadians,
   [itm_pike2,itm_pike2,itm_halberd3,itm_halberd3,itm_dagger,itm_estoc,itm_polehammer3,itm_military_pick,itm_mace1,itm_swadian_blood_shield,itm_swadian_shield_3,itm_guard_helmet,itm_guard_helmet,itm_swadian_mail_shirt,itm_swadian_mail_shirt,itm_leather_boots,itm_leather_boots,itm_leather_gloves],
   def_attrib|level(24),wp_polearm(140)|wp(100),knows_athletics_5|knows_common,swadian_face4,swadian_face5],
#swadian Cavalry
  ["swadian_squire","swadian_squire","swadian_squires",tf_mounted|tf_guarantee_horse|tf_guarantee_boots|tf_guarantee_armor,0,0,fac_swadians,
   [itm_arming_sword,itm_dagger,itm_dagger,itm_red_gambeson,itm_leather_boots,itm_leather_gloves,itm_saddle_horse,itm_sumpter_horse],
   def_attrib|level(6),wp(60),knows_riding_3|knows_power_strike_1,swadian_face1,swadian_face2],
  ["swadian_henchman","swadian_henchman","swadian_henchmen",tf_mounted|tf_guarantee_horse|tf_guarantee_boots|tf_guarantee_armor,0,0,fac_swadians,
   [itm_estoc,itm_estoc_3,itm_estoc_dagger,itm_dagger,itm_lance,itm_swadian_blood_shield,itm_swadian_mail_shirt,itm_red_gambeson,itm_red_gambeson,itm_padded_coif,itm_leather_boots,itm_leather_boots,itm_leather_gloves,itm_courser,itm_saddle_horse,itm_sumpter_horse],
   def_attrib|level(12),wp(110),knows_riding_4|knows_power_strike_2|knows_ironflesh_1,swadian_face3,swadian_face4],
  ["swadian_knight","swadian_knight","swadian_knights",tf_mounted|tf_guarantee_horse|tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet,0,0,fac_swadians,
   [itm_lance,itm_lance,itm_bastard_sword,itm_bastard_sword,itm_mace1,itm_mace1,itm_knighthammer,itm_swadian_blood_shield,itm_swadian_blood_shield,itm_great_helmet,itm_flat_topped_helmet,itm_plate_armor,itm_swadian_mail_shirt,itm_mail_boots,itm_leather_boots,itm_mail_chausses,itm_leather_gloves,itm_gauntlets,itm_warhorse,itm_warhorse,itm_saddle_horse,itm_sumpter_horse],
   def_attrib|level(1:cool:,wp(180),knows_riding_5|knows_power_strike_3|knows_ironflesh_2|knows_shield_1,swadian_face5,swadian_face1],
  ["swadian_banner_knight","swadian_banner_knight","swadian_banner_knights",tf_mounted|tf_guarantee_horse|tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet|tf_guarantee_shield,0,0,fac_swadians,
   [itm_lance,itm_great_lance,itm_jousting_lance,itm_great_sword_2,itm_great_sword_4,itm_sword_of_war,itm_two_handed_mace,itm_knighthammer,itm_swadian_blood_shield,itm_swadian_blood_shield,itm_crow_crest_barbute,itm_great_helmet,itm_plate_armor,itm_plate_armor,itm_iron_greaves,itm_iron_greaves,itm_mail_boots,itm_gauntlets,itm_gauntlets,itm_charger,itm_charger,itm_warhorse,itm_saddle_horse,itm_sumpter_horse],
   def_attrib|level(24),wp(240),knows_riding_6|knows_power_strike_4|knows_ironflesh_3|knows_shield_2,swadian_face2,swadian_face3],

  ["swadian_groom","swadian_groom","swadian_grooms",tf_mounted|tf_guarantee_horse|tf_guarantee_boots|tf_guarantee_armor,0,0,fac_swadians,
   [itm_spear,itm_military_pick,itm_mace4,itm_swadian_shield_4,itm_brown_skullcap,itm_brown_padded_coif,itm_swadian_shield_4,itm_swadian_leather_vest,itm_swadian_leather_breastplate,itm_leather_boots,itm_sumpter_horse],
   def_attrib|level(1:cool:,wp(180),knows_riding_3|knows_common,swadian_face4,swadian_face5],
  ["swadian_horseman","swadian_horseman","swadian_horsemen",tf_mounted|tf_guarantee_horse|tf_guarantee_boots|tf_guarantee_armor|tf_guarantee_helmet,0,0,fac_swadians,
   [itm_lance,itm_military_pick,itm_spear,itm_mace1,itm_spiked_mace,itm_swadian_shield_3,itm_swadian_shield_3,itm_brown_skullcap,itm_segmented_helmet,itm_swadian_mail_shirt,itm_leather_boots,itm_leather_boots,itm_leather_gloves,itm_saddle_horse,itm_saddle_horse_brown,itm_sumpter_horse],
   def_attrib|level(24),wp(240),knows_riding_5|knows_common,swadian_face1,swadian_face2],

upgrade(troops,"runaway_slave","townsman")
upgrade(troops,"townsman","watchman")
upgrade2(troops,"watchman","caravan_guard","sellsword") 
upgrade(troops,"caravan_guard","escort")
upgrade(troops,"escort","lance")
upgrade2(troops,"sellsword","bodyguard","crossbowman")
upgrade(troops,"bodyguard","bravo")
upgrade(troops,"crossbowman","master_crossbowman")

upgrade(troops,"swadian_peasant","swadian_militiaman")
upgrade(troops,"swadian_militiaman","swadian_regular")
upgrade2(troops,"swadian_regular","swadian_infantryman","swadian_groom")
upgrade(troops,"swadian_infantryman","swadian_guard")
upgrade(troops,"swadian_groom","swadian_horseman")
upgrade(troops,"swadian_squire","swadian_henchman")
upgrade(troops,"swadian_henchman","swadian_knight")
upgrade(troops,"swadian_knight","swadian_banner_knight")



And if you got through all of that, I am indebted to you.  If you found something wrong, I will scream, pull out my hair and then be forever greatful to you.  The MountainClan troops, Swadian Troops and Mercenary Troops I have checked over close to a dozen times and am convinced there is nothing wrong with them.

Sorry for the tedium.  I blame no one for looking at the great chunks of code, going "Aw crap" and fleeing to the next post.  Ciao, Vako.
 
Hey!  I just got this same error!  Try putting the weapon proficiency higher than just twenty.  I think the problem is that the game might be assigning random values around that number, and may be going into negatives.  Either that, or you just can't use proficiencies that low.  Good luck.:smile:
 
For your first problem I can testify it is not number 2.  If the last post didn't help you, I can only suggest cutting out bits of code and/or pasting them from native til things clear up.

Definitely back up your whole work every 15 minutes or so in separate directories.

I don't blame you for posting a new thread - one of my questions got ignored for a week, but I  managed to stumble upon the answer after taking a break for a long time when reading the forums.  I was going crazy!  Turns out the answer was simple, though.  Wish I could help more.

 
后退
顶部 底部