Jump to content


Photo

Slow Poison


  • Please log in to reply
3 replies to this topic

#1 temnix

temnix
  • Member
  • 983 posts

Posted 18 December 2017 - 04:16 PM

How does effect 329 work? The spell Slow Poison just cures poison, and Neutralize does the same but heals some hit points to boot. What is the mystery of 329? And has anyone actually made a version of Slow Poison that would do what the name says?



#2 -kjeron-

-kjeron-
  • Guest

Posted 18 December 2017 - 05:20 PM

Poison(25) and Regeneration(98) use their special field as a "Frequency Multiplier", with a default(0) value of '1'.
Parameter2 = 0, does not utilize the Special field.
Parameter2 = 1, bypass current HP check if 'Special' is non-zero
Parameter2 = 2, Frequency = 'Special'
Parameter2 = 3, Frequency = 'Parameter1' * 'Special'
Parameter2 = 4, Frequency = 'Parameter1' * 'Special'

This is what enables opcode 329 (Slow Poison) to work, as it writes over the 'Special' field of any Opcode 25 effects on the creature. A value of '0' causes it to crash the game, rather than use the default '1'.
As is, Opcode 329 is useless against Poisons that use Parameter2=0, as well as any Poison effect that is used through Opcode 177(Use EFF File), as Parameter2=4 requires.
It is also not necessarily "Slow" Poison, as it can also accelerate poisons if their Special Field was already higher than the value specified in Opcode 329.
There is a slight discrepancy when the effect is applied and the timer has to recalculate itself, but I've not seen it result in more than a single extra trigger.
It does not alter the duration of the poison, nor does it affect any of the other frequency opcodes (78/98/272).



#3 Avenger_teambg

Avenger_teambg
  • Member
  • 604 posts

Posted 19 December 2017 - 02:24 AM

Slow poison with 0 is indeed a bug (causes division by zero). 

Also with 1, it shouldn't do anything (as division or multiplication by 1 doesn't do much).

 

With 2 or higher, it should generally divide the damage and multiply the duration or delay (overall damage shouldn't change).

If the poison is 'permanent' or single time, then damage is divided, of course.

 

At least, this is what it was supposed to do :)

 

This is used in IWDEE, and the proper slow poison spell was not ported to BGEE


Edited by Avenger_teambg, 19 December 2017 - 02:25 AM.

Avenger

#4 temnix

temnix
  • Member
  • 983 posts

Posted 19 December 2017 - 06:01 AM

I meant a slowing, as in, the poison's action halts for some time and then resumes. That's the meaning of the Player's Handbook. Is this what this effect does?