Hexes

by Yrael

Back to Mechanic's Corner.

Yrael2007-05-26 15:38:24
For the whole three people who aren't moondancers and use hexes. Shift1-4 will choose a combo, just change the comboone-four aliases to contain hexes you know/prefer. F5 and F6 to draw and throw, respectively. One bloody space screwed me over. You'll excuse me if I don't post the randomhexes, that just makes me want to cry even more to think how easy it was to fix and how two or three spaces would have saved me so much trouble.


#CLASS {Hexes|Combos}
#ALIAS combo1 {#var combo 1}
#ALIAS combo2 {#var combo 2}
#ALIAS combo3 {#var combo 3}
#ALIAS combo4 {#var combo 4}
#ALIAS combohexdraw {#if (@balance and @equilibrium) {#if (@combo=1) {comboone} {#if (@combo=2) {combotwo} {#if (@combo=3) {combothree} {#if (@combo=4) {combofour} {#if (@combo=0) {#show SET A COMBO FUCKTARD;#cw 22}}}}}}}
#ALIAS comboone {#if (@combopart=0) {draw hex anorexia;#if (@hexdrawn) {#var combopart 1;#var hexdrawn 0}} {dh stupidity;#if (@hexdrawn) {#var combopart 0;#var hexdrawn 0}}}
#ALIAS combotwo {#if (@combopart=0) {draw hex reckless;#if (@hexdrawn) {#var combopart 1;#var hexdrawn 0}} {dh sensitivity;#if (@hexdrawn) {#var combopart 0;#var hexdrawn 0}}}
#ALIAS combothree {#if (@combopart=0) {draw hex asthma;#if (@hexdrawn) {#var combopart 1;#var hexdrawn 0}} {dh Scabies;#if (@hexdrawn) {#var combopart 0;#var hexdrawn 0}}}
#ALIAS combofour {#if (@combopart=0) {dh epilepsy;#if (@hexdrawn) {#var combopart 1;#var hexdrawn 0}} {dh reckless;#if (@hexdrawn) {#var combopart 0;#var hexdrawn 0}}}
#ALIAS combohexthrow {#if (@balance and @equilibrium) {#if (@combo=1) {combothrow1} {#if (@combo=2) {combothrow2} {#if (@combo=3) {combothrow3} {#if (@combo=4) {combothrow4} {#if (@combo=0) {#show SET A COMBO FUCKTARD;#cw 22}}}}}}}
#ALIAS combothrow1 {doublewhammy @target with stupidity anorexia}
#ALIAS combothrow2 {doublewhammy @target with reckless sensitivity}
#ALIAS combothrow3 {doublewhammy @target with scabies asthma}
#ALIAS combothrow4 {Doublewhammy @target with epilepsy reckless}
#ALIAS dh {draw hex}
#VAR combo {4} {0}
#VAR combopart {0} {0}
#VAR hexdrawn {1} {0}
#VAR combostep {}
#TRIGGER {*trace glyphs in the air*} {#var hexdrawn 1}
#KEY F5 {combohexdraw}
#KEY F6 {combohexthrow}
#KEY SHIFT-1 {combo1}
#KEY SHIFT-2 {combo2}
#KEY SHIFT-3 {combo3}
#KEY SHIFT-4 {combo4}
#CLASS 0
Unknown2010-03-23 01:12:27
Ok, I love what I see... I think. Honestly it makes no sense to me. Is this LUA? How would I put this into my MushClient? I'm trying to figure a fast way to use hexes myself. Like as you have, shift + x = hex , y, z, so on and so forth. Then what I'd like to do is just keep pressing one button to have those flung at my enemy. I have variable 'target'. But this is just an idiot talking here. Hehe. So I honestly don't fully understand. LUA is a new type of format to me.
Sylphas2010-03-23 01:22:27
That's for zMUD.
Shaddus2010-03-23 02:51:16
All of my hexers only know up to whammy, so I generally just make an alias to draw hex and whammy it to my target.
Jules2010-03-23 05:19:38
Well... Let me see... This seems like a pretty easy thing to port over to Lua, so I'll do so here. Please note, however, that I'm writing this in the Mudlet format, which uses a native Lua IDE for it's scripting. MUSHclient uses it's own functions to set variables (SetVariable(variableName, value)), so please change your code accordingly.

Aliases to set Variables:
CODE
Combo 1:
Pattern: ^combo1$
Script: combo = 1
draw hex anorexia
draw hex stupidity

Combo 2:
Pattern: ^combo2$
Script: combo = 2
draw hex reckless
draw hex sensitivity

Combo 3:
Pattern: ^combo3$
Script: combo = 3
draw hex asthma
draw hex scabies

Combo 4:
Pattern: ^combo4$
Script: combo = 4
draw hex epilepsy
draw hex reckless


Function to fire Hexes:
CODE
function fireHexes()
    if balance == 1 and equilibrium == 1 then
        if combo == 1 then
            send("doublewhammy " ..target.. " with anorexia stupidity")
        elseif combo == 2 then
            send("doublewhammy " ..target.. " with reckless sensitivity")
        elseif combo == 3 then
            send("doublewhammy " ..target.. " with scabies asthma")
        elseif combo == 4 then
            send("doublewhammy " ..target.. " with epilepsy reckless")
        end
    end
end


The fireHexes() function can be set to any keybinding, having the script send:
CODE
fireHexes()