string to pattern
Posted: Sun Feb 05, 2023 11:40 am
using string operations from moreiotas and pattern editing from hexbound this hex takes the last message you sent in chat and turns it into a pattern list
because of the 256 character limit the most effective way to use this hex for assembling other hexes is to turn it into an everbook macro, send to chat a piece, use the macro, do this until you have all the pieces, then add it all together with combination.
Code: Select all
//takes as input the text result of the /hex patterns command from the discord bot, sent as a chat message by the caster
//e.g.(without quotes) "SOUTH_EAST aqaaedweede, SOUTH_EAST aqaaedwd, NORTH_WEST wedew, SOUTH_EAST aqaaqawqqaaqa, NORTH_EAST waaw" EXACTLY AS WRITTEN
//can't handle single stroke patterns (e.g just "SOUTH_EAST" or any other direction)
//capable of generating any other reasonably-sized pattern, including patterns with the s direction or ones that loop in on themselves
Whisper Reflection
Spacing Reflection
Jester's Gambit
Concatenation Distillation
Comma Reflection
Separation Distillation //break the string into a list of patterns
{
Huginn's Gambit
Flock's Reflection
Flock's Gambit
Bookkeeper's Gambit: v //remove any junk to keep the thoth stack clean, means this can be used even if there are other iotas on the stack
Muninn's Reflection
Spacing Reflection
Separation Distillation
Flock's Disintegration
Bookkeeper's Gambit: v--
{
Bookkeeper's Gambit: - //if you want the patterns to have the correct orientation, this has to be EAST
}
Flock's Disintegration
Rotation Gambit
{
//should contain "EAST 0,WEST 3,SOUTH_EAST 1,SOUTH_WEST 2,NORTH_WEST 4,NORTH_EAST 5"(without quotations) EXACTLY
}
Flock's Disintegration
Gemini Decomposition
Rotation Gambit
Discoverer's Distillation
Prospector's Gambit
Length Distillation: Str
Winnowing Distillation
Comma Reflection
Separation Distillation
Numerical Reflection: 0
Selection Distillation
Spacing Reflection
Separation Distillation
Numerical Reflection: 1
Selection Distillation
Input Purification
Revolving Distillation //starting direction set
Gemini Decomposition //this one's for rotating
Rotation Gambit
Blank Reflection
Separation Distillation
Gemini Decomposition
Abacus Purification
Numerical Reflection: 1
Subtractive Distillation
Numerical Reflection: 1 //the aqwed(s) code is seperated into a list of turns
Jester's Gambit
Selection Exaltation
Gemini Decomposition
Abacus Purification
Huginn's Gambit
{
Speaker's Decomposition
{
//put "wedsaq" here (same as before)
}
Flock's Disintegration
Jester's Gambit
Discoverer's Distillation
Rotation Gambit
Jester's Gambit
Revolving Distillation
Gemini Decomposition //keeps track of current rotation
Numerical Reflection: 4
Fisherman's Gambit
Jester's Gambit
Painter's Distillation
Jester's Gambit
Rotation Gambit //iteration ends with /Hexpattern(partial pattern), Hexpattern(current direction), [turns it still has to do]
}
Muninn's Reflection
Gemini Gambit
{
Combination Distillation
}
Flock's Disintegration
Muninn's Reflection
Numerical Reflection: 1
Subtractive Distillation
Gemini Gambit
Muninn's Reflection
Numerical Reflection: 1
Subtractive Distillation
Flock's Gambit
Hermes' Gambit
Hermes' Gambit
Bookkeeper's Gambit: -vv
}
Jester's Gambit
Thoth's Gambit
//congrats! your chat message is now a pattern list on the stack!