mugen吧 关注:69,128贴子:1,449,176
  • 2回复贴,共1

麻烦问段代码的问题

只看楼主收藏回复

想在stateno1000的AnimElemTime(1) > 1 && AnimElemTime(10) < 3中输入指令超级取消,进入动作2000
但是必须在stateno1000的AnimElemTime(10)播放结束后,在11还没开始前,才进入2000
麻烦问下大神们判定条件要写在哪里
以下为commond的代码
[State -1]
Type = Changestate
Value = 2000
Triggerall = Power >= 1200
Triggerall = Command = "提问"
Triggerall = Statetype != A
Trigger1 = Ctrl
Trigger2 = Stateno = 1000 && Animelemtime(1) >= 0 && Animelemtime(10) <= 3

以下为cns的代码
[State 1000]
Type = ChangeState
Trigger1 = Command = "提问"
Trigger1 = StateNo = 1000 && AnimElemTime(11) = 0
Value = 2000

虽然还没测试,但是我自己感觉判定条件不对啊


回复
1楼2018-03-19 18:02
    [statedef 1000]
    [state 1000]

    type = varset
    var(10) = 1 ;这里假设var(10)尚未使用
    triggerall = Command = "提问"
    trigger1 = AnimElemTime(1) > 1 && AnimElemTime(10) < 3


    [State 1000]
    Type = ChangeState
    Triggerall = Power >= 1200
    Trigger1 = var(10) = 1
    Trigger1 = AnimElemTime(11) = 0
    trigger1 = (var(10) := 0) || 1;用完变量及时清0
    Value = 2000


    收起回复
    2楼2018-03-19 18:34