Index · Preferences · Help
Announcements · BYOND Features · Bug Reports · Fixes and Features · Developer How-To · Code Problems · Design Philosophy · Creations · Classified Ads · Gaming · Computers & Technology · Community
Forum Search:

[Advanced Search]

[Messages in this Thread] [Show All (2)] [Return to Developer How-To]

Author:The Great Sabin [Posts]
Date:11/7/09 12:34 pm
Topic:Special Skills
Post ID:726169
Next ID:726185
Okay, this is more of a How-To then a code problem.

So i have this:

obj/Skills
    var/LearnedBy	//defines variables for all skills
    var/LearnedOn
    var/MPCost
    Regen
        LearnedBy="Magician","Warrior"
        LearnedOn=10
        MPCost=30
        verb/Regen()
            set category="Skills"

I want it to be for Magicians, and it takes 30 MP, but Restores HP, and MP. It restores 15 HP, and MP every 20 seconds for 80 seconds.

I have no clue where to go from there.

Can someone help?

Messages in this Thread: [Show All (2)]

  Special Skills The Great Sabin (11/7/09 12:34 pm)
      Re: Special Skills Garthor (11/7/09 1:38 pm)