Monk Lua Help

言語: JP EN DE FR
2010-06-21
New Items
users online
フォーラム » Windower » Support » monk lua help
monk lua help
 Asura.Kusaregedo
Offline
サーバ: Asura
Game: FFXI
user: kafuin
Posts: 217
By Asura.Kusaregedo 2019-02-19 08:02:53  
i'm trying to make a rule that equips a hybrid set upon toggle while impetus is up. right now the hybrid toggle alone works, and the impetus rules work. but the combination does not. please help.
Code
function status_change(new,old)
	check_equip_lock()
	if Armor == 'PDT' then
		equip(sets.PDT)
	elseif Armor == 'MDT' then
		equip(sets.MDT)
	elseif new == 'Engaged' then
		equipSet = sets.TP
		if Armor == 'Hybrid' then
			equipSet = equipSet["Hybrid"]
		end
		if Armor == 'Hybrid' and buffactive.Impetus then
			equipSet = set_combine(equipSet,sets.TP.HybridImpetus)
		end
		if Attack == 'ON' then
			equipSet = equipSet["ATT"]
		end
		if equipSet[AccArray[AccIndex]] then
			equipSet = equipSet[AccArray[AccIndex]]
		end
		if buffactive.Impetus then
            equipSet = set_combine(equipSet,sets.TP.Impetus)
        end
		if buffactive.Footwork then
            equipSet = set_combine(equipSet,sets.TP.Footwork)
		end
		if buffactive.Impetus and buffactive.Footwork then
			equipSet = set_combine(equipSet,sets.TP.ImpetusFootwork)
		end
		if buffactive['Perfect Counter'] then
			equipSet = set_combine(equipSet,sets.TP.PerfectCounter)
		end
		equip(equipSet)
	else
		equipSet = sets.Idle
		if equipSet[IdleArray[IdleIndex]] then
			equipSet = equipSet[IdleArray[IdleIndex]]
		end
		equip(equipSet)
	end
	if HP == 'ON' then
		equip(sets.HP)
	end
end


this is the part specifically that isn't doing what i want:
Code
if Armor == 'Hybrid' and buffactive.Impetus then
			equipSet = set_combine(equipSet,sets.TP.HybridImpetus)
		end


edit: solved, just had to move the combination below the impetus logic
 Siren.Mosin
Offline
サーバ: Siren
Game: FFXI
user: BKiddo
By Siren.Mosin 2019-02-19 09:51:42  
nevermind, found it.
Log in to post.