GearSwap Offense Modes Help

Eorzea Time
 
 
 
言語: JP EN FR DE
日本語版のFFXIVPRO利用したい場合は、上記の"JP"を設定して、又はjp.ffxivpro.comを直接に利用してもいいです
users online
フォーラム » Windower » Support » GearSwap Offense Modes help
GearSwap Offense Modes help
 Shiva.Mortechai
Offline
サーバ: Shiva
Game: FFXI
user: Mortechai
Posts: 11
By Shiva.Mortechai 2020-05-14 19:16:03  
Code
function job_state_change(stateField, newValue, oldValue)
    if stateField == 'Offense Mode' then
        if newValue == 'Normal' then
            enable('main','sub','range')
        else
            disable('main','sub','range')
        end
    end
end


I need to know how to write it so I can include more than one offense mode in this arguement, how do I have to format the 'Normal'? Any help is greatly appreciated!
 Cpu
Offline
Posts: 249
By Cpu 2020-05-14 20:06:02  
Typing from mobile but I think this works:

if S{'Normal','Hybrid','Meva'}:contains(newValue) then
 Shiva.Mortechai
Offline
サーバ: Shiva
Game: FFXI
user: Mortechai
Posts: 11
By Shiva.Mortechai 2020-05-15 20:23:30  
Where would I plug that into that line of code?
 Cpu
Offline
Posts: 249
By Cpu 2020-05-18 12:41:42  
Shiva.Mortechai said: »
Where would I plug that into that line of code?
You would replace the existing if newValue line with the line that I provided...