Vector offset generator/list generator

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
gamma_02
Posts: 3
Joined: Thu Dec 29, 2022 12:13 am

Vector offset generator/list generator

Post by gamma_02 »

The title leaves something to be desired, but I am quite proud of this spell nonetheless.

This is a spell I made to help with looping through an arbitrarily sized 3d area, but it can probably be used and done in a lot smarter ways.
It takes any number N and pushes a list with all values -n through n to the Ravenmind.

Vector Offest Purification (num -> list)
Introspection
Introspection

This is the actual list manipulation stuff:
Muninn's ReflectionGemini DecompositionAugur's PurificationJester's GambitFlock's ReflectionNumerical Reflection: 5Subtractive DistillationFisherman's Gambit IINumerical Reflection: -5Multiplicative Dstl.Single's PurificationAugur's ExaltationGemini DecompositionGemini DecompositionAbacus PurificationNumerical Reflection: 5Subtractive DistillationSelection DistillationNumerical Reflection: 5Additive DistillationIntegration DistillationHuginn's Gambit

This is detecting if it needs to stop or not:
Muninn's ReflectionGemini DecompositionAbacus PurificationFlock's ReflectionNumerical Reflection: 5Subtractive DistillationFisherman's Gambit IINumerical Reflection: 2Multiplicative Dstl.Numerical Reflection: 5Additive DistillationEquality DistillationIntrospection
Charon's GambitRetrospectionFlock's ReflectionNumerical Reflection: 2Subtractive DistillationFisherman's Gambit IIAugur's ExaltationHermes' Gambit

this is it executing itself and cleaning up after itself:
RetrospectionGemini DecompositionHermes' GambitBookkeeper's Gambit: Drop 2
and ending:
Retrospection
A more detailed explanation of what happens is in the hexcode:

Code: Select all

{
    //main function
    {
        //recursion starter and list maker
        Muninn's Reflection
        Gemini Decomposition
        //check if the ravenmind is empty, pushing false and rotating the stack
        Augur's Purification
        Jester's Gambit
        //getting the provided N for if the ravenmind IS empty and turning it
        //into the start of our list
        Flock's Reflection
        Numerical Reflection: 1
        Subtractive Distillation
        Fisherman's Gambit II
        Numerical Reflection: -1
        Multiplicative Distillation
        Single's Purification
        //if that handles the selection
        Augur's Exaltation
        //taking the last element of the list and adding one
        Gemini Decomposition
        Gemini Decomposition
        Abacus Purification
        Numerical Reflection: 1
        Subtractive Distillation
        Selection Distillation
        Numerical Reflection: 1
        Additive Distillation
        Integration Distillation
        //pushing that list to the ravenmind
        Huginn's Gambit
    
        //grab the list from the Ravenmind
        Muninn's Reflection
        //check if it is as long as it needs to be ((n*2)+1) length
        Gemini Decomposition
        Abacus Purification
        Flock's Reflection
        Numerical Reflection: 1
        Subtractive Distillation
        Fisherman's Gambit II
        Numerical Reflection: 2
        Multiplicative Distillation
        Numerical Reflection: 1
        Additive Distillation
        Equality Distillation
        //if it is long enough, stop iteration
        {
            Charon's Gambit
        }
        //else, continue
        Flock's Reflection
        Numerical Reflection: 2
        Subtractive Distillation
        Fisherman's Gambit II
        //if
        Augur's Exaltation
        //execute the above
        Hermes' Gambit
        
    }
    //setting up iteration
    Gemini Decomposition
    //starting iteration
    Hermes' Gambit
    //cleaning up after itself
    Bookkeeper's Gambit: vv
}
}
This can be used easily to loop through a 3d area like so:
...insert stuff from above
Mind's ReflectionCompass' PurificationMind's ReflectionAlidade's PurificationArcher's DistillationIntrospectionIntrospectionIntrospectionVector ExaltationProspector's GambitAdditive DistillationConjure LightRetrospectionMuninn's ReflectionThoth's GambitJester's GambitBookkeeper's Gambit: Drop 1RetrospectionMuninn's ReflectionThoth's GambitJester's GambitBookkeeper's Gambit: Drop 1RetrospectionMuninn's ReflectionThoth's Gambit

Code: Select all

//omitted portion, see above snippet

Mind's Reflection
Compass' Purification
Mind's Reflection
Alidade's Purification
Archer's Distillation
{
    {
        {
            //constructing a vector offset
            Vector Exaltation
            //grabbing the block vec
            Prospector's Gambit
            //applying the offset
            Additive Distillation
            //placing a light because magic torchspam
            Conjure Light
            
            
        }
        Muninn's Reflection
        Thoth's Gambit
        Jester's Gambit
        Bookkeeper's Gambit: v
    }
    Muninn's Reflection
    Thoth's Gambit
    Jester's Gambit
    Bookkeeper's Gambit: v
}
Muninn's Reflection
Thoth's Gambit
So anyway, have fun with this, hope I helped someone.