Page 1 of 1

Ghoul Multi Fork - Including Healing Penalty, Speed Now 100%

Posted: Sat Jul 29, 2017 1:14 pm
by Steven Aus
Ghoul MultiFork - Neg. Healing Mod Instead of Neg. Speed, also Ghoul Buff + Ghouls Dont Breathe Tinker Fix

New Negative Healing Mod for Ghoul instead of Global Speed Penalty, also Undead Tinker Fix for Ghouls Don't Breathe Addon, and Ghoul Buff changes included.

Not compatible with: Ghoul Buff addon, Ghouls Dont Breathe addon, Ghoul Global Speed Tweak addon because they change similar things.

Also on Steam.

Re: Ghoul Multi Fork - Including Healing Penalty, Speed Now

Posted: Fri Aug 23, 2019 11:02 pm
by Bokkelul
I like this, I only think the healing should not scale up with level. A permanent -50% healing mod would make more sense (and feel less op)

Re: Ghoul Multi Fork - Including Healing Penalty, Speed Now

Posted: Fri Dec 27, 2019 5:47 pm
by Steven Aus
At this stage I will do this as well as removing the +20% Global Speed that was introduced since 1.5.5 since that would be overkill. Probably be able to release the new version in the near future - just got back into TOME and just got back into modding tonight. I will keep the undead healing and possible debuff removal in the Retch skill at this point in time.

Do you mean a starting baseline of 0.5 of normal healing mod, or 0.5 regardless of items and skills etc? I'm learning towards to the former, but I am open to suggestions.

Re: Ghoul Multi Fork - Including Healing Penalty, Speed Now

Posted: Sat Jan 04, 2020 4:10 am
by Steven Aus
I am changing EFF_RETCHED so there is no speed bonus.

I also want to change the effect description.

I'm using a 'ToME:load' hook.

This works fine without changing the long_desc.

However, when I also try to change the string using the following, the game hangs without crashing and without an error message with the screen flashing very fast:

Code: Select all

	local Effects = require 'engine.interface.ActorTemporaryEffects'
	local TemporaryEffectDefinition = Effects.tempeffect_def
	
	TemporaryEffectDefinition.EFF_RETCHED.activate = function(self, eff)
    -- Do nothing.
	end

	-- Modifying long_desc() to change the description.
	TemporaryEffectDefinition.EFF_RETCHED.long_desc = 'Since the Ghoul Global Speed Penalty has been removed, they no longer get a Global Speed Boost when in their own Retch.'
From the log files there were tons of errors like this from all over:

Code: Select all

Lua Error: /mod/class/uiset/Minimalist.lua:1154: attempt to call field 'long_desc'
So I feel that I might have been defining that last command wrong.

Additional Question: Is there any difference between the chance of applying a negative effect on hitting an enemy/a specified check using one or more of your stats (such as sum of Strength and Constitution) against the enemy's stats (such as Physical Power)? Is it possible to do both: do a specified check only if you land a hit (melee, ranged or other type of damage such as spell) using an attack, talent or item?

Thank you for your help!

Re: Ghoul Multi Fork - Including Healing Penalty, Speed Now

Posted: Sat Jan 04, 2020 8:23 am
by HousePet
long_desc should always be a function that returns a string. It can't just be a string.

Re: Ghoul Multi Fork - Including Healing Penalty, Speed Now

Posted: Sat Jan 04, 2020 9:53 am
by Steven Aus
Thanks for the quick reply! :) Do you know any answers regarding the second question/s?

Re: Ghoul Multi Fork - Including Healing Penalty, Speed Now

Posted: Sat Jan 04, 2020 10:16 pm
by HousePet
I can't really parse it, but I think the answers are:
Yes, there is a difference.
and Yes, it is possible to do both.