Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.

/if (${meleemvi[holyflag0]} && !${meleemvi[holyflag1]}) /multiline ; /melee holyflag0=0 ; /melee holyflag1=1
/if (!${meleemvi[holyflag0]} && ${meleemvi[holyflag1]}) /multiline ; /melee holyflag0=1 ; /melee holyflag1=0
Holyshit01=/If (${TLO. statement/check}) /multiline ; /do this ; /melee holyflag01=0 ; /melee downflag01=1
Downshit01=/if (${check}) / multiline ; /melee holyflag01=1 ; /melee downflag01=0
Yes you can use downs and holys to turn on/ off other holys and downs.
I do it alot to activate something i only want going off once in a combat.
At the end of your if statement you use the multiline statement
Rich (BB code):Holyshit01=/If (${TLO. statement/check}) /multiline ; /do this ; /melee holyflag01=0 ; /melee downflag01=1 Downshit01=/if (${check}) / multiline ; /melee holyflag01=1 ; /melee downflag01=0
${meleemvi[holyflag0]} or !${meleemvi[holyflag0]}
it's in the wiki, I haven't tested as I dont have the client open right now. As long as the TLO was not removed from melee, it should work.
EDIT:
it works, two line social:
/if (${meleemvi[holyflag0]} && !${meleemvi[holyflag1]}) /multiline ; /melee holyflag0=0 ; /melee holyflag1=1
/if (!${meleemvi[holyflag0]} && ${meleemvi[holyflag1]}) /multiline ; /melee holyflag0=1 ; /melee holyflag1=0
Debugging TLOs:
int ${meleemvb[idskill]}
1 if the skill is ready and target in range, 0 if not. Most combat and/or character kills that can use an ID are testable here. Examples of idskills are: idleopardclaw, idslam, idforage, idfrenzy, idtigerclaw, idescape.
int ${meleemvi[variable]}
1/0 if the variable is set to on/off. This includes all variables that can be set on the command line.
string ${meleemvs[option]}
Evaluates option based on the current conditions and target. Options are all the INI options that contain command lines that need to be evaluated. Examples are: bashif, beggingif, tauntif, holyshit0, holyshit1, downshit1, slamif, etc. Echoing one of these options will show you how they evaluate.
/Melee holyflag01=0
/melee holyflag01=1
But I'm not sure that and intake hotkey could do an if statement in that regard. But it's a good idea, and I'd really like to know if you get it to work..
/if (${meleemvi[holyflag0]}) /multiline ; /melee holyflag0=0 ; /if (!${meleemvi[holyflag0]}) /melee holyflag0=1
One problem I have had with toggling shits and holys on the fly is that KissAssist wont always turn combat off in a constant XTar situation (rightfully so, otherwise there would be lag in aggroing next XTar) so if you never wipe the XTar list you may never (or not very often) fire the down to facilitate a shit toggle.
Now, in a single target situation it works wonderfully but i rarely do those camps anymore lol.
- - - Updated - - -
That was supposed to be an 'Update' haha, posting at same time...
Ooops, I thought it was turn one on and the other off. I've run into issues with nested ifs in multiline before, but that might work. I don't remember what issue I ran into.I want 1 social to toggle the same holyshit.
/if (${meleemvi[holyflag0]}) { /melee holyflag0=0 } else { /melee holyflag0=1}
Ooops, I thought it was turn one on and the other off. I've run into issues with nested ifs in multiline before, but that might work. I don't remember what issue I ran into.
The issue with your statement, is you are turning it off, and then evaluating if it is off, which will always be true. Same if you reverse. It's not an else in that instance, it's 2 ifs.
maybe,I've never tried to use an else in a single line, but that might work. (May need to play with spacing).Rich (BB code):/if (${meleemvi[holyflag0]}) { /melee holyflag0=0 } else { /melee holyflag0=1}

CT posted a shit snippet not too long ago on the thread about nested IFs. Iirc, it mighta included a HUD like if/then/else... lemme see if I can find it.
- - - Updated - - -
Found it here. The HUD style if/then/else is very powerful and I had always wanted to be able to use it outside of HUD code. I musta been retarded but a long time ago I had tried to use it in a SHIT, and maybe even mac code to no avail. Alas, his post shows it so next time I need to 'branch' I will use it.
/if (${If[${This.Equal[true]},True ,${If[${This.Equal[true]},True,False]}]})
/if (${Me.Combat}) /multiline ; /if (${meleemvi[holyflag0]}) /melee holyflag0=0 ; /if (!${meleemvi[holyflag0]}) /melee holyflag0=1

