Jump to content

The "Open locks bonus" opcode problem


temnix

Recommended Posts

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 by Jarno Mikkola
Link to comment

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.

Link to comment

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 by Jarno Mikkola
Link to comment

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...