Smart Railgun
Posted: Mon Jan 02, 2023 3:52 am
This hex launches the nearest arrow exactly fast enough to kill the entity you're looking at (not accounting for armour), using unit impulse stacking to minimize the cost (meaning it "only" costs 309 dust to kill a wither, instead of 24 025).
Since it can't account for the entity's armour (Hexal has no pattern for that), it adds a constant 10 hp so it can actually kill the wither. It's commented, feel free to remove if you want. Also, if you want to use this on any armoured target, you could instead multiply the calculated velocity by 1.5 or 2 or something, or just use a constant, large velocity instead of basing it on the target's health.
Video demo
Since it can't account for the entity's armour (Hexal has no pattern for that), it adds a constant 10 hp so it can actually kill the wither. It's commented, feel free to remove if you want. Also, if you want to use this on any armoured target, you could instead multiply the calculated velocity by 1.5 or 2 or something, or just use a constant, large velocity instead of basing it on the target's health.
Video demo
Code: Select all
{
Consideration: {
Gemini Decomposition
Stadiometer's Purification
Numerical Reflection: 0.5
Equality Distillation
Undertaker's Gambit
{
Gemini Decomposition
Pace Purification
Prospector's Gambit
Compass' Purification
Mind's Reflection
Compass' Purification
Mind's Reflection
Alidade's Purification
Scout's Distillation
Gemini Decomposition
Compass' Purification
Rotation Gambit
Subtractive Distillation
Gemini Decomposition
Length Purification
Division Distillation
Jester's Gambit
Nurse's Purification
// optional: extra damage to deal with wither armour
Numerical Reflection: 10
Additive Distillation
Numerical Reflection: 2
Division Distillation
Undertaker's Gambit
Multiplicative Distillation
Rotation Gambit
Subtractive Distillation
Gemini Decomposition
Length Purification
Division Distillation
Jester's Gambit
Gemini's Gambit
Flock's Reflection
Numerical Reflection: 2
Subtractive Distillation
Flock's Gambit
{
Impulse
}
Jester's Gambit
Thoth's Gambit
Bookkeeper's Gambit: vv
}
{
Bookkeeper's Gambit: v
}
Flock's Disintegration
Augur's Exaltation
Hermes' Gambit
{
Charon's Gambit
Bookkeeper's Gambit: -
}
Flock's Disintegration
Augur's Exaltation
Hermes' Gambit
Consideration: }
Mind's Reflection
Compass' Purification
Numerical Reflection: 32
Dioscuri Gambit
Dioscuri Gambit
Zone Distillation: Non-Item
Rotation Gambit II
Zone Distillation: Non-Living
Intersection Distillation
Rotation Gambit II
Zone Distillation: Non-Wisp
Intersection Distillation
// show a message if no potential arrows are in range
Gemini Decomposition
Augur's Purification
{
Bookkeeper's Gambit: -
Reveal
}
Flock's Disintegration
Augur's Exaltation
Hermes' Gambit
Thoth's Gambit
}