Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Affects Modifier

Affects Modifier

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Norman   USA  (3 posts)  Bio
Date Tue 30 Apr 2002 10:54 PM (UTC)
Message
Question for y'all

I'm doing some building myself and Found that if I did something like:
oset 15001 affect hit 100

IT will set the MAX HP negative.
I looked up in the code and found that the value should be no greater than XBI * INTBITS (which is 128).

I wrote a quick Bit Modifier program to find the values:

If I use 50 (bv: 1<<50) the modifier is: 262144
Which ups my HP by 50 like it should

Now if I use 100: (bv 1<<100) the modifier is: 16
Which Makes My HP -32617 (my normal max is 32700)

Is there a MAX Bit Val that I s hould go over?
Thanks in advance..
Dave
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


7,929 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.