Adding skills

From Wormhole MUD Wiki
Jump to: navigation, search
m
m
 
Line 50: Line 50:
 
   }
 
   }
  
For offensive skills, you will also want to add an entry in the [[messages]] file, detailing what the user, victim and onlookers see when the skill is demonstrated in combat.
+
For offensive skills, you will also want to add an entry in the [[messages]] file, detailing what the user, victim and onlookers see when the skill is demonstrated in combat. (If there is no message in the file, the game will crash the first time it goes looking for that message.)
  
 
'''Good practice:''' Work on a developer port, not on the real game. Save a copy of each file that you are about to change, so you can switch back to the old version(s) if you get into difficulties. Always be neat and tidy; put your new code in the right part of the file, in sequence. Indent your code properly, and include annotations to explain anything unusual about your new entries. Sign and date your work with a comment, too. Maintain a change log, because other developers may be making changes on other ports of the game, and will want to know which segments of the code they need to incorporate when uploading changes to the main game. Oh - and don't be an idiot: only add new features if they improve the game. No level 1 instadeath skills, please!
 
'''Good practice:''' Work on a developer port, not on the real game. Save a copy of each file that you are about to change, so you can switch back to the old version(s) if you get into difficulties. Always be neat and tidy; put your new code in the right part of the file, in sequence. Indent your code properly, and include annotations to explain anything unusual about your new entries. Sign and date your work with a comment, too. Maintain a change log, because other developers may be making changes on other ports of the game, and will want to know which segments of the code they need to incorporate when uploading changes to the main game. Oh - and don't be an idiot: only add new features if they improve the game. No level 1 instadeath skills, please!
  
 
'''Note:''' Since adding the new power involves changes to a header file (spells.h) it is necessary to do a 'make clean' before you 'make' (recompile) the game, or your new skill won't take effect.
 
'''Note:''' Since adding the new power involves changes to a header file (spells.h) it is necessary to do a 'make clean' before you 'make' (recompile) the game, or your new skill won't take effect.

Latest revision as of 08:01, 31 May 2013

Personal tools
Namespaces

Variants
Actions
Navigation
Player Resources
Builder Resources
Toolbox