DrDruGs
vitali-attila said:DruGs said:wow, amazing ! thank you guys for answering hoping more experienced modders also will answer to this. that would be awesome.vitali-attila said:Add this
Code:#Add a fixed amount of money and xp to player after he has captured a settlement (call_script, "script_troop_add_gold", "trp_player", 5000), (add_xp_as_reward, 500),
after this line
You can put any amount instead of 5000 and 500.Code:(call_script, "script_change_troop_renown", "trp_player", 5),
Of course, make this changes in a separate module, not directly in Native!
I hope this code will be improved by experienced modders.
and as i mentioned in my last post: its about getting to loot + experience and money after every siege battle, because you dont in native.
By the way I forgot to mention that the code above works only when you capture a settlement. Though only the message of receiving money appears on the screen. But in script_add_gold there is nothing written about messaging, so it must be automatically.
Does anyone know why there how to make the message of xp received show up on the screen?
The code for the loot screen after defending a town/castle should be the same. Again I have found where to put it and again with a fixed amount of gold and xp.
So after this lines in module_game_menus.py
add this codeCode:(display_message, "@The enemy has been forced to retreat. The assault is over, but the siege continues."), (assign, "$g_battle_simulation_cancel_for_party", "$g_encountered_party"),
Again, you can put any numbers instead of 1000 and 300. I should check the code for the looting screen I posted in the previous message.Code:(call_script, "script_troop_add_gold", "trp_player", 1000), (add_xp_as_reward, 300),
hmm, think ive might ive found something out about the mission templates. At the end of every different type of battle i found these
"common_battle_victory_display, common_battle_inventory, common_battle_order_panel, common_battle_order_panel_tick" and so on. However the siege setup is alot more complex it seems:S
Cant really make sense of it, so its most likely a way better option what you did thank you !
---------------------------------------------------------------------------------------------------------------------------------------
edited:
i checked out different stuff and found the code:
(call_script, "script_party_give_xp_and_gold", "p_temp_party"), <--- i haven't tested it or anything, but could that be the script for just giving xp and gold after a battle ?
also, thought about 2 different codes that could be about getting up the loot menu.
(jump_to_menu, "mnu_battle_debrief"), <-- dont really think its this one, however i found a weird siege code.
(jump_to_menu, "$g_siege_final_menu"), <-- could be this one ? .. i can prob check later on.. will most likely lol myself, however worth a try.
(call_script, "script_party_give_xp_and_gold", "p_temp_party"), <--- i haven't tested it or anything, but could that be the script for just giving xp and gold after a battle ?
also, thought about 2 different codes that could be about getting up the loot menu.
(jump_to_menu, "mnu_battle_debrief"), <-- dont really think its this one, however i found a weird siege code.
(jump_to_menu, "$g_siege_final_menu"), <-- could be this one ? .. i can prob check later on.. will most likely lol myself, however worth a try.