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 ➜ smaug chance

smaug chance

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


Posted by Frobozz   (75 posts)  Bio
Date Sun 16 Jan 2005 02:39 AM (UTC)
Message
Alright this has me a bit confused so I thought I would ask you guys what you thought.

In redesigning the smaug skill/spell system Im stumped on the chance function. First off all the skills/spells on my mud are based on a combination of using a float function and an int function to calculate the skill/spell level for a certain skill/spell.

Ie.

Magic Missile 5.35 = Level 5 Magic Missle (35/100 to level 6)

The 35/100 represents the old system where you would have been 35%, also meaning that you had a 35% chance of landing the skill.

Now though with my system a level 40.10 person has less of a chance at landing a spell than someone level 4.99.

Im trying to work out a more common sense approach to do this. Is there a good way to redesign this aspect?
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Sun 16 Jan 2005 05:44 AM (UTC)
Message
Did you really mean to type 40.10 vs. 4.99? Are you saying that only the decimal part matters?

In that case, only use the decimals in computing the chance of success and ignore the integer component.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
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.


10,049 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.