I've tried it with killing a champion manually( and 3 champs) via a script. But I've found no way to restore the HP each char had before killing them with a script.
I mean like: A champ ( or 3) has like 100 hp.. They fall into the pit and it does 88 dmg. SO they don't die. They need to die, all but 1.
I can script this np, 3 will die.. 1 won't.
But how to script a thing. if the script reconizes the parties HP before and after?
Like a script check a champion (x) that the hp = 55. How to restore that? Even if the hp is -999. THe Hp of the champ isn't restored as is was.
Any idea's anyone?:) please. I know it should be possible right?
EDit: like Komags code:
Code: Select all
function resethits()
-- Bump down hitpoints
for x = 2, 4, 1 do
party:getChampion(x):modifyStatCapacity("health",-320)
end
end
Code: Select all
function stealHp()
for x = 2, 4, 1 do
party:getChampion(x):modifyStatCapacity("health",120)
party:getChampion(x):modifyStat("health",120)
end
end
-- Because it has -320 hp and gained + 120 so yeah.. still death.
I need to kill a champ who has x value of HP, and that is returned later on after solving a puzzle.
So Any 1 knows how to solve this? U be a pro.