pvf吧 关注:3,904贴子:12,351
  • 3回复贴,共1

【新手向】天御之灾套装效果的下位实现

取消只看楼主收藏回复

国服的天御之灾效果不依靠插件难以实现,如图所示,
分享以下一种仅需要pvf的写法,五种效果随机触发。


IP属地:广西1楼2024-08-29 20:17回复
    [piece set ability]
    5
    [if]
    [change status]
    `hp`
    `>=`
    `%`0
    `end`
    [cooltime]
    10000
    [/if]
    [multiple then]
    [then]
    [target]
    `myself`-1
    [equipment duration]
    10000
    [appendage]
    335
    [elemental weapon]
    `dark`
    [stat]
    `dark attack`
    `+`40
    [then probability]
    20.0
    [/then]
    [then]
    [target]
    `myself`-1
    [equipment duration]
    10000
    [appendage]
    336
    [elemental weapon]
    `water`
    [stat]
    `water attack`
    `+`40
    [then probability]
    20.0
    [/then]
    [then]
    [target]
    `myself`-1
    [equipment duration]
    10000
    [appendage]
    337
    [stat]
    `attack speed`
    `+`200
    [stat]
    `move speed`
    `+`200
    [stat]
    `cast speed`
    `+`250
    [then probability]
    20.0
    [/then]
    [then]
    [target]
    `myself`-1
    [equipment duration]
    10000
    [appendage]
    338
    [elemental weapon]
    `fire`
    [stat]
    `fire attack`
    `+`40
    [then probability]
    20.0
    [/then]
    [then]
    [target]
    `myself`-1
    [equipment duration]
    10000
    [appendage]
    339
    [elemental weapon]
    `light`
    [stat]
    `light attack`
    `+`40
    [then probability]
    20.0
    [/then]
    [/multiple then]
    [if]
    [my appendage]
    335
    [attack success]
    1
    [/if]
    [then]
    [target]
    `enemy`-1
    [add absolute damage]
    `dark`
    `%`20
    [/then]
    [if]
    [my appendage]
    336
    [attack success]
    1
    [/if]
    [then]
    [target]
    `enemy`-1
    [add absolute damage]
    `water`
    `%`20
    [/then]
    [if]
    [my appendage]
    337
    [attack success]
    1
    [/if]
    [then]
    [target]
    `enemy`-1
    [add absolute damage]
    `all`
    `%`30
    [/then]
    [if]
    [my appendage]
    338
    [attack success]
    1
    [/if]
    [then]
    [target]
    `enemy`-1
    [add absolute damage]
    `fire`
    `%`20
    [/then]
    [if]
    [my appendage]
    339
    [attack success]
    1
    [/if]
    [then]
    [target]
    `enemy`-1
    [add absolute damage]
    `light`
    `%`20
    [/then]


    IP属地:广西2楼2024-08-29 20:18
    回复
      apd文件中的写法如下即可。


      IP属地:广西3楼2024-08-29 20:19
      回复
        通过以上写法,就能做到20概率触发五种效果,并且在五种效果存续期间附加不同的伤害


        IP属地:广西4楼2024-08-29 20:20
        回复