mugen吧 关注:78,642贴子:1,493,361
  • 17回复贴,共1

请问我这段写法有没有什么问题啊?想让helper出招出不来

只看楼主收藏回复

[state 4080,2]
type = changestate
triggerall = !var(57) && !var(58)
triggerall = power >= 500 && ishelper
triggerall = root,command = "·ÉÁúÈa"
trigger1 = (root,stateno = 325 && movecontact) || (root,stateno = 330 && movecontact) || (root,stateno = 350 && movecontact) || (root,stateno = 530 && movecontact) || (root,stateno = 2020 && movecontact) || (root,stateno = 2030 && movecontact)
trigger2 = (root,stateno = 2070 && time <= 4) || (root,stateno = 2080 && time <= 4)
value = 4100
ctrl = 0


IP属地:浙江1楼2024-03-04 16:12回复
    这个def写在helper的statedef里而不是-1或-2下的吧。如果写在helper下的
    ,那var57和58是helper的还是本体的?power应该是root,power吧,下面movecontact也是root,movecontact


    IP属地:上海来自Android客户端3楼2024-03-04 17:35
    收起回复
      写helper里的话,有关本体的一切都需要加上root,不然他不会检测本体的


      IP属地:福建来自Android客户端4楼2024-03-04 20:51
      回复
        helper自己状态内跳转要加root,不过按键倒不需要,你写个keyctrl就能读取root按键了


        IP属地:浙江来自Android客户端5楼2024-03-05 05:56
        回复
          @netyzh 这次写在-2下没成功,请问哪里出问题了?
          算距离是算helper与p2的距离对不对?
          [state -2,4100]
          type = changestate
          value = 4100
          triggerall = var(57) > 0 && var(40) > 0
          triggerall = root,power >= 500 && random < 500
          triggerall = stateno = 4080 && p2bodydist x < 120 && ishelper
          triggerall = p2statetype != A
          trigger1 = root,stateno = 325 || root,stateno = 330 || root,stateno = 350
          trigger1 = root,movecontact


          IP属地:浙江6楼2024-03-30 23:41
          收起回复
            -2下是本体。-2下本体的stateno,不用写root,但是helper的stateno要写成helper(xxxx),stateno
            ishelper也要指定对应的ishelper(xxxx)


            IP属地:上海来自Android客户端7楼2024-03-31 01:45
            收起回复
              @netyzh 这是我写在helper里的AI条件,但是不成功,不知道哪里不对
              [state 4080,4300]
              type = changestate
              triggerall = var(57) > 0
              triggerall = root,power >= 500 && root,random < 500
              triggerall = p2bodydist x < 71 ;helper与p2的距离
              trigger1 = root,movehit && root,p2statetype != A
              trigger1 = root,stateno = 325 || root,stateno = 330
              value = 4300


              IP属地:浙江8楼2024-04-01 21:07
              收起回复