Home · skill · Spongblob_Skill1

Properties

status
Bug
type
Skill
nature
Spell
cooldown
10
duration
7.5
steps
on=0props={"rotation":{"limiter":320}}type=13duration=5on=0props={"castFlags":4}type=3duration=7.5on=0props={}type=11delay=0.56visuals={"playAnims":[{"anim":{"ref":"Cast","loop":true}}]}on=0props={}type=11visuals={"fxs":[{"set":"Hit_Spark_Loop","props":{"offset":{"x":0,"y":0,"z":0,"height":0}},"scale":0.3,"attachName":"B_ROOT","space":0,"flags":9}]}duration=1.2delay=0.5on=0props={}id=GenerateProjectilesdelay=1props={"projectile":{"base":"Orbitter","fxSet":"Projectile_WaterBubble","orbit":{"radiusCurve":[0,0.00553189733241166,-0.240663547126972,-1.08970911670967,0.0788436226413465,0.360048594717381,0.401746902905042,1.1103073621269,-0.0931693951244853,2.99264962978901e-17,0.104554861458488,0.00249631573124431,0.902002029446775,0.014313229240443,-0.152162727884793,0.488434050373675,-0.5,0],"radius":20},"speed":70,"activationDelay":1,"scale":1.5,"lifetime":6,"hitFilter":1}}on=8id=Projectiletype=7on=0props={}id=LaunchProjectilesdelay=3on=0visuals={"playAnims":[{"anim":{"ref":"CastProjectile"}}],"fxs":[{"set":"Water_Blast","props":{"offset":{"x":0,"y":0,"z":5,"height":0}},"scale":1.5}]}props={}type=11delay=2duration=0.3on=2props={}effects=[{"effect":0,"scaling":[{"ratio":0.9,"atb":"FoePower"}],"affinity":"Magic","flags":0}]type=0on=2props={"status":{"ref":"Stun"}}type=1duration=2

Referenced by

Raw data
{
  "status": "Bug",
  "id": "Spongblob_Skill1",
  "type": "Skill",
  "nature": "Spell",
  "texts": {
    "name": "Tidal Whirlwind"
  },
  "anim": {
    "ref": "CastStart"
  },
  "cooldown": 10,
  "duration": 7.5,
  "steps": [
    {
      "on": 0,
      "props": {
        "rotation": {
          "limiter": 320
        }
      },
      "type": 13,
      "duration": 5
    },
    {
      "on": 0,
      "props": {
        "castFlags": 4
      },
      "type": 3,
      "duration": 7.5
    },
    {
      "on": 0,
      "props": {},
      "type": 11,
      "delay": 0.56,
      "visuals": {
        "playAnims": [
          {
            "anim": {
              "ref": "Cast",
              "loop": true
            }
          }
        ]
      }
    },
    {
      "on": 0,
      "props": {},
      "type": 11,
      "visuals": {
        "fxs": [
          {
            "set": "Hit_Spark_Loop",
            "props": {
              "offset": {
                "x": 0,
                "y": 0,
                "z": 0,
                "height": 0
              }
            },
            "scale": 0.3,
            "attachName": "B_ROOT",
            "space": 0,
            "flags": 9
          }
        ]
      },
      "duration": 1.2,
      "delay": 0.5
    },
    {
      "on": 0,
      "props": {},
      "id": "GenerateProjectiles",
      "delay": 1
    },
    {
      "props": {
        "projectile": {
          "base": "Orbitter",
          "fxSet": "Projectile_WaterBubble",
          "orbit": {
            "radiusCurve": [
              0,
              0.00553189733241166,
              -0.240663547126972,
              -1.08970911670967,
              0.0788436226413465,
              0.360048594717381,
              0.401746902905042,
              1.1103073621269,
              -0.0931693951244853,
              2.99264962978901e-17,
              0.104554861458488,
              0.00249631573124431,
              0.902002029446775,
              0.014313229240443,
              -0.152162727884793,
              0.488434050373675,
              -0.5,
              0
            ],
            "radius": 20
          },
          "speed": 70,
          "activationDelay": 1,
          "scale": 1.5,
          "lifetime": 6,
          "hitFilter": 1
        }
      },
      "on": 8,
      "id": "Projectile",
      "type": 7
    },
    {
      "on": 0,
      "props": {},
      "id": "LaunchProjectiles",
      "delay": 3
    },
    {
      "on": 0,
      "visuals": {
        "playAnims": [
          {
            "anim": {
              "ref": "CastProjectile"
            }
          }
        ],
        "fxs": [
          {
            "set": "Water_Blast",
            "props": {
              "offset": {
                "x": 0,
                "y": 0,
                "z": 5,
                "height": 0
              }
            },
            "scale": 1.5
          }
        ]
      },
      "props": {},
      "type": 11,
      "delay": 2,
      "duration": 0.3
    },
    {
      "on": 2,
      "props": {},
      "effects": [
        {
          "effect": 0,
          "scaling": [
            {
              "ratio": 0.9,
              "atb": "FoePower"
            }
          ],
          "affinity": "Magic",
          "flags": 0
        }
      ],
      "type": 0
    },
    {
      "on": 2,
      "props": {
        "status": {
          "ref": "Stun"
        }
      },
      "type": 1,
      "duration": 2
    }
  ],
  "aiProps": {
    "castMaxRange": 20
  },
  "flags": [],
  "mastery": [],
  "props": {
    "needTarget": true
  },
  "vars": {
    "var1": 5
  },
  "script": "var spawnRadius = 4;\nvar spawnDelay = 0;\nfunction onStep(s) {\n    switch(s.kind) {\n        case Steps.GenerateProjectiles:\n\t\tvar projStep = getStepById(Steps.Projectile);\n\t\tvar nb = vars.var1;\n\t\tvar count =  round(nb);\n\t\tvar interProgress = 1 / (count);\n\t\tvar pos = projStep.getProjectileStart();\n\t\tvar rotProgress = owner.rotationZ / PI;\n\t\tfor(i in 0...count) {\n\t\t\tvar tPos = p3DAdd(pos, getCircleFacingPos(rotProgress + interProgress * i, spawnRadius, owner.getUp()));\n\t\t\twait(i * spawnDelay, function() {\n\t\t\t\tprojStep.generateProjectile(owner, tPos);\n\t\t\t});\n\t\t}\n        case Steps.LaunchProjectiles:\n            s.curCtx?.activateProjectiles();\n        default:\n    }\n}\n\nfunction onStop(ctx) {\n    ctx.killProjectiles();\n}",
  "_xrefs": [
    {
      "from_sheet": "unit",
      "from_id": "SpongeBlob",
      "via_field": "skills"
    }
  ]
}