bongobeat wrote:Good evening,
is that possible to script an item that resurrect (like the healing crystal) but only for one champion?
Yes.
There is such an item in my ORRR2 room for those that discovered it.
(Not many did I bet.

)
But that item is not exactly what you mean, or would want really.
I seem to recall crafting a healing spell a while ago...
(Can't find it just yet though... I will update this post when I do.)
*Update: Found it... but it's not polished work.
https://www.dropbox.com/s/z7zja9mw8jv3m ... _Alpha.avi
Code: Select all
defineSpell{
name = "resurrect_spell",
uiName = "Holy Resurrect Spell",
skill = "fire_magic", --"earth_magic", --{changed for simplicity sake; would change it back later.}
level = 1, --25,
runes = "ABCD",
manaCost = 1, --150,
onCast = function (champion, spell)
setMouseItem(spawn('healing_hand'))
hudPrint(champion:getName().." Pulls magic arcane forces to resurrect the dead.")
end,
}
defineObject{
name = 'healing_hand',
class = 'Item',
model = 'mod_assets/models/empty.fbx',
gfxAtlas = "mod_assets/textures/gui/healing_hand.tga",
gfxIndex = 1,
stackable = false,
weight = 0.1,
uiName = "Click on a party member\nto resurrect them to full health",
throwingWeapon = false,
onUnequipItem = function()setMouseItem()end,
onEquipItem = function (champion,slot)
champion:removeItem(slot)
--{this loop is to destroy these items just in case the player dropped them on the ground.}
for instance in allEntities(getMaxLevels()) do
if instance.name == 'healing_hand' then
instance:destroy()
end
end
if not champion:isAlive() then
spawn("fx", party.level, party.x, party.y, party.facing, "fade")
fade:translate(0, 1.5, 0)
fade:setParticleSystem("fade_white_spell")
playSound("vocal_harmony")
champion:setStat("health", champion:getStatMax('health'))
champion:setCondition("shock_shield", 5) --{This is useless to them, but gives a visible 'healing' effect}
else hudPrint('The spell fizzles, '..champion:getName()..' is already alive!' )
end
return false
end,
}
This spell is flawed; it needs work before being used in a mod, but it does show how it works.
This was a spell, but it uses a temporary object. This could be re-made into a talisman or something. When placed in the hand, it resurrects the corpse.