Solved!

Users who are viewing this thread

Status
Not open for further replies.

[D]ark [K]night

Sergeant at Arms
Can I make a code that makes me able to summon men to my party by going to the camp menu? anything i can make in module_game_menus.py?
 
with the Module System you can see various operations (operations.py) that add troops to parties:

(party_add_members,<party_id>,<troop_id>,<number>),


Call this in your camp menu with the proper information added.
 
So i just put the code with id's in the camp menu before the last bracket?
um.... where can i find party id?

what is wrong here?
  ############## MF for testing start ####################
("camp_modding",0,"Select an option:","none",[],
[("camp_mod_1",[],"Increase player's renown.",
[(str_store_string, s1, "@Player renown is increased by 100. "),
(call_script, "script_change_troop_renown", "trp_player" ,100),
(jump_to_menu, "mnu_camp_modding"),
]
),
### MF - Spawn any party you want near your party. Look in party_templates.py for pt_id
("camp_mod_3",[],"Spawn a party nearby",
[(spawn_around_party, "p_main_party", "pt_looters"),
(display_message, "@Party spawned nearby."),
]
),
("camp_mod_4",[],"Back to camp menu.",
[(jump_to_menu, "mnu_camp"),
]
),
("camp_mod_5",[],"Add templar in party",
[(party_add_members,p_main_party,trp_new_knight,10),
(display_message, "@Knights added!."),

############## MF for testing start ####################
 
]
 
Status
Not open for further replies.
Back
Top Bottom