WarCraft: Source

 

registerUltimate

Page history last edited by freddukes@... 1 yr ago

registerUltimate


This command allows you to register an 'ultimate' skill. This should be the races 'main' and most effective skill, and very unique to the class...

 

The correct syntax is:

 

wcs.Race('My Race Name').registerUltimate(<title>,<required level>,<maximum level>,<level interval>,<description>)

 

  • Title - This is the name of the skill. It will be shown to the player when he is upgrading the skill. Make it short, but informing... e.g. Suicide Bomber
  • Required level - This is the level the player must be in the race before he is able to buy the first level of the ultimate.
  • Maximum level - This is the maximum level the ultimate can get to, before the player is inable to upgrade his ultimate further.
  • Level interval - This is the amount of levels it requires between ultimate levels, starting from the required level, an incrementing each time by the level interval. This may seem confusing, but look at this example. The required level is level 8, the maximum level is level 8, and the level interval is level 4....
    • 1 - Level 8 (required level)
    • 2 - Level 12 (8 + 4)
    • 3 - Level 16 (12 + 4)
    • 4 - Level 20
    • 5 - Level 24
    • 6 - Level 28
    • 7 - Level 32
    • 8 - Level 36
  • Description - This should be a short, yet meaningful description which fully describes the ultimate. Take this as an example: 'Hold down your ultimate key to build up the destruction power

Example:

 

race = wcs.Race('Undead Scourge')

race.registerUltimate('Suicide Bomber',8,8,4,'Hold down your ultimate key to build up the destruction power')

Comments (0)

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