[WFAS] Modding the Caravan System

正在查看此主题的用户

Aeon221

Sergeant at Arms
Trying to find out where the heck it is in the scripts.py file. So far I've found:

插入代码块:
(try_begin),
			(check_quest_active, "qst_oim_lendliz2"),
			(neg|check_quest_succeeded, "qst_oim_lendliz2"),
			(neg|check_quest_finished, "qst_oim_lendliz2"),
			(eq, ":cur_party_template", "pt_oim_merchant_caravan"),
			(quest_slot_eq, "qst_oim_lendliz2", slot_quest_current_state, 0),
			(call_script, "script_fail_quest", "qst_oim_lendliz2"),
			(quest_set_slot, "qst_oim_lendliz2", slot_quest_current_state, 1),
			(assign, "$oim_auto_talk_troop", "trp_don_cossack"), 
			(assign, "$g_next_menu", "mnu_oim_auto_talk_menu"),
		(try_end),

插入代码块:
#oim getman caravan with letter
		(try_begin),
			(check_quest_active, "qst_oim_getman_caravan"),
			(neg|check_quest_succeeded, "qst_oim_getman_caravan"),
			(neg|check_quest_finished, "qst_oim_getman_caravan"),
			(eq, ":cur_party_template", "pt_oim_merchant_caravan"),
			(quest_slot_eq, "qst_oim_getman_caravan", slot_quest_current_state, 0),
			(call_script, "script_fail_quest", "qst_oim_getman_caravan"),
			(quest_set_slot, "qst_oim_getman_caravan", slot_quest_current_state, 1),
			(assign, "$oim_auto_talk_troop", "trp_caravan_master"), 
			(assign, "$g_next_menu", "mnu_oim_auto_talk_menu"),
		(try_end),

Those seem to be it. But that seems wrong. Anyway, what I want to do is make it so you can have up to five caravans out at a time based on your party trade skill. Where would I find the stuff for that, and is this it?
 
It's a bit more difficult that it looks - the caravan's party-id is contained in a slot for qst_oim_deliver_caravan, and so you would need to modify every instance where it expects a single entity and transfer the individual slot_quest_target_item and such to party slots.
 
2Aeon221

Search for qst_oim_deliver_caravan and for qst_oim_illness - there is solution for you - it shows how to iterate few similar quests and how to find free slot (quest) to add additional caravan.
 
后退
顶部 底部