Totally new to coding, but started tinkering around some. I ran into a slight problem. Creating a flag to only go to a sub one after combat reset. This may or may not be the place to post this, but thought I would give it a whirl.
So to even look at the Sub SKnightStuff when in the Sub CombatReset the following has to be true.
If this statement is true it would do the following Sub:
This basically just puts in a sword and shield by activating a bandolier preset out of combat.
The problem is the check keeps happening over and over again, so if I want to change my primary or secondary to a different set up, I can't. My main question is, due to lack of coding knowledge, is there a way to check this once and not to look at it again until the next combat event has ended.
I was thinking I could set a flag here:
Then when the Sub Combat runs it would turn X = On
Then the new check Sub in CombatReset could would be:
I think this makes sense, just not sure how to declare that X or how much would be involved to do something like this.
So to even look at the Sub SKnightStuff when in the Sub CombatReset the following has to be true.
Code:
/if (${BandolierOn}) {
/if (${Select[${Me.Class.ShortName},SHD]}) /call SKnightstuff
}
If this statement is true it would do the following Sub:
Code:
| ----------------------------------------------------------------------------
| SUB: SKnightstuff
| ----------------------------------------------------------------------------
Sub SKnightStuff
/if (${Me.Class.Name.Equal[Shadow Knight]}) {
/if (!${Me.Combat}) {
/if (!${Me.Inventory[13].Name.NotEqual[Invested Honed Wurmslayer]}) {
/bandolier activate Deflection
}
}
}
/return
This basically just puts in a sword and shield by activating a bandolier preset out of combat.
The problem is the check keeps happening over and over again, so if I want to change my primary or secondary to a different set up, I can't. My main question is, due to lack of coding knowledge, is there a way to check this once and not to look at it again until the next combat event has ended.
I was thinking I could set a flag here:
Code:
| ----------------------------------------------------------------------------
| SUB: SKnightstuff
| ----------------------------------------------------------------------------
Sub SKnightStuff
/if (${Me.Class.Name.Equal[Shadow Knight]}) {
/if (!${Me.Combat}) {
( X=Off) {
/bandolier activate Deflection
}
}
}
/return
Then when the Sub Combat runs it would turn X = On
Then the new check Sub in CombatReset could would be:
Code:
/if (${BandolierOn} && X= On) {
/if (${Select[${Me.Class.ShortName},SHD]}) /call SKnightstuff
}
I think this makes sense, just not sure how to declare that X or how much would be involved to do something like this.

