骑马与砍杀中文站论坛

 找回密码
 注册(Register!)

QQ登录

只需一步,快速开始

搜索
购买霸主CDKEY 购买战帆CDKEY
查看: 595|回复: 0

[功能与代码] 战团osp 简单触发器核心代码,驰骋疆场防不住枕边人

[复制链接]

15

主题

71

回帖

46

积分

扈从

Rank: 2Rank: 2

UID
3319238
第纳尔
753
精华
0
互助
2
荣誉
1
贡献
10
魅力
231
注册时间
2022-1-28
鲜花(21) 鸡蛋(0)
发表于 2026-8-13 00:22:45 | 显示全部楼层 |阅读模式
本帖最后由 殇垣 于 2026-10-24 20:32 编辑

(try_begin),#   #杀夫斩杀线
(lt, ":spouse_relation", 10),  #没爱  配偶关系 小于
(lt, "$player_honor",10), #荣誉不高  玩家荣誉低于
(store_troop_gold, ":player_gold_money", "trp_player"),
          (lt, ":player_gold_money", 10000),#没钱 检测玩家身上的钱少于一万
(store_random_in_range, ":random_loser", 1, 6),

          (eq, ":random_loser", 4), #投掷骰子循环抽取数值 1/5概率 杀偶
(troop_get_type,":gender_xingbie","trp_player"),
         (try_begin),
              #(this_or_next|eq,":gender_xingbie",2),#男孩
(eq,":gender_xingbie",0),#男
(play_sound, "snd_pig_death"),##播放 猪叫死
(else_try),#gender_is_female
              #(this_or_next|eq,":gender_xingbie",3),#girl
(eq,":gender_xingbie",1),#woman
(play_sound, "snd_dog_death"),#播放音效 #狗叫死
(try_end),
                   (str_store_troop_name, s16, ":player_spouse"),  ###获取玩家老婆名字
(dialog_box,"@It is hard to tell if this is fortune or misfortune: you survived an assassin’s attack. The inquiry laid bare a bitter truth — the killer was sent by your spouse, {s16}. Your bedmate sought your death."),
(display_message,"@It is hard to tell if this is fortune or misfortune: you survived an assassin’s attack. The inquiry laid bare a bitter truth — the killer was sent by your spouse, {s16}. Your bedmate sought your death."),
      #该 说 是 幸 运 还 是 不 幸 呢 ? 你 侥 幸 躲 过 一 劫 , 调 查 后 发 现 刺 客 是 你 配 偶 {s16} 派 来 的 , 不 料 是 自 己 枕 边 人 给 你 做 的 局  … …
(call_script, "script_troop_change_relation_with_troop", "trp_player", ":player_spouse", -70),#改变关系
(try_end),

您需要登录后才可以回帖 登录 | 注册(Register!)

本版积分规则

Archiver|手机版|小黑屋|骑马与砍杀中文站

GMT+8, 2026-11-4 14:00 , Processed in 0.094561 second(s), 20 queries , Gzip On, MemCached On.

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表