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 ➜ int str2 = (int) (str * 0.25 + 10);

int str2 = (int) (str * 0.25 + 10);

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


Pages: 1  2 

Posted by Mike Scherling   USA  (20 posts)  Bio
Date Reply #15 on Wed 14 Jul 2004 07:02 AM (UTC)

Amended on Wed 14 Jul 2004 07:10 AM (UTC) by Mike Scherling

Message
THANK YOU GREVEN!!!
I would kiss you.. but im not that kinda guy...
*slowly leans in for a big ol hug*
HAH! gotcha... *High Five* w00t, now to implement my Aggro Counter for some fearful big monster group action =) =)



I figured out the problem after reading what you said...

The line stopped at a value of 75, (25 * 3)
So i tweaked both the str app and the lines in smaug.h file to acheive a much higher line, which will support me up to my max of 999 stats. Of course, Im going to have to assign some values for these later, but those can be done uick and simple, I will also have to do this same definition for each stat, to make sure nothign crosses over where it shouldnt be



SMAUG.H

extern const struct str_app_type str_app [78];
extern const struct int_app_type int_app [26];
extern const struct wis_app_type wis_app [26];
extern const struct dex_app_type dex_app [26];
extern const struct con_app_type con_app [26];
extern const struct cha_app_type cha_app [26];
extern const struct lck_app_type lck_app

******DIFFERETN FILE********
// Attribute bonus tables.
const struct str_app_type str_app [78] =
{
{ 0, 0, 0, 0 }, /* 0 */
{ 0, 0, 0, 0 }, /* 1 */
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 }, /* 3 */
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 }, /* 5 */
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 }, /* 10 */
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 }, /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, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 }, /* 18 */
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 }, /* 20 */
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 },
{ 0, 0, 0, 0 } /* 25 */
};6];

The source is all around us...
in the food you eat...
in the air you breath...
in your tooth... yes, your tooth...
any questions?
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.


61,876 views.

This is page 2, subject is 2 pages long:  [Previous page]  1  2 

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.