台服dnf吧 关注:115,694贴子:1,796,898

一点点ACT文件的注释

只看楼主收藏回复

来源:Z佬分享的官方注释样本actionsamplebytool.act
示例:
{exp}{/exp}explanation,原来的韩文注释在这个标签内,翻译成中文还放这
{must1}{must2}……标签下必需要有的项目
{string} {int(0:)}{int(:)}{int(0:1)}{float(:)}跟在must后面,对每个必填项的格式要求。字符串,整数(最小值:最大值),浮点数。
[!标签]该标签注释的结束标志,不等于[/标签]


IP属地:河南来自手机贴吧1楼2023-03-24 19:07回复
    {exp}动作部分{/exp}[MOTION]


    IP属地:河南来自手机贴吧2楼2023-03-24 19:07
    收起回复
      [BASE ANI] //基本动画
      {must1}{string} //必须项1:字符串
      [!BASE ANI]
      // 添加字符串标签
      [SUB ANI] //子动画
      {exp}路径{/exp}{string} //路径
      {must1}{exp}起始帧{/exp}{int(0:)} //必须项1:起始帧,必须包含一个整数参数
      {must2}{exp}层{/exp}{int(0:)} //必须项2:层
      {!string}
      [/SUB ANI]
      //mkjung 120516 add
      [SUB ANI WITH XY] //带有XY坐标的子动画
      {exp}路径{/exp}{string} //路径
      {must1}{exp}起始帧{/exp}{int(0:)} //必须项1:起始帧
      {must2}{exp}层{/exp}{int(0:)} //必须项2:层
      {must3}{exp}X坐标{/exp}{int(:)} //必须项3:X坐标
      {must4}{exp}Y坐标{/exp}{int(:)} //必须项4:Y坐标
      {!string}
      [/SUB ANI WITH XY]
      //mkjung 120517 add
      [SUB ANI WITH XYZ] //带有XYZ坐标的子动画
      {exp}路径{/exp}{string} //路径
      {must1}{exp}起始帧{/exp}{int(0:)} //必须项1:起始帧
      {must2}{exp}层{/exp}{int(0:)} //必须项2:层
      {must3}{exp}X坐标{/exp}{int(:)} //必须项3:X坐标
      {must4}{exp}Y坐标{/exp}{int(:)} //必须项4:Y坐标
      {must5}{exp}Z坐标{/exp}{int(:)} //必须项5:Z坐标
      {!string}
      [/SUB ANI WITH XYZ]


      IP属地:河南来自手机贴吧3楼2023-03-24 19:08
      回复
        // [SPEECH]和[SOUND]必须在[MOTION]标签中!
        [SPEECH] //对话
        {exp}对话标签{/exp}{string} //对话标签
        {must1}{exp}起始帧{/exp}{int(0:)} //必须项1:起始帧
        {opt1}{exp}说话几率(%) {/exp}{int(0:)} //可选项1:说话几率
        {!string}
        [/SPEECH]
        [SPEECH POS] //对话位置
        {exp}对话标签{/exp}{string} //对话标签
        {must1}{exp}起始帧{/exp}{int(0:)} //必须项1:起始帧
        {must2}{exp}说话几率(%) {/exp}{int(0:)} //必须项2:说话几率
        {must3}{exp}对话输出的X坐标{/exp}{int(:)} //必须项3:对话输出的X坐标
        {must4}{exp}对话输出的Y坐标{/exp}{int(:)} //必须项4:对话输出的Y坐标
        {!string}
        [/SPEECH POS]
        [SOUND] //音效
        {exp}音效标签{/exp}{string} //音效标签
        {must1}{exp}起始帧{/exp}{int(0:)} //必须项1:起始帧
        {!string}
        [/SOUND]
        [SOUND PROBABILITY] //音效几率
        {exp}音效标签{/exp}{string} //音效标签
        {must1}{exp}起始帧{/exp}{int(0:)} //必须项1:起始帧
        {must2}{exp}几率{/exp}{int(0:)} //必须项2:几率
        {!string}
        [/SOUND PROBABILITY]


        IP属地:河南来自手机贴吧4楼2023-03-24 19:08
        回复
          [/MOTION]结束


          IP属地:河南来自手机贴吧5楼2023-03-24 19:09
          回复
            {exp}在执行此操作时保持位置不变{/exp}[HOLD POSITION]
            {must1}{string}
            [!HOLD POSITION]
            {exp}获取当前操作中使用的默认攻击信息{/exp}[DEFAULT ATTACKINFO]
            {must1}{string}
            [!DEFAULT ATTACKINFO]
            //mkjung 120516 add
            [AUTOEND] // 自动结束
            {must1}{int(:)}
            [!AUTOEND]


            IP属地:河南来自手机贴吧6楼2023-03-24 19:12
            回复
              {exp}条件控制部分,通过加入各种条件来过滤出要执行行为的目标{/exp}[TRIGGER]
              {exp}执行检查的总次数,可以通过BEHAVIOR的[TRIGGER]标签重置计数{/exp}[LIMIT]
              {must1}{exp}如果为0,则无限制地进行检查{/exp}{int(:)}
              [!LIMIT]
              {exp}决定初始触发器的启用状态{/exp}[ENABLE]
              {must1}{exp}触发器正在运行(默认){/exp}[ON]
              {must1}{exp}触发器未运行{/exp}[OFF]
              [!ENABLE]
              {exp}要检查的帧编号,每个帧只检查一次,如果不使用则一直检查{/exp}[FRAME]
              {must1}{exp}起始帧索引{/exp}{int(0:)}
              {must2}{exp}结束帧索引{/exp}{int(0:)}
              [!FRAME]


              IP属地:河南来自手机贴吧7楼2023-03-24 19:13
              回复
                // 选项标签集开始 //////////////////////////////////////////


                IP属地:河南来自手机贴吧8楼2023-03-24 19:14
                回复
                  // 通过事件触发的触发器(以ON开头的标签不能重叠)
                  {opt1}{exp}只有在受到攻击时才进行检查{/exp}[ON DAMAGE]
                  {opt1}{exp}只有在攻击成功时才进行检查{/exp}[ON ATTACKSUCCESS]
                  {opt1}{exp}当某个对象创建时进行检查{/exp}[ON CREATE OBJECT]
                  {opt1}{exp}当某个对象被销毁时进行检查{/exp}[ON DESTROY OBJECT]
                  {opt1}{exp}当自己被销毁时进行检查{/exp}[ON DESTROY ME]
                  {opt1}{exp}当动作结束时进行检查{/exp}[ON REMOVE ACTION]
                  {opt1}{exp}当动作开始时进行检查{/exp}[ON SET ACTION]
                  {opt1}{exp}当摇晃输入发生时进行检查{/exp}[ON SHAKE INPUT]
                  {opt1}{exp}当撞到无法通过的地方时进行检查{/exp}[ON MOVE COLLISION]


                  IP属地:河南来自手机贴吧9楼2023-03-24 19:15
                  回复
                    {opt2}{exp}只有在远程攻击时才通过{/exp}{etc}[IS MISSILE DAMAGE]
                    {opt2}{exp}只有在物理攻击时才通过{/exp}{etc}[IS PHYSICAL DAMAGE]
                    {opt2}{exp}只有在魔法攻击时才通过{/exp}{etc}[IS MAGICAL DAMAGE]
                    {opt2}{exp}只有在无视防御攻击时才通过{/exp}{etc}[IS ABSOLUTE DAMAGE]
                    {opt2}{exp}只有在火属性攻击时才通过{/exp}{etc}[IS FIRE DAMAGE]
                    {opt2}{exp}只有在水属性攻击时才通过{/exp}{etc}[IS WATER DAMAGE]
                    {opt2}{exp}只有在暗属性攻击时才通过{/exp}{etc}[IS DARK DAMAGE]
                    {opt2}{exp}只有在光属性攻击时才通过{/exp}{etc}[IS LIGHT DAMAGE]
                    {opt2}{exp}只有在无属性攻击时才通过{/exp}{etc}[IS NONE DAMAGE]


                    IP属地:河南来自手机贴吧10楼2023-03-24 19:15
                    回复
                      {opt3}{exp}检查是否朝左{/exp}{etc}[IS DIRECTION LEFT]
                      {opt3}{exp}检查是否朝右{/exp}{etc}[IS DIRECTION RIGHT]


                      IP属地:河南来自手机贴吧11楼2023-03-24 19:15
                      回复
                        // 选项标签集结束 /////////////////////////////////////


                        IP属地:河南来自手机贴吧12楼2023-03-24 19:16
                        回复
                          {exp}每隔一段时间进行检查{/exp}[CHECK TIME]
                          {must1}{exp}检查时间间隔(毫秒){/exp}{int(0:)}
                          [!CHECK TIME]
                          {exp}检查是否有幽灵系技能{/exp}{etc}[CHECK GHOST] /
                          {exp}检查是否有好的增益效果{/exp}{etc}[CHECK BUFF] //检查是否有好的增益效果
                          {exp}特定的增益效果检查{/exp}[CHECK SPECIFIC BUFF]
                          {must1}{exp}特定ID{/exp}{string}
                          {must1}{exp}愤怒buff{/exp}[ANGER]
                          //mkjung 120516 add.
                          {must1}[DARKSCALP]
                          //mkjung 120518 add.
                          {must1}[AGAMEMNON TELEKINESIS]
                          {prereq}[ANGER]{/prereq}{must2}{exp}索引{/exp}{int(:)}
                          {prereq}[ANGER]{/prereq}{must3}{exp}层的Alpha值{/exp}{int(:)}
                          [!CHECK SPECIFIC BUFF]


                          IP属地:河南来自手机贴吧13楼2023-03-24 19:19
                          回复
                            {exp}触发检查概率{/exp}[IS MEET PROB]
                            {must1}{exp}概率(%){/exp}{int(0:)}
                            [!IS MEET PROB]
                            //[ON DAMAGE]或[ON ATTACKSUCCESS]标签必须存在才能触发
                            {prereq}[ON DAMAGE]|[ON ATTACKSUCCESS]{/prereq}{exp}检查是否miss{/exp}[CHECK STUCK]
                            {must1}{exp}1:只有在miss时才能通过,0:只有在没有miss时才能通过{/exp}{int(0:1)}
                            [!CHECK STUCK]
                            {exp}检查是否miss的标签{/exp}{etc}[IS STUCK]
                            {exp}检查是否未miss的标签{/exp}{etc}[NOT STUCK]
                            {exp}是否骑乘坐骑{/exp}[IS MOUNT]
                            {must1}{exp}1:是,0:否{/exp}{int(0:1)}
                            [!IS MOUNT]


                            IP属地:河南来自手机贴吧14楼2023-03-24 19:23
                            回复
                              {exp}IF语句。可以使用变量和表达式。可以使用[GET TIME]获取时间。{/exp}[IF]
                              //{`变量` 表达式 数字} 表达式([GET TIME]或数字)


                              IP属地:河南来自手机贴吧15楼2023-03-24 19:26
                              收起回复