Chatting like it's 1999! An open forum to discuss Hexcasting, and anything else made by petrak@'s mods, and also anything else else https://forum.petra-k.at/
Macros are a post-enlightenment feature added by the addon Hexal. You can use Brigh's Gambit to mark an entry in your Everbook as a macro. When you draw that pattern, it will either be executed (if you're staff-casting normally) or its contents will be inserted into the list of patterns you're creating (if you're within an intro/retro block). This can basically be used to create your own reusable patterns/functions.
Vector Sign Purification vec → vec
Returns a vector where Sign Purification (above) has been called on each component. In other words, given (x, y, x), returns (sign(x), sign(y), sign(z)). Patterns
Hadamard's Distillation vec, vec → vec
Given two vectors, returns the Hadamard product, also known as the element-wise product. In other words, given two vectors (a, b, c) and (x, y, z), returns (ax, by, cz). Patterns
Save Macro vector, pattern, list →
A macro that creates a macro! Pass it the same arguments you would to Akasha's Gambit. The library shouldn't already have data stored under the key you want to use. The suggested pattern is just Brigh's Gambit but one unit longer. Patterns
Inverse Tangent Distillation number, number → number
Takes the inverse tangent of a Y and X value, gives the angle between the X-axis and a line from the origin to that point. it's pretty big but just fits with a lens and efficient use of space, and leaves room for scribe's gambit Patterns
Bury Gambit many, any, number → any, many
Buries the top iota to the given index in the stack. it's 1-indexed meaning inputing 1 does nothing, 2 is jester's and 3 is rotation II Patterns
Armor Compensator entity, num → num Macros:Maximization Distillation
Given an entity and an amount of damage you want to deal, this macro returns the damage that you actually need to do, taking armour into account. For example, if you want an entity to take 20 points of damage wearing full diamond armour, you actually need to deal 35.83 damage (which is what this macro returns).
Note that this ignores enchantments, because Hexal doesn't provide a pattern to get those; if you want to be safe and assume the maximum possible reduction, just multiply the desired damage by 5 to get the required damage (don't use this macro in that case). See this Desmos link (derived from this formula) for the underlying math. Patterns
#define Armor Compensator (NORTH_WEST wqqqqwwdd) = entity, num -> num
{
// get d and t
Prospector's Gambit
Boxer's Purification
Rotation Gambit
Squire's Purification
// find D_0A
Numerical Reflection: 1
Prospector's Gambit
Numerical Reflection: 125
Division Distillation
Subtractive Distillation
Numerical Reflection: 3
Fisherman's Gambit II
Jester's Gambit
Division Distillation
// find D_0B
Rotation Gambit II
Numerical Reflection: 25
Subtractive Distillation
Jester's Gambit
Numerical Reflection: 8
Additive Distillation
Dioscuri Gambit
Multiplicative Distillation
Rotation Gambit II
Undertaker's Gambit
Numerical Reflection: 0.5
Power Distillation
Rotation Gambit II
Numerical Reflection: 2
Power Distillation
Multiplicative Distillation
Numerical Reflection: 5
Fisherman's Gambit
Numerical Reflection: 400
Multiplicative Distillation
Additive Distillation
Numerical Reflection: 0.5
Power Distillation
Multiplicative Distillation
Additive Distillation
Numerical Reflection: 8
Division Distillation
// return whichever one is correct
Maximization Distillation
}
counting queue
Posted: Thu Mar 16, 2023 10:20 am
by kristi fristi
Incrementer's Queue number, number, number → list
Takes a lower bound, upper bound,(both inclusive) and step size then creates a list counting from the lower bound to the upper bound(or slightly below depending on step size) in steps defined by the third argument.
Mishaps if the arguments don't make sense e.g. lower bound is higher than upper bound or step size is 0.
It has a limit of somewhat under 200 steps.
It uses the ravenmind, but the ravenmind can be saved with bury gambit like this
save ravenmind with bury
Or just swindler's gambit like this
save ravenmind with swindler'sPatterns
Repeat N pattern list, integer
takes a list of patterns and an integer (n) and executes the list of patterns n times. The stack state will not be overwritten/cleared between executions. The Ravenmind will be overwritten, however.