FareverDB
?

Retour

TeleportationStone in Skills

Return to the last Obelisk you set as a Teleportation point.

id
TeleportationStone
type
16
flags
524288
nature
2
script
function onStep(s) { if(ownerHero != null && s.kind == Steps.End) { var loc = switch(skill.getSourceItem()?.kind) { case Item.TeleportationStone: ownerHero.getObelisk(); case Item.TPDeathStone: ownerHero.lastDeathLocation; default: null; } if (loc == null) loc = ownerHero.getRespawnPoint(); ownerHero.teleport(loc); } }
cooldown
60
Raw data
{
  "id": "TeleportationStone",
  "anim": {
    "ref": "RecallStart"
  },
  "type": 16,
  "vars": {},
  "flags": 524288,
  "props": {},
  "steps": [
    {
      "on": 0,
      "type": 3,
      "props": {},
      "duration": 5
    },
    {
      "id": "TEMP_FX_CAST",
      "on": 0,
      "type": 11,
      "props": {},
      "visuals": {
        "fxs": [
          {
            "set": "TeleportStone_Lasting",
            "flags": 40,
            "props": {},
            "space": 0
          }
        ]
      },
      "duration": 5
    },
    {
      "on": 0,
      "type": 11,
      "props": {},
      "visuals": {
        "fxs": [
          {
            "set": "TeleportStone_Cast",
            "props": {},
            "space": 0
          }
        ]
      },
      "duration": 3
    },
    {
      "on": 0,
      "type": 11,
      "delay": 2,
      "props": {},
      "visuals": {
        "playAnims": [
          {
            "anim": {
              "ref": "RecallLoop",
              "loop": true,
              "blend": 0.1
            }
          }
        ]
      },
      "duration": 3.5
    },
    {
      "on": 7,
      "type": 11,
      "delay": -2,
      "props": {},
      "visuals": {
        "playAnims": [
          {
            "anim": {
              "ref": "RecallEnd",
              "blend": 0.3
            }
          }
        ]
      }
    },
    {
      "on": 7,
      "type": 11,
      "delay": 0,
      "props": {},
      "visuals": {
        "playAnims": [
          {
            "anim": {
              "ref": "RecallEnd",
              "blend": 0,
              "startFrame": 61
            }
          }
        ]
      }
    },
    {
      "id": "End",
      "on": 7,
      "type": 18,
      "props": {}
    },
    {
      "id": "TEMP_FX_LAND",
      "on": 7,
      "type": 11,
      "delay": 0,
      "props": {},
      "visuals": {
        "fxs": [
          {
            "set": "TeleportStone_End",
            "props": {},
            "space": 0
          }
        ]
      }
    },
    {
      "id": "TEMP_FX_LAND1",
      "on": 7,
      "type": 11,
      "delay": 0.15,
      "props": {},
      "visuals": {
        "fxs": [
          {
            "set": "Land_Water_Big",
            "props": {},
            "scale": 1.25,
            "space": 1
          }
        ],
        "camShake": 50
      }
    }
  ],
  "texts": {
    "desc": "Return to the last Obelisk you set as a Teleportation point.",
    "name": "Retour"
  },
  "nature": 2,
  "script": "function onStep(s) {\n    if(ownerHero != null && s.kind == Steps.End) {\n\t\tvar loc = switch(skill.getSourceItem()?.kind) {\n\t\t\tcase Item.TeleportationStone: ownerHero.getObelisk();\n\t\t\tcase Item.TPDeathStone: ownerHero.lastDeathLocation;\n\t\t\tdefault: null;\n\t\t}\n\t\tif (loc == null)\n\t\t\tloc = ownerHero.getRespawnPoint();\n\t\townerHero.teleport(loc);\n\t}\n}\n",
  "mastery": [],
  "cooldown": 60
}