【自作】prevstateno利用即死返示范
[Statedef -2]
[state ];永续marking用helper
type = helper
trigger1 =!ishelper
trigger1 =!numhelper(AAAAAA)
name = "Koishi"
helpertype = Player
ID = AAAAAA
stateno = AAAAAA
pausemovetime = 2147483647
supermovetime = 2147483647
ignorehitpause = 1
[State ]
type = varset
trigger1 = ishelper(AAAAAA) && roundstate = 0
sysvar(2) = 1
ignorehitpause = 1
[State ]
type = selfstate
trigger1 = ishelper(AAAAAA)
value = AAAAAA
ignorehitpause = 1
[Statedef AAAAAA];永续marking用helper
......
[State ]
type = TargetState
triggerall = ishelper(AAAAAA)
trigger1 = sysvar(2) = 1
value = XXXXXX;一个固定值
ignorehitpause = 1
[State ]
type = TargetState
triggerall = ishelper(AAAAAA)
trigger1 = sysvar(2) = 1
value = YYYYYY;另一个固定值
ignorehitpause = 1
[State ]
type = varset
triggerall = ishelper(AAAAAA)
trigger1 = target,stateno = YYYYYY && target,prevstateno = XXXXXX
sysvar(2) = 0
ignorehitpause = 1
[State ]
type = varset
trigger1 = target,stateno = XXXXXX && target,prevstateno = YYYYYY && sysvar(2) = 0
sysvar(4) = 1
ignorehitpause = 1
......
[State ]
type = TargetState
triggerall = ishelper(AAAAAA)
trigger1 = sysvar(4) = 1
trigger1 = !target,hitpausetime
value = ZZZZZZ;调查得到的敌即死状态号
ignorehitpause = 1
[State ]
type = TargetState
triggerall = ishelper(AAAAAA)
trigger1 = sysvar(4) = 1
trigger1 = !target,hitpausetime
value = ZZZZZZ;调查得到的敌即死状态号
ignorehitpause = 1
(注:prevstateno利用即死返的原理详见凡庸氏的帖子和个人杂记)
谢谢