Page 2 of 2

Re: few scripts help please

Posted: Sun Feb 10, 2013 10:11 am
by akroma222
Quite annoying about not being able to attack power....
The only work around I have going is from this spell script :
SpoilerShow
function enchantedmight(caster,x,y,dir,skill)
if findEntity("timer_enchantedmight"):isActivated() then
return
else
for i = 1,4 do
party:getChampion(i):modifyStatCapacity("strength", 5)
party:getChampion(i):modifyStat("strength", 5)
party:getChampion(i):modifyStatCapacity("dexterity", 5)
party:getChampion(i):modifyStat("dexterity", 5)
party:getChampion(i):addTrait("aggressive", false)
party:playScreenEffect("cold_glow_enchantedmight")
end
hudPrint("Enchanted Might has been activated, Strength and Dexterity +5 and the party gains 'Aggressive'!")
findEntity("timer_enchantedmight"):activate()
playSoundAt("goromorg_shield_hit",party.level,party.x,party.y)
end
end

function stopenchantedmight()
for i = 1,4 do
party:getChampion(i):modifyStatCapacity("strength", -5)
party:getChampion(i):modifyStat("strength", -5)
party:getChampion(i):modifyStatCapacity("dexterity", -5)
party:getChampion(i):modifyStat("dexterity", -5)
party:getChampion(i):removeTrait("aggressive", false)
timer_enchantedmight:deactivate()
end
playSoundAt("goromorg_shield_break",party.level,party.x,party.y)
hudPrint("Enchanted Might has deactivated, Strength and Dexterity -5 and the party loses 'Aggressive'.")
end
It gives the whole party the 'aggressive trait' which increases attack power.... hopefully you can salvage something from this?
Cheers!!