ToME: the Tales of Maj'Eyal

Everything about ToME
It is currently Tue Aug 04, 2020 10:20 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sat Jul 29, 2017 1:14 pm 
Offline
Archmage

Joined: Sat Dec 13, 2014 3:38 pm
Posts: 350
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.


Top
 Profile  
 
PostPosted: Fri Aug 23, 2019 11:02 pm 
Offline
Yeek

Joined: Fri Mar 20, 2015 10:59 pm
Posts: 10
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)


Top
 Profile  
 
PostPosted: Fri Dec 27, 2019 5:47 pm 
Offline
Archmage

Joined: Sat Dec 13, 2014 3:38 pm
Posts: 350
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.


Top
 Profile  
 
PostPosted: Sat Jan 04, 2020 4:10 am 
Offline
Archmage

Joined: Sat Dec 13, 2014 3:38 pm
Posts: 350
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:
   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:
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!


Top
 Profile  
 
PostPosted: Sat Jan 04, 2020 8:23 am 
Offline
Perspiring Physicist

Joined: Sun Sep 09, 2012 7:43 am
Posts: 6110
long_desc should always be a function that returns a string. It can't just be a string.

_________________
My feedback meter decays into coding. Give me feedback and I make mods.


Top
 Profile  
 
PostPosted: Sat Jan 04, 2020 9:53 am 
Offline
Archmage

Joined: Sat Dec 13, 2014 3:38 pm
Posts: 350
Thanks for the quick reply! :) Do you know any answers regarding the second question/s?


Top
 Profile  
 
PostPosted: Sat Jan 04, 2020 10:16 pm 
Offline
Perspiring Physicist

Joined: Sun Sep 09, 2012 7:43 am
Posts: 6110
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.

_________________
My feedback meter decays into coding. Give me feedback and I make mods.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group