Adding new mercenaries to new scenes

正在查看此主题的用户

Tintai

Recruit
Hello guys. Im' new here so I wanna to say Hi :wink:

I'm making a simple(I think) mod which adds new scenes - mercenaries camps.
So I have some new scenes(activating from menu) and I want to put there 5 mercenaries to recruit - same as in taverns, but more and maybe shorter respawn delay.

I figured this in a half:
module_constants.py - I added new constant("slot_center_mercenary_troop_type_2", "slot_center_mercenary_troop_amount_2")
module_scripts.py - I copied "update_mercenary_units_of_towns" and "start_update_mercenary_units_of_towns" to new name and changed values
module_game_menus.py - Like on tavern script. I used "(assign, "$talk_context", tc_tavern_talk)"
module_mission_templates.py - Added a menu but not sure about that.

And I have some issues. Mercs won't spawn at my scene. Or spawns but I can't talk with them or talk with dialog "Any orders sir?".
I was trying some options but nothing what I do seems to work.

Can someone give me some help code how to add at least one independent mercenary spawn for recruit in my scene?
I would be glad for help.

Thanks
Tintai

PS. I'm modding at Floris if it's important.
 
后退
顶部 底部