I have a short question for something I didnt manage to properly convert form spellcast over to my gearswap lua on:
I have a var in spellcast that I can toogle off/on with a triggerspell. It makes it so I equip instead of my full hagondes set, I equip seidr cotehardie when I want to conserve MP on low tier nukes.
how would I go about converting something like this into lua?Code:<if Spell="Foot Kick"> <if advanced='"$Nukeing"="Accuracy"'> <var cmd="set Nukeing Damage" /> <command when="precast">input /echo Magic Damage + Mode </command> </if> <else> <var cmd="set Nukeing Accuracy" /> <command when="precast">input /echo Magic Conserve Mode </command> </else> </if> <if Spell="Fire|Blizzard|Aero|Stone|Thunder|Water|Fire II|Blizzard II|Aero II|Stone II|Thunder II|Water II|Firaga*|Blizzaga*|Thundaga*|Stonega*|Aeroga*|Waterga*|*ja|Fira*|Blizzara*|Aerora*|Stonera*|Thundara*|Watera*"> <if advanced='"$Nukeing"="Accuracy"'> <equip when="precast" set="Nuke"> <main>$Staff-Dmg-%SpellElement</main> <sub>Zuuxowu grip</sub> </equip> </if> <else> <equip when="precast" set="Nuke2"> <main>$Staff-Dmg-%SpellElement</main> <sub>Zuuxowu grip</sub> </equip> </else> <if mode="OR" element="%DayElement" WeatherElement="%SpellElement" BuffActive="$Storm-%SpellElement"> <equip when="midcast"> <back>Twilight cape</back> </equip> <if advanced='"$Obi-%spellElement"!="0"'> <equip when="midcast"> <waist>$Obi-%spellElement</waist> </equip> </if> </if> </if>
I have a feeling since gearswaps works wiht packets of spells actualyl going off, trigger spells are not possible. So the idea would probably be to splitt up the nukeing set into 2 parts, one with only body and one with the rest, and then I just send a command line in that changes the body set into what I desire?
XI Wiki


