Home · skill · ProjTest

Properties

type
Weapon Skill
nature
Attack
cooldown
1
duration
0.2
steps
on=0props={"projectile":{"base":"MissileHoming"}}type=7visuals={"fxs":[{"set":"Projectile_Fire","props":{}}]}on=2props={}type=6effects=[{"effect":0,"scaling":[{"ratio":1,"atb":"Vitality"}],"affinity":"Honey","flags":0}]
Raw data
{
  "gfx": {
    "file": "UI/Placeholder/BattleIcons96PX.png",
    "size": 96,
    "x": 2,
    "y": 6
  },
  "id": "ProjTest",
  "type": "WeaponSkill",
  "nature": "Attack",
  "texts": {},
  "anim": {},
  "cooldown": 1,
  "duration": 0.2,
  "steps": [
    {
      "on": 0,
      "props": {
        "projectile": {
          "base": "MissileHoming"
        }
      },
      "type": 7,
      "visuals": {
        "fxs": [
          {
            "set": "Projectile_Fire",
            "props": {}
          }
        ]
      }
    },
    {
      "on": 2,
      "props": {},
      "type": 6,
      "effects": [
        {
          "effect": 0,
          "scaling": [
            {
              "ratio": 1,
              "atb": "Vitality"
            }
          ],
          "affinity": "Honey",
          "flags": 0
        }
      ]
    }
  ],
  "flags": [],
  "mastery": [],
  "props": {},
  "vars": {},
  "script": "var seq = 0.;\nfunction onProjectileCreated(proj) {\n\tvar randX = random(-2, 2);\n\tvar randY = random(-2, 2);\n\tvar fanAmplitude = 130;\n\tvar fanRadius = 2;\n\tvar pos = getFanFacingPos(seq / 4, fanAmplitude, fanRadius, WORLD_RIGHT);\n\tseq += 1;\n\tseq %= 5;\n\tproj.startHover(pos.x, pos.y, pos.z + 2);\n}\n\nfunction onSkillProc(ctx) {\n\tif (ctx.skillId != skill.kind) {\n\t\tskill.fireProjectiles(ctx.aimTarget, ctx.aimPosition);\n\t}\n}"
}