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
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.
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?
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.
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.
Or you could do a bunch of ifchecks, (if class==monk) then "ki". Look over vampire, it does it there, I think.