few scripts help please

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
User avatar
akroma222
Posts: 1029
Joined: Thu Oct 04, 2012 10:08 am

Re: few scripts help please

Post 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!!
Post Reply