Item Search
     
BG-Wiki Search
Page 176 of 302 FirstFirst ... 126 166 174 175 176 177 178 186 226 ... LastLast
Results 3501 to 3520 of 6036

Thread: Gearswap Help Thread!     submit to reddit submit to twitter

  1. #3501
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    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

  2. #3502
    Old Merits
    Join Date
    Sep 2010
    Posts
    1,094
    BG Level
    6
    FFXI Server
    Ragnarok

    You could convert it to a table.

    xspells = S{"spellx","spelly","spellz"}

    if xspells:contains(spell.english) then

  3. #3503
    Bagel
    Join Date
    Dec 2012
    Posts
    1,488
    BG Level
    6

    Quote Originally Posted by Martel View Post
    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
    Code:
    if S{"spellx","spelly","spellz"}:contains(spell.english) and condition2 then do_something
    or
    note no S
    Code:
    if table.contains(spell.english, {"spellx","spelly","spellz"}) and condition2 then do_something
    the choice is personal preference

  4. #3504
    Old Merits
    Join Date
    Sep 2010
    Posts
    1,094
    BG Level
    6
    FFXI Server
    Ragnarok

    Neat. There have been a few rules where I would have rather had the table integrated. Might make use of that.

  5. #3505
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    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.

  6. #3506
    trv
    trv is offline
    Melee Summoner
    Join Date
    Oct 2014
    Posts
    48
    BG Level
    1

    The extended form you referenced is faster, since S() is a function call. You could also do
    Code:
    spell.english:mfind('string|of|possibilities|separated|by|pipes')
    It would be relatively, significantly more inefficient, but anything you put into a gearswap file is going to run in fractions of a microsecond.

  7. #3507
    Relic Shield
    Join Date
    Feb 2012
    Posts
    1,909
    BG Level
    6

    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?

  8. #3508
    Campaign
    Join Date
    Jul 2007
    Posts
    6,633
    BG Level
    8

    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

  9. #3509
    Relic Shield
    Join Date
    Feb 2012
    Posts
    1,909
    BG Level
    6

    Quote Originally Posted by Sechs View Post
    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
    Well, the only reason to automate in any fashion are for weapon stripping situations.

  10. #3510
    Sea Torques
    Join Date
    Aug 2006
    Posts
    518
    BG Level
    5
    FFXI Server
    Leviathan

    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.

  11. #3511
    Relic Shield
    Join Date
    Jan 2013
    Posts
    1,868
    BG Level
    6

    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.

  12. #3512
    Melee Summoner
    Join Date
    Jul 2014
    Posts
    44
    BG Level
    1
    FFXI Server
    Phoenix

    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.

  13. #3513
    Puppetmaster
    Join Date
    Apr 2013
    Posts
    63
    BG Level
    2
    FFXI Server
    Asura

    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']?

  14. #3514
    RIDE ARMOR
    Join Date
    Apr 2014
    Posts
    22
    BG Level
    1

    swaps based on augmentation don't work for weapons?

  15. #3515
    BG Content
    Join Date
    Jul 2007
    Posts
    22,390
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    It should work for weapons too. Make sure your main and sub slots aren't disabled.

  16. #3516
    Nidhogg
    Join Date
    Jul 2008
    Posts
    3,746
    BG Level
    7
    FFXIV Character
    Seraphus Highwynn
    FFXIV Server
    Gilgamesh
    FFXI Server
    Diabolos

    Quote Originally Posted by Yamoman View Post
    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']?
    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?

  17. #3517
    BG Content
    Join Date
    Jul 2007
    Posts
    22,390
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    //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']

  18. #3518
    CoP Dynamis
    Join Date
    Mar 2013
    Posts
    275
    BG Level
    4
    FFXI Server
    Odin

    Quote Originally Posted by Byrthnoth View Post
    //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']
    I actually always have had issues with using brackets when equipping sets whose names are more than 1 word.

    for example on CDC,

    I always need to type

    Code:
    gs equip sets.ws.Chant du Cygne
    instead of

    Code:
    gs equip sets.ws['Chant du Cygne']
    is this normal?

  19. #3519
    BG Content
    Join Date
    Jul 2007
    Posts
    22,390
    BG Level
    10
    FFXI Server
    Lakshmi
    Blog Entries
    1

    No, the version without brackets should not even work.

  20. #3520
    Puppetmaster
    Join Date
    Apr 2013
    Posts
    63
    BG Level
    2
    FFXI Server
    Asura

    Thx, that did the trick, just a visual way to check sets, easier to read

Page 176 of 302 FirstFirst ... 126 166 174 175 176 177 178 186 226 ... LastLast

Similar Threads

  1. Replies: 6547
    Last Post: 2014-07-08, 22:45