Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Looking through the code I found what I think it is supposed to do There are localization tags for something named almost the same, like they used the wrong variable name.
If I am right it is supposed to restore 20% mp to the caracter that cast it when the target is defeated.

For reference the tags I found were SKILLDEVOURSPIRIT and SKILLDEVOURSPIRITDESCRIPT, while the tags on the skill itself are SKILLDEVOUR and SKILLDEVOURDESCRIPT.

Through testing the skill I haven't noticed it actually restore MP though.

Looking through the script there are two reasons why the skill might not be working, that I have thought of so far.

First it is trying to restore mp to the wrong target, 
Second because the effect triggers when the target dies but the debuff is also removed when the target dies it is possible it is being removed before it triggers.

Trying to edit the script to fix this myself but unsure how to make the effects print info for me to look at in the console.

Okay it was definitely option 2. I removed the remove on death from the debuff and it restored mana to the caster as expected. Only drawback is now the corpses have the debuff showing on them, it will still be removed at the end of combat, and maybe someone knows how to make it remove when triggered.

For anyone wanting to make the skill work in file "assets\data\Effects.gd"
function e_t_devour
line 2178 change 
rem_event = [variables.TR_COMBAT_F, variables.TR_DEATH],
to
rem_event = [variables.TR_COMBAT_F],

as for making the skill name and description translate in file "localization\en\main.gd
Lines 694 and 695 change 
SKILLDEVOURSPIRIT = "Devour Spirit",
SKILLDEVOURSPIRITDESCRIPT = ...
to
SKILLDEVOUR = "Devour Spirit",
SKILLDEVOURDESCRIPT = ...