I have Arislan's LUA, which has the following code:
Code
function customize_defense_set(defenseSet)
if buffactive['Battuta'] then
if gain then
defenseSet = set_combine(defenseSet, sets.defense.Parry)
end
if state.Knockback.value == true then
defenseSet = set_combine(defenseSet, sets.defense.Knockback)
end
return defenseSet
endFor whatever reason.. the above code just does not work. I havn't messed with the rest of the LUA apart from changing my gear on it. I've tried running the original LUA from github, no luck. I've tried debug mode to see why it isnt triggering, I've manually equipped sets.defense.Parry (that works), I'm kind of out of ideas as to why it doesnt change my gear over during Battuta. Also tried the ID instead of string 'Battuta' etc. but its all listed in Windower anyway, no luck.
I have currently bodged it to work using if / else statements and disabling slots, which works, but isn't ideal. I guess if this is accetable I can leave it? But I assume this is a bad thing since it won't swap any of that parry gear out for the duration of battuta even for enmity, DT, JA, etc.
Code
if buff == 'Battuta' then
if gain then
equip(sets.defense.Parry)
disable('hands','legs','feet','back')
send_command('@input /echo Battuta ON.')
else
enable('hands','legs','feet','back')
send_command('@input /echo Battuta OFF.')
status_change(player.status)
end
endAny help would be much appreciated! I'll check back soon.
Thanks!
