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 ➜ Programming ➜ General ➜ Formula

Formula

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


Posted by Zeno   USA  (2,871 posts)  Bio
Date Wed 27 Jul 2005 05:35 AM (UTC)
Message
I'm trying out a formula based on the users and victims int+dex compared. This is it so far:
    chance = (((get_curr_dex(victim) + get_curr_int(victim)) 
            -  (get_curr_dex(ch)     + get_curr_int(ch))) * 4) + number_range( 1, 50);

It's compared to number_range, and if number_range is greater, the skill will succeed.

But I don't really like it. People with decent dex and int can never get hit by the skill. Does anyone have any insight on how to improve this so it's never really impossible to dodge, only really hard if the victim has good dex+int?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #1 on Wed 27 Jul 2005 06:03 AM (UTC)

Amended on Wed 27 Jul 2005 06:06 AM (UTC) by Flannel

Message
What about a logrithmic/exponential formula? Then you can tweak the rate of change and limits and such to suit your needs.

If you have a 'nominal' curve for the equation, then it shouldn't be too hard to find a couple of equations to fit the curve, both logrithmic, and not.

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #2 on Wed 27 Jul 2005 02:47 PM (UTC)
Message
I thought about a exponential formula, but I also thought about doing it with UMIN or something of the sort along with number_range. Something like number_range( 1, chance ) == 1 where chance is greater if it's harder.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.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.


12,270 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.