Torty Teleport (Dropless GTP)

Post your coolest Hexcasting creations here.

New topics are NOT for chatting or asking help, put those in the comments of a post or in a different forum.
User avatar
Robotgiggle
Posts: 23
Joined: Fri Dec 02, 2022 12:38 am

Torty Teleport (Dropless GTP)

Post by Robotgiggle »

Overview
This is a spell for the Inventorty that allows you to GTP at any range while preserving your entire inventory. Requires both HexGloop (for the Inventorty and associated spells) and Hexal (for the mote system).

How to Use
To teleport, pick up the Inventorty and then right-click it onto a focus (or equivalent item) containing the coordinates you want to travel to. Upon arrival, you will have an empty inventory except for the Inventorty, the focus, and anything in your main hand. Along with the destination coordinates, the focus will now contain a nested list full of motes and Nulls, representing the previous contents of your inventory. Right-click the Inventorty onto the focus again to restore your inventory and revert the focus to its previous state.

Warnings
This spell uses Hexal's mote system to store your items while you teleport. Make sure you're bound to a Mote Nexus before attempting to use the spell, or it will mishap and fling the item in your first hotbar slot.
Also, as previously mentioned, your inventory will be more or less empty upon arrival. If you have flight or any other abilities granted by an armor set or by items in your inventory, those abilities will not be active! Make sure to teleport into a position that would be safe for a completely naked player. On the flip side, if you do end up landing somewhere that kills you, most of your inventory will be safely stored in your Mote Nexus.

Patterns
eqqwawqaawqqqddeaqqaqdeeeeeqwaeawqawdddeaqqqeewdweddwdNumerical Reflection: 1wawqwaqewdwwdadeBookkeeper's Gambit: Drop 1, Keep 1aadaawawqwqwqwqwqwaadaaawdqqaeaaeawdadqqqqwaeawqaawddqqqaadaaawqqqqaqaaNumerical Reflection: 1Numerical Reflection: 100wdedwqeewdweddwwaqaweeeeeqwwaqawwaawddqaaqdedqqqqqdaqaawwqeewdweddwaaeddawewdqdwewaawwawqwaqewdwwdadeeeeqqaeaaeawdddeaqqqeewdweddwNumerical Reflection: 1waaweqqwawqaaweeeaawddqeewdweddwddqddNumerical Reflection: 0eqqwawqaawdadadBookkeeper's Gambit: Drop 1ddqddaaeddddqddwdwewewewewewaawddNumerical Reflection: 1wawqwaqewdwwdadeBookkeeper's Gambit: Drop 1eeeqqqaawddqeewdweddwNumerical Reflection: 1wawqwaqewdwwdadeBookkeeper's Gambit: Drop 1qqqBookkeeper's Gambit: Drop 1, Keep 1aadaaqwaeawqaqdedawaaeddqeewdweddwaaeddqwawqwaadddqddadwawdwwdwqqqdaaeddawewdqdwewaawwawqwaqewdwwdadeeaqaBookkeeper's Gambit: Drop 1eeeqqqBookkeeper's Gambit: Drop 1deeeawdddeaqqeeeNumerical Reflection: 1Numerical Reflection: 40aadaadaaNumerical Reflection: 40ewdqdweaeaNumerical Reflection: 0ddewedddadadqeewdweddwNumerical Reflection: 40Numerical Reflection: 1wawqwaqewdwwdadeBookkeeper's Gambit: Drop 1aaeddNumerical Reflection: 2ewdqdwedeeeeeqaqddqaaddwddwwwwqqqwwwqqeqqwwwqqwqqdqqqqqdqqNumerical Reflection: 40qeewdweddwNumerical Reflection: 1wawqwaqewdwwdadeBookkeeper's Gambit: Drop 1eeeawdddeaqq

Code: Select all

// put targeted slot (should have a focus) into ravenmind
Huginn's Gambit
// immediately end the cast if you aren't holding the torty
{
    Aergia's Gambit
    Charon's Gambit
}
Flock's Disintegration
Augur's Exaltation
Hermes' Gambit
// drop the focus and read it
Muninn's Reflection
Nullary Reflection
Numerical Reflection: 1
Torty Transfer
Bookkeeper's Gambit: v-
Gemini Decomposition
Chronicler's Purification
// check whether the focus has a mote list (also leave a copy of the contents on the stack)
Gemini Decomposition
Classifier's Purification
Vacant Reflection
Classifier's Purification
Equality Distillation
{
    // restore inventory from mote list
    Flock's Disintegration
    Jester's Gambit
    {
        // unmediafy + collect if mote, do nothing if null
        Gemini Decomposition
        Augur's Purification
        {
            Mind's Reflection
            Compass' Purification
            // displace each item by 0.01*index to avoid empty entity jank
            Numerical Reflection: 1
            Numerical Reflection: 100
            Division Distillation
            Muninn's Reflection
            Multiplicative Distillation
            Vector Reflection -Y
            Multiplicative Distillation
            Additive Distillation
            Undertaker's Gambit
            // unmediafy + collect the item
            Return Item
            Entity Purification: Item
            Muninn's Reflection
            Prospector's Gambit
            Torty's Purification
            Torty Transfer
        }
        Vacant Reflection
        Augur's Exaltation
        Hermes' Gambit
        Muninn's Reflection
        Numerical Reflection: 1
        Additive Distillation
        Huginn's Gambit
    }
    Jester's Gambit
    Muninn's Reflection
    Rotation Gambit II
    Numerical Reflection: 0
    Huginn's Gambit
    Thoth's Gambit
    Bookkeeper's Gambit: v
    // write vector back to focus and pick it back up
    Rotation Gambit II
    Prospector's Gambit
    Rotation Gambit II
    Chronicler's Gambit
    Jester's Gambit
    Numerical Reflection: 1
    Torty Transfer
    Bookkeeper's Gambit: v
}
{
    // pick up dropped focus
    Jester's Gambit
    Muninn's Reflection
    Numerical Reflection: 1
    Torty Transfer
    Bookkeeper's Gambit: v
    // mediafy the whole inv except for the focus and the mainhand
    {
        Bookkeeper's Gambit: v-
        Gemini Decomposition
        Curiosity's Purification
        Augur's Purification
        // if it's one of the slots that don't get mediafied, ensure the boolean is false
        Prospector's Gambit
        Muninn's Reflection
        Prospector's Gambit
        Handy Reflection
        Equality Distillation
        Rotation Gambit II
        Equality Distillation
        Disjunction Distillation
        Negation Purification
        Conjunction Distillation
        {
            // drop itemstack and mediafy, leaving a mote
            Nullary Reflection
            Prospector's Gambit
            Torty's Purification
            Torty Transfer
            Mediafy Item
            Bookkeeper's Gambit: v
        }
        {
            // do nothing and leave a null
            Bookkeeper's Gambit: v
            Nullary Reflection
        }
        Augur's Exaltation
        Hermes' Gambit
    }
    Numerical Reflection: 1
    Numerical Reflection: 40
    Gemini Gambit
    Numerical Reflection: 40
    Flock's Gambit
    Running Sum Purification
    Numerical Reflection: 0
    Speaker's Distillation
    Thoth's Gambit
    // move focus to offhand, store list of motes
    Muninn's Reflection
    Numerical Reflection: 40
    Numerical Reflection: 1
    Torty Transfer
    Bookkeeper's Gambit: v
    Prospector's Gambit
    Numerical Reflection: 2
    Flock's Gambit
    Scribe's Gambit
    // teleport
    Mind's Reflection
    Undertaker's Gambit
    Compass' Purification II
    Subtractive Distillation
    Greater Teleport
    // move focus back to initial slot
    Numerical Reflection: 40
    Muninn's Reflection
    Numerical Reflection: 1
    Torty Transfer
    Bookkeeper's Gambit: v
}
Augur's Exaltation
Hermes' Gambit