Page 1 of 1
Questions about cloning and defining.
Posted: Mon Oct 08, 2012 6:50 pm
by Obyvvatel
I haven't found topic like this yet, so here it is
My questions:
1. What's the name of parameter that defines health regenaration?
2. How can I define new wand item that heals party member?
Re: Questions about cloning and defining.
Posted: Tue Oct 09, 2012 9:14 pm
by Edsploration
1. I don't know if there is a way to customize this. I assume it's hardcoded into the engine. It would be possible to add on your own regen effect with a slow counter triggering periodic party healing.
2. Taking a look at the Grimwiki's Heal Party Spell (
http://grimwiki.net/wiki/Heal_Party_Spell) gives us a good idea of what functions to call:
Code: Select all
for i=1,4 do
party:getChampion(i):modifyStat("health", heal_amount)
end
playSound("heal_party")
You'll have to put this code in (or call it from) the item's onUseItem hook probably.