TobEx: 18
Current Behaviour:
Effect #164 “Cure Drunkenness” removes its own opcode
Expected behaviour:
Effect #164 “Cure Drunkenness” removes the drunk opcode
Revision
Dont remove REMOVE_INTOXICATION opcode, and there is no INTOXICATION opcode to remove
Effect #164 “Cure Drunkenness” removes its own opcode
Expected behaviour:
Effect #164 “Cure Drunkenness” removes the drunk opcode
Revision
Dont remove REMOVE_INTOXICATION opcode, and there is no INTOXICATION opcode to remove
Post edited by Bhryaen on
0
Comments
With Near Infinity Opcode #164 reads "Remove Intoxication," no? That said, I can't get NI to make it an easily adjustable value in BGEE anyway...
Here is a potion that will reset the Intoxication bonus (94) back to zero (when it gets set to 100, it also removes the Intoxicated portrait icon. Perhaps someone else can use this to help solve this.
This is a fragment of my Near Infinity window when making an item and adding a new effect. Maybe I'm confusing Opcode numbers with Effect numbers...? DanBoulos describes them as Effect #164 after all...
nevermind, I grabbed the latest beta NI and I see it now too. thanks
Perhaps Remove Intoxication(164) has been mislabeled and is indeed Slow Poison?
Have you tried 164 v poison?
Cure Poison = 11.
Poison Resistance Bonue = 164.
Just checked the list twice- no mention of a Slow Poison somehow.
But maybe it would be a worthwhile request to have the effect altered to set the drunkenness stat to 0 instead.
It currently (in bg2) tries to remove 0xa4, therefore crashes.
In bg2 it already zeroes the intoxication stat out.
(I'm not going to drop the disassembly here, just 2 lines)
0052EAE1 66 C7 80 4A 0B 00 00 mov word ptr [eax+0B4Ah],0 <--- this erases the intox code
(There are 2 such lines as this)
0052EB0D 68 A4 00 00 00 push 0A4h <--- this uses the bad opcode to clear
As far as i know Asc64 simply replaces the 0xa4 byte with 0x5e, and it works in ToBEx.
Can someone confirm that I should be resetting the base stats here? Also, is it even possible to have an intoxication effect in the equipped effects list?
Probably the closest thing is cure fatigue. Fatigue/intoxication seem to be quite similar in handling.
I doubt any current official item applies intoxication in equipping effect (but the same is true for fatigue effect), yet, a modder might think it is fun. So, i advice do everything with intox what you do with fatigue.
When we first found this bug (crasher), it was quite a bummer, we wanted to implement 'coffee' - to remove drunkenness from taverns.
"I'm not giving you single new tavern rumor until you get some rest... unless, of course, you buy some of my quality cafe imported all the way from Maztica..."
1. Created a duplicate of POTN29
2. Changed the Effect #0 to be Remove intoxication (164)
3. Tanked up with Winthrop until he told me to leave the bar
4. Verified getting intox icon on portrait and mentioned on Record screen
5. Drank my new 164-potion
Voila- no intox shows on Record or in portrait icon.