Questions about cloning and defining.

Talk about creating Grimrock 1 levels and mods here. Warning: forum contains spoilers!
Post Reply
Obyvvatel
Posts: 30
Joined: Mon Sep 17, 2012 11:21 pm
Location: Poznań, Poland

Questions about cloning and defining.

Post by Obyvvatel »

I haven't found topic like this yet, so here it is :D

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?
User avatar
Edsploration
Posts: 104
Joined: Wed Sep 19, 2012 4:32 pm

Re: Questions about cloning and defining.

Post 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.
Open Project -> Community FrankenDungeon: viewtopic.php?f=14&t=4276
Post Reply