1257AD增强版v2.6移动速度调整代码。
相对于大地图,整体移动速度太慢,刚才上班没事就做了对移动速度调整了下,实现以下几个目的。1,整体提高移动速度。
2,航海太慢了,现在航海=基础速度(7),但去掉原来受界面上云数量加成。
3,带俘虏的部队大幅度降低速度,速度减成就是俘虏/队伍数量,比如100个人带75个俘虏,就只有25%速度,最高75%,仅玩家可以通过俘虏管理抵消这个减成,每级5%,最高15级抵消全部75%。
4,还给牛加满速,方便牵牛。
总之,先分享文件给懒汉(覆盖模组目录对应文件):**** Hidden Message *****
然后是diy用的TXT码:
game_get_party_speed_multiplier -1
99 23 2 1224979098644774912 1 2133 2 1224979098644774913 144115188075857207 2133 2 1224979098644774914 100 2133 2 1224979098644774915 0 4 0 541 3 1224979098644774912 0 13 1685 3 1224979098644774916 1224979098644774912 14 2107 2 1224979098644774916 3 2105 2 1224979098644774914 1224979098644774916 3 0 4 0 1602 2 1224979098644774917 1224979098644774912 1601 2 1224979098644774918 1224979098644774912 2111 2 1224979098644774918 1 2107 2 1224979098644774917 50 2108 2 1224979098644774917 1224979098644774918 2110 2 1224979098644774917 75 4 0 31 2 1224979098644774912 648518346341351424 2170 3 1224979098644774919 2 360287970189639680 2107 2 1224979098644774919 5 2106 2 1224979098644774917 1224979098644774919 2111 2 1224979098644774917 0 3 0 2106 2 1224979098644774914 1224979098644774917 3 0 1608 2 1224979098644774920 1224979098644774912 4 0 31 2 1224979098644774920 2 2105 2 1224979098644774914 15 5 0 31 2 1224979098644774920 1 2106 2 1224979098644774914 8 5 0 31 2 1224979098644774920 3 2105 2 1224979098644774914 10 5 0 31 2 1224979098644774920 4 2106 2 1224979098644774914 5 5 0 31 2 1224979098644774920 5 2105 2 1224979098644774914 5 5 0 31 2 1224979098644774920 7 2106 2 1224979098644774914 10 5 0 31 2 1224979098644774920 8 2106 2 1224979098644774914 20 5 0 31 2 1224979098644774920 9 2106 2 1224979098644774914 13 5 0 31 2 1224979098644774920 10 2105 2 1224979098644774914 10 5 0 31 2 1224979098644774920 11 2106 2 1224979098644774914 5 5 0 31 2 1224979098644774920 12 2106 2 1224979098644774914 10 3 0 1609 2 1224979098644774920 1224979098644774912 4 0 31 2 1224979098644774920 576460752303423493 2105 2 1224979098644774915 9 5 0 31 2 1224979098644774920 576460752303423555 2105 2 1224979098644774915 7 5 0 31 2 1224979098644774920 576460752303423549 2105 2 1224979098644774915 5 5 0 31 2 1224979098644774920 576460752303423561 2105 2 1224979098644774915 3 5 0 1073741855 2 1224979098644774920 576460752303423535 1073741855 2 1224979098644774920 576460752303423537 1073741855 2 1224979098644774920 576460752303423536 1073741855 2 1224979098644774920 576460752303423538 1073741855 2 1224979098644774920 576460752303423540 1073741855 2 1224979098644774920 576460752303423541 1073741855 2 1224979098644774920 576460752303423536 1073741855 2 1224979098644774920 576460752303423494 31 2 1224979098644774920 576460752303423542 2105 2 1224979098644774915 1 3 0 2107 2 1224979098644774913 1224979098644774914 2108 2 1224979098644774913 100 2105 2 1224979098644774913 1224979098644774915 4 0 1073742365 3 1224979098644774912 251 1 541 3 1224979098644774912 301 1 2133 2 1224979098644774913 0 3 0 4 0 1 2 936748722493063748 1224979098644774912 2133 2 1224979098644774913 144115188075857207 3 0 2075 1 1224979098644774913
源代码也丢上来,想改的自己拷贝去改:
(store_script_param, ":var_0", 1),//部队ID
(assign, ":var_1", "$g_travel_speed"),//基础速度
(assign, ":var_2", 100),//百分比加成
(assign, ":var_3", 0),//绝对值加成
(try_begin),//向导加值
(party_slot_eq, ":var_0", slot_party_type, 13),
(party_get_skill_level, ":var_4", ":var_0", skl_pathfinding),
(val_mul, ":var_4", 3),
(val_add, ":var_2", ":var_4"),
(try_end),
(try_begin),//俘虏数量减值
(party_get_num_prisoners, ":var_5", ":var_0"),
(party_get_num_companions, ":var_6", ":var_0"),
(val_max, ":var_6", 1),
(val_mul, ":var_5", 50),
(val_div, ":var_5", ":var_6"),
(val_min, ":var_5", 75),
(try_begin),//玩家俘虏管理抵消俘虏数量减值
(eq, ":var_0", "p_main_party"),
(store_skill_level, ":var_7", skl_prisoner_management, "trp_player"),
(val_mul, ":var_7", 5),
(val_sub, ":var_5", ":var_7"),
(val_max, ":var_5", 0),
(try_end),
(val_sub, ":var_2", ":var_5"),
(try_end),
(party_get_current_terrain, ":var_8", ":var_0"),
(try_begin),//地形减值
(eq, ":var_8", 2),
(val_add, ":var_2", 15),
(else_try),
(eq, ":var_8", 1),
(val_sub, ":var_2", 8),
(else_try),
(eq, ":var_8", 3),
(val_add, ":var_2", 10),
(else_try),
(eq, ":var_8", 4),
(val_sub, ":var_2", 5),
(else_try),
(eq, ":var_8", 5),
(val_add, ":var_2", 5),
(else_try),
(eq, ":var_8", 7),
(val_sub, ":var_2", 10),
(else_try),
(eq, ":var_8", 8),
(val_sub, ":var_2", 20),
(else_try),
(eq, ":var_8", 9),
(val_sub, ":var_2", 13),
(else_try),
(eq, ":var_8", 10),
(val_add, ":var_2", 10),
(else_try),
(eq, ":var_8", 11),
(val_sub, ":var_2", 5),
(else_try),
(eq, ":var_8", 12),
(val_sub, ":var_2", 10),
(try_end),
(party_get_template_id, ":var_8", ":var_0"),
(try_begin),//特殊部队调整
(eq, ":var_8", "pt_cattle_herd"),
(val_add, ":var_3", 9),
(else_try),
(eq, ":var_8", "pt_messenger_party"),
(val_add, ":var_3", 7),
(else_try),
(eq, ":var_8", "pt_runaway_serfs"),
(val_add, ":var_3", 5),
(else_try),
(eq, ":var_8", "pt_routed_warriors"),
(val_add, ":var_3", 3),
(else_try),
(this_or_next|eq, ":var_8", "pt_steppe_bandits"),
(this_or_next|eq, ":var_8", "pt_desert_bandits"),
(this_or_next|eq, ":var_8", "pt_taiga_bandits"),
(this_or_next|eq, ":var_8", "pt_forest_bandits"),
(this_or_next|eq, ":var_8", "pt_sea_raiders"),
(this_or_next|eq, ":var_8", "pt_robber_knights"),
(this_or_next|eq, ":var_8", "pt_taiga_bandits"),
(this_or_next|eq, ":var_8", "pt_looters"),
(eq, ":var_8", "pt_deserters"),
(val_add, ":var_3", 1),
(try_end),
(val_mul, ":var_1", ":var_2"),//最后计算
(val_div, ":var_1", 100),
(val_add, ":var_1", ":var_3"),
(try_begin),//不动
(this_or_next|party_slot_eq, ":var_0", 251, 1),
(party_slot_eq, ":var_0", 301, 1),
(assign, ":var_1", 0),
(try_end),
(try_begin),//航海航海独立计算
(call_script, "script_cf_is_party_on_water", ":var_0"),
(assign, ":var_1", "$g_travel_speed")
(try_end),
(set_trigger_result, ":var_1"),
感谢分享
滋磁 感谢分享
谢谢无私分享
可以,用了 感谢分享,滴滴 安慰飞啊飞啊飞啊
后排围观后排围观
后排围观后排围观 增强版v2.6移动速度调整代码
56565666666
感谢分享!
感谢楼主分享
挖开封
1111111111111111111111111111
1111111111111111111111111111111111111111111111
dddddddddddddddddddddd
666666666666666666 6666666666666666666
感谢楼主分享
页:
[1]