真正的流水线工具,理论上全mod通用,通过任意方式输出party后在会将坐标的xy轴参数输出到rgl_log中,rpg_log的输出结果可以直接复制并用在party文件中,纯正方便后来开发者的轮子,效果简单易用,很容易上手。
presentation部分:
- ####大地图部队摆放系统
- ("party_position_edition",0,mesh_load_window,[
- (ti_on_presentation_load,
- [
- (presentation_set_duration, 999999),
-
- (set_fixed_point_multiplier, 1000),
- (str_store_string, s1, "@cpposit"),
- (create_text_overlay, reg1, s1, tf_center_justify),
- (position_set_x, pos1, 720),
- (position_set_y, pos1, 720),
- (overlay_set_position, reg1, pos1),
-
- (create_text_overlay, reg1, "@partyid", tf_center_justify),
- (position_set_x, pos1, 420),
- (position_set_y, pos1, 570),
- (overlay_set_position, reg1, pos1),
-
- (create_number_box_overlay, "$g_presentation_obj_admin_panel_2",towns_begin, villages_end),##这部分是控制范围的,可以随便改
- (position_set_x, pos1, 600),
- (position_set_y, pos1, 570),
- (overlay_set_position, "$g_presentation_obj_admin_panel_2", pos1),
- (overlay_set_val,"$g_presentation_obj_admin_panel_2","$password_1"),
-
-
- (create_text_overlay, reg1, "@movewith", tf_center_justify),
- (position_set_x, pos1, 420),
- (position_set_y, pos1, 465),
- (overlay_set_position, reg1, pos1),
- (create_check_box_overlay, "$g_presentation_obj_admin_panel_5","mesh_checkbox_off", "mesh_checkbox_on"),
- (position_set_x, pos1, 600),
- (position_set_y, pos1, 471),
- (overlay_set_position, "$g_presentation_obj_admin_panel_5", pos1),
- (overlay_set_val,"$g_presentation_obj_admin_panel_5","$password_2"),
-
- (create_button_overlay, reg12, "@setpos", tf_center_justify),
- (position_set_x, pos1, 500),
- (position_set_y, pos1, 230),
- (overlay_set_position, reg12, pos1),
-
- (create_button_overlay, reg15, "@dispcty", tf_center_justify),
- (position_set_x, pos1, 500),
- (position_set_y, pos1, 200),
- (overlay_set_position, reg15, pos1),
-
- (create_button_overlay, reg16, "@dispcst", tf_center_justify),
- (position_set_x, pos1, 500),
- (position_set_y, pos1, 170),
- (overlay_set_position, reg16, pos1),
-
- (create_button_overlay, reg17, "@dispvil", tf_center_justify),
- (position_set_x, pos1, 500),
- (position_set_y, pos1, 140),
- (overlay_set_position, reg17, pos1),
- (create_button_overlay, reg13, "@disppos", tf_center_justify),
- (position_set_x, pos1, 500),
- (position_set_y, pos1, 110),
- (overlay_set_position, reg13, pos1),
-
- (create_button_overlay, reg14, "@dispposall", tf_center_justify),
- (position_set_x, pos1, 500),
- (position_set_y, pos1, 80),
- (overlay_set_position, reg14, pos1),
-
- (create_button_overlay, "$g_presentation_obj_name_kingdom_2", "@Continue...", tf_center_justify),
- (position_set_x, pos1, 500),
- (position_set_y, pos1, 50),
- (overlay_set_position, "$g_presentation_obj_name_kingdom_2", pos1),
-
-
- (ge,"$password_1", 1),
- (str_store_party_name, s1, "$password_1"),
- (create_text_overlay, reg1, s1, tf_center_justify),
- (position_set_x, pos1, 420),
- (position_set_y, pos1, 545),
- (overlay_set_position, reg1, pos1),
- (party_get_slot,":type","$password_1",slot_party_type),
- (try_begin),
- (eq,":type",spt_town),
- (str_store_string, s1, "@town"),
- (else_try),
- (eq,":type",spt_castle),
- (str_store_string, s1, "@castle"),
- (else_try),
- (eq,":type",spt_village),
- (str_store_string, s1, "@village"),
- (try_end),
- (create_text_overlay, reg1, s1, tf_center_justify),
- (position_set_x, pos1, 420),
- (position_set_y, pos1, 520),
- (overlay_set_position, reg1, pos1),
- (party_get_slot,":type","$password_1",slot_party_type),
-
- (store_faction_of_party,":faction","$password_1"),
- (str_store_faction_name, s1, ":faction"),
- (create_text_overlay, reg1, s1, tf_center_justify),
- (position_set_x, pos1, 420),
- (position_set_y, pos1, 495),
- (overlay_set_position, reg1, pos1),
- ]),
-
-
- (ti_on_presentation_event_state_change,
- [(store_trigger_param_1, ":object"),
- (store_trigger_param_2, ":value"),
- (try_begin),
- (eq, ":object", "$g_presentation_obj_admin_panel_2"),
- (assign, "$password_1", ":value"),
- (start_presentation, "prsnt_party_position_edition"),
- (else_try),
- (eq, ":object", "$g_presentation_obj_admin_panel_5"),
- (assign, "$password_2", ":value"),
- (else_try),
- (eq, ":object",reg12),
- (party_get_position,pos2,"p_main_party"),
- (party_set_position,"$password_1",pos2),
- (eq,"$password_2",1),
- (position_move_y,pos2,180),
- (position_move_x,pos2,-160),
- (try_for_parties,":village",villages_begin,villages_end),
- (party_slot_eq,":village",slot_village_bound_center,"$password_1"),
- (position_move_x,pos2,80),
- (party_set_position,":village",pos2),
- (try_end),
- (else_try),
- (eq, ":object",reg13),
- (set_fixed_point_multiplier, 100),
- (str_store_party_name, s21, "$password_1"),
- (party_get_position,pos3,"$password_1"),
- (position_get_x,reg30,pos3),
- (position_get_y,reg31,pos3),
- (store_mod,reg40,reg30,100),
- (store_mod,reg41,reg31,100),
- (val_abs,reg40),
- (val_abs,reg41),
- (val_div,reg30,100),
- (val_div,reg31,100),
- (display_log_message,"@{s21} ({reg30}.{reg40},{reg31}.{reg41})"),
- (set_fixed_point_multiplier, 1000),
- (else_try),
- (eq, ":object",reg14),
- (set_fixed_point_multiplier, 100),
- (try_for_range,":center","p_town_1","p_salt_mine"),
- (str_store_party_name, s21, ":center"),
- (party_get_position,pos3,":center"),
- (position_get_x,reg30,pos3),
- (position_get_y,reg31,pos3),
- (store_mod,reg40,reg30,100),
- (store_mod,reg41,reg31,100),
- (val_abs,reg40),
- (val_abs,reg41),
- (val_div,reg30,100),
- (val_div,reg31,100),
- (display_log_message,"@{s21} ({reg30}.{reg40},{reg31}.{reg41})"),
- (try_end),
- (set_fixed_point_multiplier, 1000),
- (else_try),
- (eq, ":object",reg15),
- (set_fixed_point_multiplier, 100),
- (try_for_range,":center",towns_begin,towns_end),
- (str_store_party_name, s21, ":center"),
- (party_get_position,pos3,":center"),
- (position_get_x,reg30,pos3),
- (position_get_y,reg31,pos3),
- (store_mod,reg40,reg30,100),
- (store_mod,reg41,reg31,100),
- (val_abs,reg40),
- (val_abs,reg41),
- (val_div,reg30,100),
- (val_div,reg31,100),
- (display_log_message,"@{s21} ({reg30}.{reg40},{reg31}.{reg41})"),
- (try_end),
- (set_fixed_point_multiplier, 1000),
- (else_try),
- (eq, ":object",reg16),
- (set_fixed_point_multiplier, 100),
- (try_for_range,":center",castles_begin,castles_end),
- (str_store_party_name, s21, ":center"),
- (party_get_position,pos3,":center"),
- (position_get_x,reg30,pos3),
- (position_get_y,reg31,pos3),
- (store_mod,reg40,reg30,100),
- (store_mod,reg41,reg31,100),
- (val_abs,reg40),
- (val_abs,reg41),
- (val_div,reg30,100),
- (val_div,reg31,100),
- (display_log_message,"@{s21} ({reg30}.{reg40},{reg31}.{reg41})"),
- (try_end),
- (set_fixed_point_multiplier, 1000),
- (else_try),
- (eq, ":object",reg17),
- (set_fixed_point_multiplier, 100),
- (try_for_range,":center",villages_begin,villages_end),
- (str_store_party_name, s21, ":center"),
- (party_get_position,pos3,":center"),
- (position_get_x,reg30,pos3),
- (position_get_y,reg31,pos3),
- (store_mod,reg40,reg30,100),
- (store_mod,reg41,reg31,100),
- (val_abs,reg40),
- (val_abs,reg41),
- (val_div,reg30,100),
- (val_div,reg31,100),
- (display_log_message,"@{s21} ({reg30}.{reg40},{reg31}.{reg41})"),
- (try_end),
- (set_fixed_point_multiplier, 1000),
- (else_try),
- (eq, ":object", "$g_presentation_obj_name_kingdom_2"),
- (presentation_set_duration, 1),
- (try_end),
- ]),
- ]),
- ####大地图部队摆放系统
复制代码
string部分:
- ("cpposit","s"),
- ("disppos","s"),
- ("dispposall","s"),
- ("dispcty","s"),
- ("dispcst","s"),
- ("dispvil","s"),
- ("setpos","s"),
- ("partyid","s"),
- ("movewith","s"),
- ("dispminp","s"),
复制代码
汉化部分:
- str_cpposit|据 点 摆 放 系 统
- str_disppos|输 出 选 中 据 点
- str_dispposall|输 出 所 有 据 点
- str_dispcty|输 出 所 有 城 市
- str_dispcst|输 出 所 有 城 堡
- str_dispvil|输 出 所 有 村 子
- str_setpos|将 据 点 放 置 到 部 队 位 置
- str_partyid|部 队 id
- str_movewith|村 子 跟 随 城 / 堡 移 动
- str_dispminp|输 出 玩 家 位 置
复制代码
效果演示:
|