Event Based Regeneration

  • Matt
  • Matt's Avatar Topic Author
  • Offline
  • Gold Boarder
  • Gold Boarder
3 months 4 weeks ago #6759 by Matt
Matt created the topic: Event Based Regeneration
Hello all

I've made a patch for event based point regeneration. It's based off Eric Green's original Circlemud one here:

What it does:
Changes Hitpoint, Mana and Move regeneration from happening once every 60 seconds to happening in real time.
For example if someone normally gains 60 hitpoints every tick, they will now receive 1 hitpoint every second.
This re-write makes use of Vatiken's Mud Events, which is awesome and you should definitely be using this all the time.

Once installed the key thing to remember is to use these new functions when making changes to hitpoints/mana/move:
alter_hit(ch, amount);
alter_move(ch, amount);
alter_mana(ch, amount);
"Amount" will be deducted from the characters points. For healing you send a negative amount.

File Attachment:

File Name: EventRegeneration.zip
File Size:3 KB

Please Log in or Create an account to join the conversation.

Time to create page: 0.949 seconds