Bandit Castle Bugs

正在查看此主题的用户

kipponium

Sergeant
Hi,
I'm new to mount and blade and I've managed to add a new black knight castle with a new lord and faction and a few roaming parties, however there are a few bugs i have with them that i don't know how to solve

Bug 1
The lord i assigned the castle to adds other castles into his party.


I'm 99% certain this has something to do with the reinforcement script i made for him and i think its to do with the '    (Esq, (reg0), -1),
    (call_script, "script_create_kingdom_hero_party","Trip_kingdom_7_lord","p_castle_49"),' part that checks if hes alive or not and spawns a new one if hes dead


EDIT: Fixed this one, it turns out i was using party_attach_to_party instead of party_add_template  :roll:

Bug 2
When i sneak into the castle i spawn in the prison guards position and theres a copy of my character in a pilgrims outfit where i would normally spawn, he also has the dialog from a king. (I copied scenes from castle 41-Jammed castle i think its called)


Bug 3
One party of my spawned black knight parties is visible on the map no matter how far away i am, and if they die a different party will become perma-visible.


I assume this will either be down to my party template or spawning script so ill post those

插入代码块:
(try_begin),
       (store_num_parties_of_template, ":num_parties", "pt_black_knights"),
       (lt,":num_parties",18),
       (set_spawn_radius, 25),
       (spawn_around_party,"p_castle_49","pt_black_knights"),
      (call_script, "script_randomize_party_name",1),
     (try_end),

插入代码块:
("black_knights","Black Knights",icon_vaegir_knight,0,fac_kingdom_7,bandit_personality,[(trp_black_knight_m,5,10)]),

Can any more experienced modder/coder point out any mistakes or give me some ideas as to fixing this?

The script_randomize_party_name and the troop_get_name in there are both dunde's scripts
Thanks
Kip

P.S. Another set of thanks to everyone that wrote a tutorial or posted code and helped me get to this point  :grin:
 
后退
顶部 底部