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 ➜ max blood points

max blood points

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


Posted by Tendel   (3 posts)  Bio
Date Fri 01 Oct 2004 11:22 PM (UTC)
Message
How do code it so i can have a higher max blood points as if they were mset or modifyed by objects to go above the set base that it has by modifying this i can change the max current bp but not the max base bp(not including level gains) I want it so objects woren incress max base blood.
If anyone can help it would be much appreciated

if ( !str_cmp( arg2, "blood" ) )
{
if ( IS_NPC(victim) )
{
send_to_char( "Not on NPC's.\n\r", ch );
return;
}

if ( value < 0 || value > MAX_LEVEL+10 )
{
ch_printf( ch, "Blood range is 0 to %d.\n\r", MAX_LEVEL+10 );
return;
}
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Sat 02 Oct 2004 08:30 AM (UTC)
Message
I believe that this is much more complicated than what you have, because I think that the blood point maximum isn't actually stored anywhere and is dynamically calculated every time it's needed. I could be wrong, though, since I'm running a heavily modified older version of SMAUG.

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,634 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.