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 the vampire class

changing the vampire class

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


Posted by Typhon   USA  (112 posts)  Bio
Date Wed 03 Sep 2003 06:44 AM (UTC)
Message
i havent really looked alot into this but i was wondering if anyone has changed or though of changing the vampire class from blood users to regular mana? i was pondering it recently.. talking to a couple staff members on LoD and i was thinking about keeping the blood condition code in there.. but rather just have them use mana to cast? im gonna look into it more but if anyone has any comments/ideas let me know :)
-typ
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Wed 03 Sep 2003 07:38 AM (UTC)
Message
This should be as simple as making them regain mana in the update.c routines, and spend mana instead of blood in the maigic.c do_cast routine.

You should do a grep (search in files, on Windows) for CONDITION_BLOOD (I think that's what it is) and then see if each case is one you want to keep or move to mana.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Typhon   USA  (112 posts)  Bio
Date Reply #2 on Wed 03 Sep 2003 07:50 AM (UTC)
Message
hmm.. ok -goes to blow up the mud-
lol
thanks
-typ
Top

Posted by BadBadtzMaru   (4 posts)  Bio
Date Reply #3 on Thu 11 Sep 2003 02:49 PM (UTC)
Message
Be warned - you'll have to tinker with other stuff as well! Many other functions have special code to handle vampires, like do_report(), do_score(), do_group() and so on. Do a search for IS_VAMPIRE and you'll see what I mean.

The good news is that changing vampires back to using mana will mostly be a matter of removing all that special-case code. (I'm still considering making this same change, so let me know if it turns out well :)
Top

Posted by Typhon   USA  (112 posts)  Bio
Date Reply #4 on Fri 12 Sep 2003 03:41 AM (UTC)
Message
lol i know about all the special cases.. still pondering it though.. ill take a look at it tonight see what i can come up with
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.


16,045 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.