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 ➜ adding monks

adding monks

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


Posted by Ithildin   USA  (262 posts)  Bio
Date Wed 03 Dec 2003 06:48 AM (UTC)
Message
alright, so i want monks in my game. How would i go about having ki instead of mana? i'm not really sure where to begin, if anyone has any info on this, could they let me know? that'd be great

Thanks
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #1 on Wed 03 Dec 2003 08:58 AM (UTC)
Message
You could simply take all instances of printing "mana" and print "ki" instead, if the class of the person you're printing at is a monk. A cheap fix, but perhaps most adequate if you're not willing to try more complicated solutions.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

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

Posted by Ithildin   USA  (262 posts)  Bio
Date Reply #2 on Wed 03 Dec 2003 07:05 PM (UTC)
Message
well, what i'm looking for is to sort of have the Ki like the bloodpoints, but instead of drinkin blood or whatever you'll have to have a certain meditation to regain ki. i looked at the bloodpoint thing, would i have to completely redo the bloodpoint thing and add ki instead?
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #3 on Wed 03 Dec 2003 07:26 PM (UTC)
Message
If your gonna do something like this, I would suggest doing what Ksilyan said, if they are a monk, have it display mana points, and have a meditation skill that increases mana, they do the same thing in SWR with the force, and it works ok.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #4 on Wed 03 Dec 2003 07:27 PM (UTC)
Message
It all depends on whether you want to hack it, or do it properly. I'll outline the hack since the proper way is a lot harder to explain. :)

You can make it so that mana is not regained at ticks for monks, but it is regained for everyone else.
Now, there are two types of "meditation" you can do:
- "continuous" meditation - this is like sleeping and is also harder to do. The player starts to meditate by using a command, do_meditate. Then you enter the substate - much like you do when you enter a buffer - and all commands entered interrupt the meditation. While meditating, a flag is set or something, and when the mana would normally be gained in update.c, you only give mana back if that flag is set.
- "one-time" meditation. You would just type meditate, it would give you ki/mana back, and add time to your wait_state, much like a skill's beat property.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

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

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #5 on Wed 03 Dec 2003 08:33 PM (UTC)
Message
Or you could do a bunch of ifchecks, (if class==monk) then "ki". Look over vampire, it does it there, I think.

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.


17,389 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.