Take this extended line:
If (spell.english == "X" or spell.english == "Y" or spell.english == "Z") and condition2 then do_something
Is there a short form? Like:
If spell.english == ("X" or" Y" or "Z") and condition2 then do_something
Take this extended line:
If (spell.english == "X" or spell.english == "Y" or spell.english == "Z") and condition2 then do_something
Is there a short form? Like:
If spell.english == ("X" or" Y" or "Z") and condition2 then do_something
You could convert it to a table.
xspells = S{"spellx","spelly","spellz"}
if xspells:contains(spell.english) then
or this to keep it in the if
note the S
orCode:if S{"spellx","spelly","spellz"}:contains(spell.english) and condition2 then do_something
note no S
the choice is personal preferenceCode:if table.contains(spell.english, {"spellx","spelly","spellz"}) and condition2 then do_something
Neat. There have been a few rules where I would have rather had the table integrated. Might make use of that.
Really neat!
Compared to the "extended" form I used above, is the difference just a matter of convenience for who writes the Lua (less stuff to write, tidier, easier to read while scrolling etc) or is the short form code even "lighter" for Gearswap to use/execute?
I suppose there is no difference for GS but asking just in case anybody knows.
The extended form you referenced is faster, since S() is a function call. You could also doIt would be relatively, significantly more inefficient, but anything you put into a gearswap file is going to run in fractions of a microsecond.Code:spell.english:mfind('string|of|possibilities|separated|by|pipes')
How might I be able to change keybinds to toggle between different weapon modes? Currently based off Kinematics THF lua (with changes as I figure this all out), but I change my offhand between 3~ daggers depending on content, and still want to utilize his different offense modes during each of those daggers. As well, I plan on making options to utilize club/h2h/sword, so a straight up "cycle weapons" option would be best. Not a clue how to do that, though, any help?
Weapons are not a slot you change that often dynamically mid fight. Do you really need to automate it? Can't you just equip them manually? I too use different offhands on dnc, nin and thf, but I swap rarely, according to the kind of content I'm about to tackle, and do the swap manually
http://pastebin.com/zZJ3dKVf
For whatever reason, this is the only one that gives me issues. Puts me in random gear. Doesn't swap me into different acc gear. Sometimes will just leave me in idle gear, won't swap gear when I hit binds for mid acc/high acc.
That is one of the reasons I put weapons in my luas, So they get equipped when i change jobs and when i face encumberment type moves. I even have it re-equip stuff when encumberment wears off. I have dressup on and lots of times I dont even know I am naked when hit with these moves cause my character doesnt change. Moves like feather furore or whatever that campaign yagudo move is called still get me but at least the next time i do an action I put a weapon back on.
I like to make toggles for these type things, the only problem that can arise is if u put a weapon from main to sub, you have to do a switch between or switch to empty first. I even made a toggle for my ninja so I will cycle thru WS red procs for when I am in abyssea and I bound it to a key. This way I dont have to open the menu and find the weapon which can get even more frustrating with how we have to choose between wardrobe and bag now sometimes.
Got something weird here in my geo lua. I use motentens geo lua and i noticed that the Handbell doenst kick in on midcast. The line i have is range="dunna". I dont get a lua error but for some reason it wont equip it.
I know commad to show current tp set is //gs c showtp, what command should i type to show equip set for ws? say its sets.precast.WS['Chant du Cygne']?
swaps based on augmentation don't work for weapons?
It should work for weapons too. Make sure your main and sub slots aren't disabled.
Does this work to show people your sets? I've long wondered if there was a way go do that like with spellcast's sc equip WS". Often times I dont notice if gear is spelled incorrectly or is not equipping properly even when i do gs showsets because the pre/mid/after swaps are too fast and unlike sc, gs swaps gear even with your equip menu open. Does the /gs show(set) command equip it and leave it on or does it just list it out as text in your menu like showswaps does?
//gs c showtp is a custom function specific to that user file.
//gs equip sets.precast.WS['Chant du Cygne'] would equip that set and can be used to equip any given set for the purposes of showing people/etc. Be aware that you have to use single quotes or escape double quotes (\") due to the windower console's text handling.
So:
//gs equip sets.precast.WS[\"Rudra's Storm\"]
but not:
//gs equip sets.precast.WS["Rudra's Storm"]
and not:
//gs equip sets.precast.WS['Rudra's Storm']
No, the version without brackets should not even work.
Thx, that did the trick, just a visual way to check sets, easier to read