Page 1 of 1

Squareness Gun

Posted: Thu Jul 20, 2023 1:52 am
by miyu
A hex inspired by Doctor Who that phases a 3x3 out of any surface for three seconds. By replacing phase, you can make it a conjure block hex, a hammer hex, etc... The hex is annotated lightly with small helpful guides what each chunk does. By no means is it simple to make either: this hex is 71 patterns long. It uses Hexal for Phase Block, but if you just need a hammer hex, it's completely base Hexcasting

Code: Select all

// Playing the long game... you'll see what this is for later
Mind's Reflection
Compass' Purification
Mind's Reflection
Alidade's Purification
Archer's Distillation

// This chunk gives us the two axises the 3x3 should be on. It is in the form of a vector where there are two 1s in the right places. We'll disintegrate that vector
Numerical Reflection: 1
Numerical Reflection: 1
Numerical Reflection: 1
Vector Exaltation
Mind's Reflection
Compass' Purification
Mind's Reflection
Alidade's Purification
Architect's Distillation
Numerical Reflection: 2
Power Distillation
Subtractive Distillation
Vector Disintegration

// X Vector - creates a vector out of just the x portion
Rotation Gambit
Numerical Reflection: 0
Numerical Reflection: 0
Vector Exaltation

// Y Vector - creates a vector out of just the y portion
Rotation Gambit
Numerical Reflection: 0
Jester's Gambit
Numerical Reflection: 0
Vector Exaltation

// Z Vector -  creates a vector out of just the z portion
Rotation Gambit
Numerical Reflection: 0
Numerical Reflection: 0
Rotation Gambit
Vector Exaltation

// Combine vectors into list and remove the (0, 0, 0). After this chunk, we have a list of the two axis! We'll disintegrate it on the stack
Numerical Reflection: 3
Flock's Gambit
Vector Reflection Zero
Single's Purification
Exclusionary Distillation
Flock's Disintegration

// Muninn's is a variable in this code
{
    // Get rid of null at top of stack
    Bookkeeper's Gambit: v

    // "x" - modulus, multiplied by one of the axises
    Muninn's Reflection
    Numerical Reflection: 3
    Modulus Distillation
    Numerical Reflection: 1
    Subtractive Distillation
    Multiplicative Distillation
    Jester's Gambit    

    // "y" - floor division, multiplied by one of the axises
    Muninn's Reflection
    Numerical Reflection: 3
    Division Distillation
    Floor Purification
    Numerical Reflection: 1
    Subtractive Distillation
    Multiplicative Distillation

    // Add the two created vectors together
    Additive Distillation
    Additive Distillation // Finally, the long game pays off!
    
    // Do something with the vector!
    Numerical Reflection: 3
    Phase Block

    // Increment index for the loop
    Muninn's Reflection
    Numerical Reflection: 1
    Additive Distillation
    Huginn's Gambit
}

// Simple iteration preparation to loop 9 times over a list of null and init index at 0
Nullary Reflection
Numerical Reflection: 9
Gemini Gambit
Numerical Reflection: 9
Flock's Gambit
Numerical Reflection: 0
Huginn's Gambit
Thoth's Gambit

Re: Squareness Gun

Posted: Thu Jul 20, 2023 3:33 am
by miyu
As expected, someone smarter than me was able to hack away at my hex to make it smaller! They helped remove NINETEEN patterns from it! I also made use of Dioscuri to trim two patterns off. The final result is 50 patterns long!

Code: Select all

Mind's Reflection
Compass' Purification
Mind's Reflection
Alidade's Purification
Dioscuri Gambit
Archer's Distillation
Rotation Gambit II
Architect's Distillation
Numerical Reflection: 2
Power Distillation
Vector Disintegration
Rotation Gambit
Vector Exaltation
Gemini Decomposition
Vector Disintegration
Rotation Gambit
Vector Exaltation
{
	Bookkeeper's Gambit: v
	Muninn's Reflection
	Numerical Reflection: 3
	Modulus Distillation
	Numerical Reflection: 1
	Subtractive Distillation
	Multiplicative Distillation
	Jester's Gambit    
	Muninn's Reflection
	Numerical Reflection: 3
	Division Distillation
	Floor Purification
	Numerical Reflection: 1
	Subtractive Distillation
	Multiplicative Distillation
	Additive Distillation
	Additive Distillation
	Numerical Reflection: 3
	Phase Block
	Muninn's Reflection
	Numerical Reflection: 1
	Additive Distillation
	Huginn's Gambit
}
Nullary Reflection
Numerical Reflection: 9
Gemini Gambit
Numerical Reflection: 9
Flock's Gambit
Numerical Reflection: 0
Huginn's Gambit
Thoth's Gambit