- 好友
- 1
- 在线时间
- 505 小时
- 最后登录
- 2024-6-15
骑士
- UID
- 2988048
- 第纳尔
- 6497
- 精华
- 0
- 互助
- 34
- 荣誉
- 0
- 贡献
- 0
- 魅力
- 68
- 注册时间
- 2018-3-9
鲜花( 139) 鸡蛋( 0)
|
本帖最后由 三笠的艾伦 于 2020-4-6 18:20 编辑
分享一些自己玩潘德折腾的代码,长寿的骑友们可能都去玩砍2了。奈何178或198入正不难,难就难在买电脑没的3000+,实在难以愉快的开启砍2之旅。渣机只能继续战团的自娱自乐。这里分享折腾潘德的一些代码,给骑友提提鲜。
战场触发器代码:
#120秒无主马匹自动脱离战场
(120, 0, 0, [],
[
(try_for_agents, ":horse"),
(agent_is_alive, ":horse"),
(agent_is_active, ":horse"),
(neg|agent_is_human, ":horse"),
(agent_get_rider, ":no_rider", ":horse"),
(eq, ":no_rider", -1),
(agent_fade_out, ":horse"),
(try_end),
]),
#马匹生命值限制速度
(1.0, 0, 0, [],
[
(try_for_agents, ":var_0"),
(agent_is_alive, ":var_0"),
(agent_is_human, ":var_0"),#所有人有效
(agent_get_horse, ":var_1", ":var_0"),
(try_begin),
(ge, ":var_1", 0),
(store_agent_hit_points, ":var_2", ":var_1"),
(store_sub, ":var_3", 100, ":var_2"),
(try_begin),
(val_div, ":var_3", 3),
(store_sub, ":var_4", 100, ":var_3"),
(agent_get_troop_id, ":var_5", ":var_0"),
(store_skill_level, ":var_6", skl_riding, ":var_5"),
(val_add, ":var_4", ":var_6"),
(val_min, ":var_4", 100),
(try_end),
(agent_set_horse_speed_factor, ":var_0", ":var_4"),
(try_end),
(try_end),
]),
#马匹提升生命值,骑术等级*20点生命值加成
(ti_on_agent_spawn, 0, 0, [],
[
(try_for_agents, ":var_0"),
(agent_is_active, ":var_0"),
(try_begin),
(neg|agent_is_human, ":var_0"),
(agent_get_rider, ":var_17", ":var_0"),
(ge, ":var_17", 0),
(agent_is_ally, ":var_17"),#友军和玩家有效
(agent_get_troop_id, ":var18", ":var_17"),
(store_skill_level, ":var_19", skl_riding, ":var18"),
(store_agent_hit_points, ":var_20", ":var_0", 1),
(val_mul, ":var_19", 20),
(val_add, ":var_20", ":var_19"),
(agent_set_max_hit_points, ":var_0", ":var_20", 1),
(agent_set_hit_points, ":var_0", ":var_20", 1),
(try_end),
(try_end),
]),
#120秒回复友军npc弹药
(120, 0, 0, [],
[
(try_for_agents, ":npc"),
(agent_is_alive, ":npc"),
(agent_is_ally, ":npc"),#仅友军有效
# (agent_get_troop_id, ":ally", ":npc"),#仅NPC有效
# (troop_is_hero, ":ally"), #仅NPC有效
(agent_refill_ammo, ":npc"),
(try_end),
]),
#60秒回复友军npc百分比血量
(60, 0, 0, [],
[
(try_for_agents, ":npc"),
(agent_is_alive, ":npc"),
(agent_is_ally, ":npc"),#仅友军有效
(agent_is_human, ":npc"),
(agent_get_troop_id, ":ally", ":npc"),
(troop_is_hero, ":ally"),#仅NPC有效
(store_skill_level, ":npc_skl",skl_ironflesh, ":ally"),
(assign, ":hps", ":npc_skl"),
(try_begin),
(store_agent_hit_points, ":npc_hps", ":npc"),#获取血量百分比,":npc", 1)后面加1表示获取血量点数
(val_add, ":hps", ":npc_hps"),#铁骨等级百分比回血,若上方后面加1,则回复铁骨等级点数血量
(agent_set_hit_points, ":npc", ":hps"),
(try_end),
(try_end),
]),
#玩家每级铁骨8%的减伤效果,npc减伤9%*铁骨等级,友军减伤damage*(1-玩家统御等级*5%),玩家与npc伤害加成为力量*2的伤害点数加成
(ti_on_agent_hit, 0, 0, [],
[
(store_trigger_param_1, ":bgjz"),
(store_trigger_param_2, ":gjz"),
(store_trigger_param_3, ":damage"),
(agent_is_alive, ":bgjz"),
(agent_is_ally,":bgjz"),
(get_player_agent_no, ":player_no"),
(try_begin),
(neg|eq, ":bgjz", ":player_no"),#友军效果
(agent_get_troop_id, ":allyer", ":bgjz"),
(neg|troop_is_hero, ":allyer"),
(agent_get_troop_id, ":playarmy", ":player_no"),
(store_skill_level, ":player_army", skl_leadership, ":playarmy"),
(assign, ":army", ":player_army"),
(try_begin),
(eq, ":army", 0),
(val_mul, ":damage", 1),
(set_trigger_result, ":damage"),
(else_try),
(gt, ":army", 0),
(val_mul, ":army", -5),
(val_add, ":army", 100),
(val_mul, ":damage", ":army"),#减伤damage * (1-统御等级*5%)
(val_div, ":damage", 100),
(set_trigger_result, ":damage"),
(try_end),
(else_try),
(neg|eq, ":bgjz", ":player_no"),#友军npc效果
(agent_get_troop_id, ":ally", ":bgjz"),
(troop_is_hero, ":ally"),
(store_skill_level, ":npc_skl",skl_ironflesh, ":ally"),
(assign, ":bone", ":npc_skl"),
(try_begin),
(eq, ":bone", 0),
(val_mul, ":damage", 1),
(set_trigger_result, ":damage"),
(else_try),
(gt, ":bone", 0),
(val_mul, ":bone", -9),#减伤9%*铁骨等级
(val_add, ":bone", 100),
(val_mul, ":damage", ":bone"),
(val_div, ":damage", 100),
(set_trigger_result, ":damage"),
(try_end),
(else_try),
(eq, ":bgjz", ":player_no"),#玩家效果
(agent_get_troop_id, ":player", ":player_no"),
(store_skill_level, ":player_skl",skl_ironflesh, ":player"),
(assign, ":player_bone", ":player_skl"),
(try_begin),
(eq, ":player_bone", 0),
(val_mul, ":damage", 1),
(set_trigger_result, ":damage"),
(else_try),
(gt, ":player_bone", 0),
(val_mul, ":player_bone", -8),#每级铁骨减伤8%
(val_add, ":player_bone", 100),
(val_mul, ":damage", ":player_bone"),
(val_div, ":damage", 100),
(store_agent_hit_points, ":hps", ":player_no"),
(try_begin),
(ge, ":hps", 50),
(set_trigger_result, ":damage"),
(else_try),
(lt, ":hps", 50),
(val_div, ":damage", 2),#血量低于50% 伤害在8%基础上再减伤2分之一 玩家有效
(set_trigger_result, ":damage"),
(try_end),
(try_end),
(else_try),#玩家与npc伤害加成
(agent_is_alive, ":gjz"),
(agent_is_ally, ":gjz"),
(agent_get_troop_id, ":ally_npc", ":gjz"),
(troop_is_hero, ":ally_npc"),
(store_attribute_level,":ally_npc_skl", ":ally_npc", ca_strength),
(assign, ":power", ":ally_npc_skl"),
(try_begin),
(eq, ":power", 0),
(val_mul, ":damage", 1),
(set_trigger_result, ":damage"),
(else_try),
(gt, ":power", 0),
(val_mul, ":power", 2),#力量*2的伤害点数加成
(val_add, ":damage", ":power"),
(store_agent_hit_points, ":hp", ":gjz"),
(try_begin),
(ge, ":hp", 50),
(set_trigger_result, ":damage"),
(else_try),
(lt, ":hp", 50),
(val_mul, ":damage", 2),#血量低于50% 伤害在原有基础上增加为两倍 玩家和npc有效
(set_trigger_result, ":damage"),
(try_end),
(try_end),
(try_end),
]),
txt码:
120.000000 0.000000 0.000000 0 8 12 1 1224979098644774912 1702 1 1224979098644774912 1712 1 1224979098644774912 2147485352 1 1224979098644774912 1715 2 1224979098644774913 1224979098644774912 31 2 1224979098644774913 -1 1749 1 1224979098644774912 3 0
1.000000 0.000000 0.000000 0 19 12 1 1224979098644774912 1702 1 1224979098644774912 1704 1 1224979098644774912 1714 2 1224979098644774913 1224979098644774912 4 0 30 2 1224979098644774913 0 1720 2 1224979098644774914 1224979098644774913 2121 3 1224979098644774915 100 1224979098644774914 4 0 2108 2 1224979098644774915 3 2121 3 1224979098644774916 100 1224979098644774915 1718 2 1224979098644774917 1224979098644774912 2170 3 1224979098644774918 24 1224979098644774917 2105 2 1224979098644774916 1224979098644774918 2110 2 1224979098644774916 100 3 0 1734 2 1224979098644774912 1224979098644774916 3 0 3 0
-25.000000 0.000000 0.000000 0 16 12 1 1224979098644774912 1712 1 1224979098644774912 4 0 2147485352 1 1224979098644774912 1715 2 1224979098644774913 1224979098644774912 30 2 1224979098644774913 0 1706 1 1224979098644774913 1718 2 1224979098644774914 1224979098644774913 2170 3 1224979098644774915 24 1224979098644774914 1720 3 1224979098644774916 1224979098644774912 1 2107 2 1224979098644774915 20 2105 2 1224979098644774916 1224979098644774915 2090 3 1224979098644774912 1224979098644774916 1 1721 3 1224979098644774912 1224979098644774916 1 3 0 3 0
120.000000 0.000000 0.000000 0 5 12 1 1224979098644774912 1702 1 1224979098644774912 1706 1 1224979098644774912 1728 1 1224979098644774912 3 0
60.000000 0.000000 0.000000 0 14 12 1 1224979098644774912 1702 1 1224979098644774912 1706 1 1224979098644774912 1704 1 1224979098644774912 1718 2 1224979098644774913 1224979098644774912 1507 1 1224979098644774913 2170 3 1224979098644774914 36 1224979098644774913 2133 2 1224979098644774915 1224979098644774914 4 0 1720 2 1224979098644774916 1224979098644774912 2105 2 1224979098644774915 1224979098644774916 1721 2 1224979098644774912 1224979098644774915 3 0 3 0
-28.000000 0.000000 0.000000 0 94 2071 1 1224979098644774912 2072 1 1224979098644774913 2073 1 1224979098644774914 1702 1 1224979098644774912 1706 1 1224979098644774912 1700 1 1224979098644774915 4 0 2147483679 2 1224979098644774912 1224979098644774915 1718 2 1224979098644774916 1224979098644774912 2147485155 1 1224979098644774916 1718 2 1224979098644774917 1224979098644774915 2170 3 1224979098644774918 1 1224979098644774917 2133 2 1224979098644774919 1224979098644774918 4 0 31 2 1224979098644774919 0 2107 2 1224979098644774914 1 2075 1 1224979098644774914 5 0 32 2 1224979098644774919 0 2107 2 1224979098644774919 -5 2105 2 1224979098644774919 100 2107 2 1224979098644774914 1224979098644774919 2108 2 1224979098644774914 100 2075 1 1224979098644774914 3 0 5 0 2147483679 2 1224979098644774912 1224979098644774915 1718 2 1224979098644774920 1224979098644774912 1507 1 1224979098644774920 2170 3 1224979098644774921 36 1224979098644774920 2133 2 1224979098644774922 1224979098644774921 4 0 31 2 1224979098644774922 0 2107 2 1224979098644774914 1 2075 1 1224979098644774914 5 0 32 2 1224979098644774922 0 2107 2 1224979098644774922 -9 2105 2 1224979098644774922 100 2107 2 1224979098644774914 1224979098644774922 2108 2 1224979098644774914 100 2075 1 1224979098644774914 3 0 5 0 31 2 1224979098644774912 1224979098644774915 1718 2 1224979098644774923 1224979098644774915 2170 3 1224979098644774924 36 1224979098644774923 2133 2 1224979098644774925 1224979098644774924 4 0 31 2 1224979098644774925 0 2107 2 1224979098644774914 1 2075 1 1224979098644774914 5 0 32 2 1224979098644774925 0 2107 2 1224979098644774925 -8 2105 2 1224979098644774925 100 2107 2 1224979098644774914 1224979098644774925 2108 2 1224979098644774914 100 1720 2 1224979098644774926 1224979098644774915 4 0 30 2 1224979098644774926 50 2075 1 1224979098644774914 5 0 2147483678 2 1224979098644774926 50 2108 2 1224979098644774914 2 2075 1 1224979098644774914 3 0 3 0 5 0 1702 1 1224979098644774913 1706 1 1224979098644774913 1718 2 1224979098644774927 1224979098644774913 1507 1 1224979098644774927 2172 3 1224979098644774928 1224979098644774927 0 2133 2 1224979098644774929 1224979098644774928 4 0 31 2 1224979098644774929 0 2107 2 1224979098644774914 1 2075 1 1224979098644774914 5 0 32 2 1224979098644774929 0 2107 2 1224979098644774929 2 2105 2 1224979098644774914 1224979098644774929 1720 2 1224979098644774930 1224979098644774913 4 0 30 2 1224979098644774930 50 2075 1 1224979098644774914 5 0 2147483678 2 1224979098644774930 50 2107 2 1224979098644774914 2 2075 1 1224979098644774914 3 0 3 0 3 0
有需求的拿去研究和折腾吧
|
鲜花鸡蛋咸鱼圣代 在2023-3-26 02:22 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 karl-leung 在2020-7-9 20:04 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 小二郎 在2020-5-3 22:21 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下 黄昏的清兵卫 在2020-4-9 17:25 送朵鲜花 并说:我非常同意你的观点,送朵鲜花鼓励一下
|