Anton said:FINE DONT HELP ME THEN FFS! IT SAYS RUNTIME ERROR WHEN I START NATIVE JUST BECAUSE I DONT KNOW WHAT TO DO WITH THE FORMATIONS! FFS.
Someone please paste all of the mission_templates text in here or tell me more specific what to do...
Exin said:I would like to ask something: Is it possible to make it so that regarding the morale, certain troops like High Tier Swadian Cavalry will fight on while Peasants will break and run? Is it possible to have moral affect the soldiers based on troop type?
(1, 4, ti_once, [(main_hero_fallen)],
[
(assign, "$pin_player_fallen", 1),
(str_store_string, s5, "str_retreat"),
(call_script, "script_simulate_retreat", 10, 20),
(assign, "$g_battle_result", -1),
(set_mission_result,-1),
(call_script, "script_count_mission_casualties_from_agents"),
(finish_mission,0)]),
common_battle_inventory,
common_battle_order_panel,
common_battle_order_panel_tick,
# script_remove_troop_from_prison
# Input: troop_no
# Output: none
("remove_troop_from_prison",
[
(store_script_param, ":troop_no", 1),
(troop_set_slot, ":troop_no", slot_troop_prisoner_of_party, -1),
(try_begin),
(check_quest_active, "qst_rescue_lord_by_replace"),
(quest_slot_eq, "qst_rescue_lord_by_replace", slot_quest_target_troop, ":troop_no"),
(call_script, "script_cancel_quest", "qst_rescue_lord_by_replace"),
(try_end),
(try_begin),
(check_quest_active, "qst_deliver_message_to_prisoner_lord"),
(quest_slot_eq, "qst_deliver_message_to_prisoner_lord", slot_quest_target_troop, ":troop_no"),
(call_script, "script_cancel_quest", "qst_deliver_message_to_prisoner_lord"),
(try_end),
]),
]
Tricket said:hi there,
i'd like to use this in my mod, but i want to make it so that only certain factions can use it, and would like to know how i would limit who can use it and who cannot faction wise. or would i have to make it so that only certain troops couldn't use it?
Soulstormer said:Is there a formated Version for 1.011 Native? When I paste this in my script, it dosn't look like it have the right spaces, as I know python, the spaces set what is part of wich code?
If I understand this things, I must paste the first code after:
Tricket said:i'd like to use this in my mod, but i want to make it so that only certain factions can use it, and would like to know how i would limit who can use it and who cannot faction wise. or would i have to make it so that only certain troops couldn't use it?
Omzdog said:You need to download the module system and follow the instructions in this thread.
http://forums.taleworlds.com/index.php/board,12.0.html
You've probably edited the .txt files which will screw with your game.