WarCraft: Source

 

registerSkill

Page history last edited by Jeff 1 yr ago

 registerSkill

 


This command is used to register all the normal skills for a race. Whenever you want to define a skill for the race, this is the command to use.

 

 

The correct syntax is:

 

wcs.Race('My Race Name').registerSkill(<name>,<maximum level>,<level interval>,<description>,[requiredLevel], [requiredSkill])

 

  • Name - The name of the skill. This will be shown to the user when he's upgrading his level. Make it short, but informing... E.G: Grave Digger
  • Maximum level - The maximum level of the skill. Once a player reaches this level, he can not upgrade further.
  • Level interval - This is a new command from the old version of WCS. This is introduced so you can make the user level up in a fair way. This means simply that the user can only upgrade his skill, if his race level is higher than the level being upgraded to, multiplied by the level interval, incremented from level 1. This sounds confusing but take this for an example.... A maximuum level of 5, and a level interval of 2... The levels in which the user could level up the skills are as followed:
    • 1 - Level 1
    • 2 - Level 3
    • 3 - Level 5
    • 4 - Level 7
    • 5 - Level 9
  • Description - This is the description of the skill. It will be shown in the raceinfo section, and the description should be very informal, yet around 10 words long... E.g. 'Attacking a player buries them 6 feet under'
  • Required Level - The number of levels a user has to have in the race to spend points into this skill
  • Required Skill - Uses the number of ranks in said skill instead of the user's current level to determine if they can use this skill.

 

Example:

 

race = wcs.Race('Grave Digger')

race.registerSkill('Bury',5,2,'Attackng a player buries them 6 feet under')

Comments (0)

You don't have permission to comment on this page.