I'm very ignorant when it comes to programming. Only language I used is Pascal/Delphi and that's over 15 years ago so I hardly remember anything.
I have a question about the use of variables in Spellcast's XMLs.
For example, can you do something like this below? (using a very simplified syntax of course, I just want let the idea behind it pass)
Let's say X is a variable.
This way after an action that swaps you to a specific gearset, you will be able to the set you had equipped before that, no matter what it was.Code:X:=CurrentSet equip precast set=WSset perform WS equip aftercast set=X
I doubt this is possible but still I wanted to ask.
Otherwise it's probably possible to have X change according to conditions, for example buffactive, something like:
This way the rule will make you change set before you perform a certain action, and return to X after the action is completed.Code:if buffactive=1 X=set1 else X=set2 if spell=ws1 equip precast set=wsset equip aftercast set=X /if
X will be different according to the buffactive condition. If that buff is active it will return to X1, otherwise if it's not it will return you to X2.
I assume I would have to code the X condition inside the "Variables" section of the XML.
How am I supposed to do it?
XI Wiki



