function raiseDead()
local conditions = { "poison", "diseased", "paralyzed", "haste", "rage", "fire_shield", "shock_shield", "poison_shield", "frost_shield", "invisibility" }
for i = 1, 4 do
local c = party:getChampion(i)
if (c:getStat("health") == 0) then
for _, cond in ipairs(conditions) do
c:setCondition(cond, 0)
end
c:setStat("health", 1)
end
end
end
Living ones are unaffected. Dead ones are freed from all conditions (good and bad) and brought back to life at 1HP.
Wow Xanathar! this is Perfect for an Altar. Aka "Altar of Vi". Use"Remains_of_" that you must sacrifice on the altar to recover a character. Wouldn't it be cool if we could spawn "remains_of_yourdeadcharacter" upon death, and use those on the altar?
Currently conspiring with many modders on the "Legends of the Northern Realms"project.
"You have been captured by a psychopathic diety who needs a new plaything to torture." Hotel Hades
if (c:getStat("health") == 0) then
for _, cond in ipairs(conditions) do
c:setCondition(cond, 0)
end
c:setStat("health", 1)
end
playSound("rezsound")
party:playScreenEffect("teleport_screen")
hudPrint(caster:getName() .. " Casted Ressurection")
end
end
if party:getChampion(i):getSex() == "male" then
hudPrint("You have died. Your name is now Bob")
end
if party:getChampion(i):getSex() == "female" then
hudPrint("You have died. Your name is now Susan")
end
Could you make X items 'Human Remains', 'Minotaur Remains', etc and make them of type Scroll, and then set the scroll text to be "The remains of " .. champ:getName(); when you spawn them?
My Grimrock Projects Page with links to the Grimrock Model Toolkit, GrimFBX, Atlas Toolkit, QuickBar, NoteBook and the Oriental Weapons Pack.
JohnWordsworth wrote:Could you make X items 'Human Remains', 'Minotaur Remains', etc and make them of type Scroll, and then set the scroll text to be "The remains of " .. champ:getName(); when you spawn them?
Nice! I think that's good enough for me, I might dump the dead champ's inventory on the floor too. (still want :setUIName() though)
Nice one! Will definitely include this
It is hard to pass judgement on balance without knowing the context (the dungeon mod)..
If the dungeon is hard and brutal enough to need it, then go for it!
Personally I am looking forward to difficult boss battles, where reviving dead champions mid battle will be a must