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 ➜ Changing max stats?/ searched but no luck

Changing max stats?/ searched but no luck

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


Posted by Wrath   USA  (25 posts)  Bio
Date Mon 12 Jul 2004 09:11 PM (UTC)

Amended on Mon 12 Jul 2004 09:12 PM (UTC) by Wrath

Message
I'm new to coding but picking up quick. I can't seem to find where to edit the max stats. max str is 25 but since I've changed the max level and will have stronger characters I wanted to change the max stat to like 35 for all not 25. I know with bonus it will go up but i want the base stat to be able to go up to 35. Any help to the right file to look in would be great.

Thanks

Always remember he who increses knowledge increses sorrow.
And he who thinks mudding is easy is allways sorry.
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 12 Jul 2004 10:01 PM (UTC)
Message
I can't see where the limit of 25 is enforced anyway. Where do you see that? Is there an error message?

The closest I can get is in do_mset, where I see this ...


   if ( IS_NPC(victim) )
    {
        minattr = 1;
        maxattr = 25;
    }
    else
    {
        minattr = 3;
        maxattr = 18;
    }


So, if I try to mset myself to 35 I see this:


mset self str 35
Build: Nick: mset self str 35
Strength range is 3 to 18.


- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Wrath   USA  (25 posts)  Bio
Date Reply #2 on Mon 12 Jul 2004 11:41 PM (UTC)
Message
Sorry I'm working with rom2.4 and smaug so Imust have gotten the two mixed up.

Always remember he who increses knowledge increses sorrow.
And he who thinks mudding is easy is allways sorry.
Top

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

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

Message
pc_data &Vpc = *victim->GetPcData ();

if (ch->GetTrustLevel () < victim->GetTrustLevel () && !victim->IsNpc ()){
ch->SendText ("You can't do that!\n\r");
ch->dest_buf = NULL;
return;
}
if (lockvictim)
ch->dest_buf = victim;

if (victim->IsNpc ()) {
minattr = 20;
maxattr = 999;
} else {
minattr = 20;
maxattr = 999;
}


*********************************************
This is in character.cpp//Con attribute, rest are in there also
*********************************************
int CCharacter::GetConstitution ()
{
short max;

if (IsNpc () || ClassTable.GetAttrPrime (m_Class) == APPLY_CON) then
max = 999;
else max = 999;

return URANGE (3, perm_con + mod_con, max);





Build: God: mset self str 5000
Strength range is 20 to 999.


search for those lines (mine were already edited so I dont knwo what the origionals were but change them and itll fix your problem =)

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.


15,125 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.