temnix Posted November 9, 2019 Share Posted November 9, 2019 That effect can only increment the ability, none of the options to decrement it work. Can anybody suggest a workaround? I've tried using Modify scripting state, but nothing changed. Quote Link to comment
Jarno Mikkola Posted November 9, 2019 Share Posted November 9, 2019 (edited) You sure ? It seems to me like you don't know how numbers work, or rather intergers. Opcode = 90 Parameter 1 = 255 ( or 254, 253 .... down to 155) Parameter 2 = 0 Cumulative effect => -1 (-2, -3 etc -99) Technically it's a split in from -128 to +127, but -99 should be close enough. And yes, at least in the old engine there can only be 1 cumulative spell/item effect, if memory serves without ToBEx... and the one that's takes effect is the one that was the latest to apply. Edited November 9, 2019 by Jarno Mikkola Quote Link to comment
temnix Posted November 9, 2019 Author Share Posted November 9, 2019 The value of the skill can be made to go up, but not down. The same for Disarm traps. I don't know how it is with the stealth skills, but it is this way with these two. Tested in the EE. Quote Link to comment
Jarno Mikkola Posted November 9, 2019 Share Posted November 9, 2019 (edited) And when you add a large number to a split integer number, you get a negative number. And yes, all the thieving skills are split integer numbers. Same goes for all the resistances. Aka, when you add 999 to any value that's between -499 and 500, you actually reduce the number by 1, if the same constrains are still held. Because it goes over the border... 5+999 = 1004 = 4 . Yes, this is how numbers work. Aka when you add 255 to a number between -128 and 127, you get a original number -1. 254 = -2, 253 = -3 ... Edited November 9, 2019 by Jarno Mikkola Quote Link to comment
Luke Posted November 9, 2019 Share Posted November 9, 2019 3 hours ago, Jarno Mikkola said: Yes, this is how numbers work. Technically speaking, that's how signed integers are represented in two's complement... Quote Link to comment
Recommended Posts
Join the conversation
You are posting as a guest. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.