Добавляем Аванпосты (Форт) в мод.
Наверно,каждый из вас желал так чтоб ГГ умел строить свой аванпост?Это стало реальностью!Приступим.
ВНИМАНИЕ!!! Если хотите использовать это,нужно ВЛАДЕТЬ базовыми знаниями по модульке и по скриптам. Итак.
На официальном форуме выложили код с помощью которого игрок получит возможность возводить укрепления на стратегической карте.
Автор:Lumos
Родная страница.
СКАЧАТЬ
Этот код позволит вам:
~Строить два аванпоста в любом месте на страт. карте;
~Заходить в эти аванпосты;
~Размещать в аванпосте войска для защиты территории;
~Улучшать аванпосты;
~Улучшать патрули (только после улучшения аванпоста), тем самым делая их силными
В других версиях будет:
~Возможность осады аванпоста;
~Возможность поговорить с охранниками (пока вроде бы не работает);
~Научить ИИ строить аванпосты;
~Заставить ИИ атаковать эти аванпосты;
~Расширить диалоги с патрулирующими войсками.
Если вы собираетесь использовать эти наработки в своем моде, то вначале спросите разрешения у автора.
Приступаем:
В module_constants.py ставим этот код.Чтобы не путаться ставим под spt_village:
[quote]("camp_outposts",[], "Manage your outposts",
[(jump_to_menu, "mnu_outpost_manage")],
),[/quote]
В module_game_menus в самый конец (до финальной скобки)
[quote]("outpost_one","Outpost",icon_camp|pf_disabled|pf_is_static|pf_always_visible|pf_show_faction|pf_label_medium, no_menu, pt_none, fac_neutral, 0, ai_bhvr_hold, 0, (-1,-1), [], 100),
("outpost_two","Outpost",icon_camp|pf_disabled|pf_is_static|pf_always_visible|pf_show_faction|pf_label_medium, no_menu, pt_none, fac_neutral, 0, ai_bhvr_hold, 0, (-1,-1), [], 100),[/quote]
В module_party_templates:В самый конец:
"outpost_patrol_one","Outpost Patrol",icon_gray_knight|carries_goods(3),0,fac_commoners,soldier_personality,[(trp_nord_footman,20,20)]),
("outpost_patrol_two","Outpost Patrol",icon_gray_knight|carries_goods(3),0,fac_commoners,soldier_personality,[(trp_nord_footman,20,20)]),
[/quote]
ВНИМАНИЕ!
Начинается самое сложное,скритпы,будьте осторожней!От этого зависит работоспособность мода!
Ставим в module_scripts:В поле:script_game_event_party_encounter.Пример обычной модульки:
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_ship),
(jump_to_menu, "mnu_ship_reembark"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_village),
(jump_to_menu, "mnu_village"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_cattle_herd),
(jump_to_menu, "mnu_cattle_herd"),
Меняем,чтоб было так:
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_ship),
(jump_to_menu, "mnu_ship_reembark"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_village),
(jump_to_menu, "mnu_village"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_outpost_one),
(jump_to_menu, "mnu_outpost_one"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_outpost_two),
(jump_to_menu, "mnu_outpost_two"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_cattle_herd),
(jump_to_menu, "mnu_cattle_herd"),
В самый конец
("setup_outpost_scene_one_one",
[
(party_get_current_terrain, ":terrain_type", "p_main_party"),
(assign, ":scene_to_use", "scn_random_scene"),
(try_begin),
(eq, ":terrain_type", rt_steppe),
(assign, ":scene_to_use", "scn_outpost_one_one_steppe"),
(else_try),
(eq, ":terrain_type", rt_plain),
(assign, ":scene_to_use", "scn_outpost_one_one_plain"),
(else_try),
(eq, ":terrain_type", rt_snow),
(assign, ":scene_to_use", "scn_outpost_one_one_snow"),
(else_try),
(eq, ":terrain_type", rt_desert),
(assign, ":scene_to_use", "scn_outpost_one_one_desert"),#scn_outpost_scene_desert
(else_try),
(eq, ":terrain_type", rt_steppe_forest),
(assign, ":scene_to_use", "scn_outpost_one_one_steppe_forest"),
(else_try),
(eq, ":terrain_type", rt_forest),
(assign, ":scene_to_use", "scn_outpost_one_one_forest"),
(else_try),
(eq, ":terrain_type", rt_snow_forest),
(assign, ":scene_to_use", "scn_outpost_one_one_snow_forest"),
(else_try),
(eq, ":terrain_type", rt_desert_forest),
(assign, ":scene_to_use", "scn_outpost_one_one_desert_forest"),
(try_end),
(assign, reg1, ":scene_to_use"),
(jump_to_scene,":scene_to_use"),
]),
("setup_outpost_scene_one_two",
[
(party_get_current_terrain, ":terrain_type", "p_main_party"),
(assign, ":scene_to_use", "scn_random_scene"),
(try_begin),
(eq, ":terrain_type", rt_steppe),
(assign, ":scene_to_use", "scn_outpost_one_two_steppe"),
(else_try),
(eq, ":terrain_type", rt_plain),
(assign, ":scene_to_use", "scn_outpost_one_two_plain"),
(else_try),
(eq, ":terrain_type", rt_snow),
(assign, ":scene_to_use", "scn_outpost_one_two_snow"),
(else_try),
(eq, ":terrain_type", rt_desert),
(assign, ":scene_to_use", "scn_outpost_one_two_desert"),#scn_outpost_scene_desert
(else_try),
(eq, ":terrain_type", rt_steppe_forest),
(assign, ":scene_to_use", "scn_outpost_one_two_steppe_forest"),
(else_try),
(eq, ":terrain_type", rt_forest),
(assign, ":scene_to_use", "scn_outpost_one_two_forest"),
(else_try),
(eq, ":terrain_type", rt_snow_forest),
(assign, ":scene_to_use", "scn_outpost_one_two_snow_forest"),
(else_try),
(eq, ":terrain_type", rt_desert_forest),
(assign, ":scene_to_use", "scn_outpost_one_two_desert_forest"),
(try_end),
(assign, reg1, ":scene_to_use"),
(jump_to_scene,":scene_to_use"),
]),
("setup_outpost_scene_two_one",
[
(party_get_current_terrain, ":terrain_type", "p_main_party"),
(assign, ":scene_to_use", "scn_random_scene"),
(try_begin),
(eq, ":terrain_type", rt_steppe),
(assign, ":scene_to_use", "scn_outpost_two_one_steppe"),
(else_try),
(eq, ":terrain_type", rt_plain),
(assign, ":scene_to_use", "scn_outpost_two_one_plain"),
(else_try),
(eq, ":terrain_type", rt_snow),
(assign, ":scene_to_use", "scn_outpost_two_one_snow"),
(else_try),
(eq, ":terrain_type", rt_desert),
(assign, ":scene_to_use", "scn_outpost_two_one_desert"),#scn_outpost_scene_desert
(else_try),
(eq, ":terrain_type", rt_steppe_forest),
(assign, ":scene_to_use", "scn_outpost_two_one_steppe_forest"),
(else_try),
(eq, ":terrain_type", rt_forest),
(assign, ":scene_to_use", "scn_outpost_two_one_forest"),
(else_try),
(eq, ":terrain_type", rt_snow_forest),
(assign, ":scene_to_use", "scn_outpost_two_one_snow_forest"),
(else_try),
(eq, ":terrain_type", rt_desert_forest),
(assign, ":scene_to_use", "scn_outpost_two_one_desert_forest"),
(try_end),
(assign, reg1, ":scene_to_use"),
(jump_to_scene,":scene_to_use"),
]),
("setup_outpost_scene_two_two",
[
(party_get_current_terrain, ":terrain_type", "p_main_party"),
(assign, ":scene_to_use", "scn_random_scene"),
(try_begin),
(eq, ":terrain_type", rt_steppe),
(assign, ":scene_to_use", "scn_outpost_two_two_steppe"),
(else_try),
(eq, ":terrain_type", rt_plain),
(assign, ":scene_to_use", "scn_outpost_two_two_plain"),
(else_try),
(eq, ":terrain_type", rt_snow),
(assign, ":scene_to_use", "scn_outpost_two_two_snow"),
(else_try),
(eq, ":terrain_type", rt_desert),
(assign, ":scene_to_use", "scn_outpost_two_two_desert"),#scn_outpost_scene_desert
(else_try),
(eq, ":terrain_type", rt_steppe_forest),
(assign, ":scene_to_use", "scn_outpost_two_two_steppe_forest"),
(else_try),
(eq, ":terrain_type", rt_forest),
(assign, ":scene_to_use", "scn_outpost_two_two_forest"),
(else_try),
(eq, ":terrain_type", rt_snow_forest),
(assign, ":scene_to_use", "scn_outpost_two_two_snow_forest"),
(else_try),
(eq, ":terrain_type", rt_desert_forest),
(assign, ":scene_to_use", "scn_outpost_two_two_desert_forest"),
(try_end),
(assign, reg1, ":scene_to_use"),
(jump_to_scene,":scene_to_use"),
]),
В module_dialogs:В самый конец:
[anyone ,"start",
[
(eq, "$g_encountered_party", "pt_outpost_patrol_one")
],
"Good day, {sir/madam}. Is there anything we can do for you?", "patrol_one_1",[]],
[anyone|plyr,"patrol_one_1", [], "Just do your business.", "close_window",[]],
[anyone|plyr,"patrol_one_1", [], "No, not really.", "close_window",[]],
[anyone ,"start",
[
(eq, "$g_encountered_party", "pt_outpost_patrol_two")
],
"Good day, {sir/madam}. Is there anything we can do for you?", "patrol_two_1",[]],
[anyone|plyr,"patrol_two_1", [], "Just do your business.", "close_window",[]],
[anyone|plyr,"patrol_two_1", [], "No, not really.", "close_window",[]],
В module_scenes. Я сделал несколько рандомных сцен,сами в дальнейшем сможете изменить:
("outpost_one_one_steppe",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000002c678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe"),
("outpost_one_one_plain",sf_generate,"none", "none", (0,0),(100,100),-100,"0x30054da28004050000005a76800022aa00002e3b",
[],[],"outer_terrain_plain"),
("outpost_one_one_snow",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000004c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_snow"),
("outpost_one_one_desert",sf_generate,"none", "none", (0,0),(100,100),-100,"0x0000000055878e1ec003f0ff0000445800002b7500007d87",
[],[],"outer_terrain_desert"),
("outpost_one_one_steppe_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000ac678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe_forest"),
("outpost_one_one_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000bc678e248003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_forest"),
("outpost_one_one_snow_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000cc678e1e8003f0ff107a3fff0043c9af00007d87",
[],[],"outer_terrain_snow_forest"),
("outpost_one_one_desert_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000dc678e240003f0ff107a3fff08cbd537000068de",
[],[],"outer_terrain_desert_forest"),
("outpost_one_two_steppe",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000002c678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe"),
("outpost_one_two_plain",sf_generate,"none", "none", (0,0),(100,100),-100,"0x30054da28004050000005a76800022aa00002e3b",
[],[],"outer_terrain_plain"),
("outpost_one_two_snow",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000004c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_snow"),
("outpost_one_two_desert",sf_generate,"none", "none", (0,0),(100,100),-100,"0x0000000055878e1ec003f0ff0000445800002b7500007d87",
[],[],"outer_terrain_desert"),
("outpost_one_two_steppe_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000ac678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe_forest"),
("outpost_one_two_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000bc678e248003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_forest"),
("outpost_one_two_snow_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000cc678e1e8003f0ff107a3fff0043c9af00007d87",
[],[],"outer_terrain_snow_forest"),
("outpost_one_two_desert_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000dc678e240003f0ff107a3fff08cbd537000068de",
[],[],"outer_terrain_desert_forest"),
("outpost_two_one_steppe",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000002c678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe"),
("outpost_two_one_plain",sf_generate,"none", "none", (0,0),(100,100),-100,"0x30054da28004050000005a76800022aa00002e3b",
[],[],"outer_terrain_plain"),
("outpost_two_one_snow",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000004c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_snow"),
("outpost_two_one_desert",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000005c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_desert"),
("outpost_two_one_steppe_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000ac678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe_forest"),
("outpost_two_one_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000bc678e248003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_forest"),
("outpost_two_one_snow_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000cc678e1e8003f0ff107a3fff0043c9af00007d87",
[],[],"outer_terrain_snow_forest"),
("outpost_two_one_desert_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000dc678e240003f0ff107a3fff08cbd537000068de",
[],[],"outer_terrain_desert_forest"),
("outpost_two_two_steppe",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000002c678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe"),
("outpost_two_two_plain",sf_generate,"none", "none", (0,0),(100,100),-100,"0x30054da28004050000005a76800022aa00002e3b",
[],[],"outer_terrain_plain"),
("outpost_two_two_snow",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000004c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_snow"),
("outpost_two_two_desert",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000005c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_desert"),
("outpost_two_two_steppe_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000ac678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe_forest"),
("outpost_two_two_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000bc678e248003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_forest"),
("outpost_two_two_snow_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000cc678e1e8003f0ff107a3fff0043c9af00007d87",
[],[],"outer_terrain_snow"),
("outpost_two_two_desert_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000dc678e240003f0ff107a3fff08cbd537000068de",
[],[],"outer_terrain_desert"),
[quote]("camp_outposts",[], "Manage your outposts",
[(jump_to_menu, "mnu_outpost_manage")],
),[/quote]
В module_game_menus в самый конец (до финальной скобки)
[quote]("outpost_one","Outpost",icon_camp|pf_disabled|pf_is_static|pf_always_visible|pf_show_faction|pf_label_medium, no_menu, pt_none, fac_neutral, 0, ai_bhvr_hold, 0, (-1,-1), [], 100),
("outpost_two","Outpost",icon_camp|pf_disabled|pf_is_static|pf_always_visible|pf_show_faction|pf_label_medium, no_menu, pt_none, fac_neutral, 0, ai_bhvr_hold, 0, (-1,-1), [], 100),[/quote]
В module_party_templates:В самый конец:
"outpost_patrol_one","Outpost Patrol",icon_gray_knight|carries_goods(3),0,fac_commoners,soldier_personality,[(trp_nord_footman,20,20)]),
("outpost_patrol_two","Outpost Patrol",icon_gray_knight|carries_goods(3),0,fac_commoners,soldier_personality,[(trp_nord_footman,20,20)]),
[/quote]
ВНИМАНИЕ!
Начинается самое сложное,скритпы,будьте осторожней!От этого зависит работоспособность мода!
Ставим в module_scripts:В поле:script_game_event_party_encounter.Пример обычной модульки:
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_ship),
(jump_to_menu, "mnu_ship_reembark"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_village),
(jump_to_menu, "mnu_village"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_cattle_herd),
(jump_to_menu, "mnu_cattle_herd"),
Меняем,чтоб было так:
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_ship),
(jump_to_menu, "mnu_ship_reembark"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_village),
(jump_to_menu, "mnu_village"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_outpost_one),
(jump_to_menu, "mnu_outpost_one"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_outpost_two),
(jump_to_menu, "mnu_outpost_two"),
(else_try),
(party_slot_eq, "$g_encountered_party", slot_party_type, spt_cattle_herd),
(jump_to_menu, "mnu_cattle_herd"),
В самый конец
("setup_outpost_scene_one_one",
[
(party_get_current_terrain, ":terrain_type", "p_main_party"),
(assign, ":scene_to_use", "scn_random_scene"),
(try_begin),
(eq, ":terrain_type", rt_steppe),
(assign, ":scene_to_use", "scn_outpost_one_one_steppe"),
(else_try),
(eq, ":terrain_type", rt_plain),
(assign, ":scene_to_use", "scn_outpost_one_one_plain"),
(else_try),
(eq, ":terrain_type", rt_snow),
(assign, ":scene_to_use", "scn_outpost_one_one_snow"),
(else_try),
(eq, ":terrain_type", rt_desert),
(assign, ":scene_to_use", "scn_outpost_one_one_desert"),#scn_outpost_scene_desert
(else_try),
(eq, ":terrain_type", rt_steppe_forest),
(assign, ":scene_to_use", "scn_outpost_one_one_steppe_forest"),
(else_try),
(eq, ":terrain_type", rt_forest),
(assign, ":scene_to_use", "scn_outpost_one_one_forest"),
(else_try),
(eq, ":terrain_type", rt_snow_forest),
(assign, ":scene_to_use", "scn_outpost_one_one_snow_forest"),
(else_try),
(eq, ":terrain_type", rt_desert_forest),
(assign, ":scene_to_use", "scn_outpost_one_one_desert_forest"),
(try_end),
(assign, reg1, ":scene_to_use"),
(jump_to_scene,":scene_to_use"),
]),
("setup_outpost_scene_one_two",
[
(party_get_current_terrain, ":terrain_type", "p_main_party"),
(assign, ":scene_to_use", "scn_random_scene"),
(try_begin),
(eq, ":terrain_type", rt_steppe),
(assign, ":scene_to_use", "scn_outpost_one_two_steppe"),
(else_try),
(eq, ":terrain_type", rt_plain),
(assign, ":scene_to_use", "scn_outpost_one_two_plain"),
(else_try),
(eq, ":terrain_type", rt_snow),
(assign, ":scene_to_use", "scn_outpost_one_two_snow"),
(else_try),
(eq, ":terrain_type", rt_desert),
(assign, ":scene_to_use", "scn_outpost_one_two_desert"),#scn_outpost_scene_desert
(else_try),
(eq, ":terrain_type", rt_steppe_forest),
(assign, ":scene_to_use", "scn_outpost_one_two_steppe_forest"),
(else_try),
(eq, ":terrain_type", rt_forest),
(assign, ":scene_to_use", "scn_outpost_one_two_forest"),
(else_try),
(eq, ":terrain_type", rt_snow_forest),
(assign, ":scene_to_use", "scn_outpost_one_two_snow_forest"),
(else_try),
(eq, ":terrain_type", rt_desert_forest),
(assign, ":scene_to_use", "scn_outpost_one_two_desert_forest"),
(try_end),
(assign, reg1, ":scene_to_use"),
(jump_to_scene,":scene_to_use"),
]),
("setup_outpost_scene_two_one",
[
(party_get_current_terrain, ":terrain_type", "p_main_party"),
(assign, ":scene_to_use", "scn_random_scene"),
(try_begin),
(eq, ":terrain_type", rt_steppe),
(assign, ":scene_to_use", "scn_outpost_two_one_steppe"),
(else_try),
(eq, ":terrain_type", rt_plain),
(assign, ":scene_to_use", "scn_outpost_two_one_plain"),
(else_try),
(eq, ":terrain_type", rt_snow),
(assign, ":scene_to_use", "scn_outpost_two_one_snow"),
(else_try),
(eq, ":terrain_type", rt_desert),
(assign, ":scene_to_use", "scn_outpost_two_one_desert"),#scn_outpost_scene_desert
(else_try),
(eq, ":terrain_type", rt_steppe_forest),
(assign, ":scene_to_use", "scn_outpost_two_one_steppe_forest"),
(else_try),
(eq, ":terrain_type", rt_forest),
(assign, ":scene_to_use", "scn_outpost_two_one_forest"),
(else_try),
(eq, ":terrain_type", rt_snow_forest),
(assign, ":scene_to_use", "scn_outpost_two_one_snow_forest"),
(else_try),
(eq, ":terrain_type", rt_desert_forest),
(assign, ":scene_to_use", "scn_outpost_two_one_desert_forest"),
(try_end),
(assign, reg1, ":scene_to_use"),
(jump_to_scene,":scene_to_use"),
]),
("setup_outpost_scene_two_two",
[
(party_get_current_terrain, ":terrain_type", "p_main_party"),
(assign, ":scene_to_use", "scn_random_scene"),
(try_begin),
(eq, ":terrain_type", rt_steppe),
(assign, ":scene_to_use", "scn_outpost_two_two_steppe"),
(else_try),
(eq, ":terrain_type", rt_plain),
(assign, ":scene_to_use", "scn_outpost_two_two_plain"),
(else_try),
(eq, ":terrain_type", rt_snow),
(assign, ":scene_to_use", "scn_outpost_two_two_snow"),
(else_try),
(eq, ":terrain_type", rt_desert),
(assign, ":scene_to_use", "scn_outpost_two_two_desert"),#scn_outpost_scene_desert
(else_try),
(eq, ":terrain_type", rt_steppe_forest),
(assign, ":scene_to_use", "scn_outpost_two_two_steppe_forest"),
(else_try),
(eq, ":terrain_type", rt_forest),
(assign, ":scene_to_use", "scn_outpost_two_two_forest"),
(else_try),
(eq, ":terrain_type", rt_snow_forest),
(assign, ":scene_to_use", "scn_outpost_two_two_snow_forest"),
(else_try),
(eq, ":terrain_type", rt_desert_forest),
(assign, ":scene_to_use", "scn_outpost_two_two_desert_forest"),
(try_end),
(assign, reg1, ":scene_to_use"),
(jump_to_scene,":scene_to_use"),
]),
В module_dialogs:В самый конец:
[anyone ,"start",
[
(eq, "$g_encountered_party", "pt_outpost_patrol_one")
],
"Good day, {sir/madam}. Is there anything we can do for you?", "patrol_one_1",[]],
[anyone|plyr,"patrol_one_1", [], "Just do your business.", "close_window",[]],
[anyone|plyr,"patrol_one_1", [], "No, not really.", "close_window",[]],
[anyone ,"start",
[
(eq, "$g_encountered_party", "pt_outpost_patrol_two")
],
"Good day, {sir/madam}. Is there anything we can do for you?", "patrol_two_1",[]],
[anyone|plyr,"patrol_two_1", [], "Just do your business.", "close_window",[]],
[anyone|plyr,"patrol_two_1", [], "No, not really.", "close_window",[]],
В module_scenes. Я сделал несколько рандомных сцен,сами в дальнейшем сможете изменить:
("outpost_one_one_steppe",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000002c678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe"),
("outpost_one_one_plain",sf_generate,"none", "none", (0,0),(100,100),-100,"0x30054da28004050000005a76800022aa00002e3b",
[],[],"outer_terrain_plain"),
("outpost_one_one_snow",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000004c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_snow"),
("outpost_one_one_desert",sf_generate,"none", "none", (0,0),(100,100),-100,"0x0000000055878e1ec003f0ff0000445800002b7500007d87",
[],[],"outer_terrain_desert"),
("outpost_one_one_steppe_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000ac678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe_forest"),
("outpost_one_one_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000bc678e248003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_forest"),
("outpost_one_one_snow_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000cc678e1e8003f0ff107a3fff0043c9af00007d87",
[],[],"outer_terrain_snow_forest"),
("outpost_one_one_desert_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000dc678e240003f0ff107a3fff08cbd537000068de",
[],[],"outer_terrain_desert_forest"),
("outpost_one_two_steppe",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000002c678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe"),
("outpost_one_two_plain",sf_generate,"none", "none", (0,0),(100,100),-100,"0x30054da28004050000005a76800022aa00002e3b",
[],[],"outer_terrain_plain"),
("outpost_one_two_snow",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000004c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_snow"),
("outpost_one_two_desert",sf_generate,"none", "none", (0,0),(100,100),-100,"0x0000000055878e1ec003f0ff0000445800002b7500007d87",
[],[],"outer_terrain_desert"),
("outpost_one_two_steppe_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000ac678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe_forest"),
("outpost_one_two_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000bc678e248003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_forest"),
("outpost_one_two_snow_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000cc678e1e8003f0ff107a3fff0043c9af00007d87",
[],[],"outer_terrain_snow_forest"),
("outpost_one_two_desert_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000dc678e240003f0ff107a3fff08cbd537000068de",
[],[],"outer_terrain_desert_forest"),
("outpost_two_one_steppe",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000002c678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe"),
("outpost_two_one_plain",sf_generate,"none", "none", (0,0),(100,100),-100,"0x30054da28004050000005a76800022aa00002e3b",
[],[],"outer_terrain_plain"),
("outpost_two_one_snow",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000004c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_snow"),
("outpost_two_one_desert",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000005c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_desert"),
("outpost_two_one_steppe_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000ac678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe_forest"),
("outpost_two_one_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000bc678e248003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_forest"),
("outpost_two_one_snow_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000cc678e1e8003f0ff107a3fff0043c9af00007d87",
[],[],"outer_terrain_snow_forest"),
("outpost_two_one_desert_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000dc678e240003f0ff107a3fff08cbd537000068de",
[],[],"outer_terrain_desert_forest"),
("outpost_two_two_steppe",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000002c678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe"),
("outpost_two_two_plain",sf_generate,"none", "none", (0,0),(100,100),-100,"0x30054da28004050000005a76800022aa00002e3b",
[],[],"outer_terrain_plain"),
("outpost_two_two_snow",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000004c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_snow"),
("outpost_two_two_desert",sf_generate,"none", "none", (0,0),(100,100),-100,"0x000000005c678e240003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_desert"),
("outpost_two_two_steppe_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000ac678e1e8003f0ff107a3fff00004b7700007d87",
[],[],"outer_terrain_steppe_forest"),
("outpost_two_two_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000bc678e248003f0ff107a3fff08cbd53700007d87",
[],[],"outer_terrain_forest"),
("outpost_two_two_snow_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000cc678e1e8003f0ff107a3fff0043c9af00007d87",
[],[],"outer_terrain_snow"),
("outpost_two_two_desert_forest",sf_generate,"none", "none", (0,0),(100,100),-100,"0x00000000dc678e240003f0ff107a3fff08cbd537000068de",
[],[],"outer_terrain_desert"),
Вопросы приветствуются,критика,троллинг-нет :wink:
Комментариев 36
Посетители, находящиеся в группе Гости, не могут оставлять комментарии к данной публикации.