MARS Client Scripting Library - MarsSkill

From Multiverse

Jump to: navigation, search

MarsSkill is a class in the MARS Client Scripting Library that interacts with the MARS Experience System.

Contents

Methods

GetNumSkills

skillCount = GetNumSkills()

Gives the number of skills that the player currently has.

Returns

Returns an integer giving the number of skills that the player has learned.

Parameters

None.

GetSkillName

skillName = GetSkillName(slotId)

Gets the name of the skill that is at the given slot in the skill list.

Returns

Retruns a string value giving the name of the skill at the given slot id.

Parameters

Parameter Datatype Default Value Description
slotId int None The slot location of the skill in the skill list.

GetSkillRank

rank = GetSkillRank(slotId)

Gets the current rank of the skill at the given slot id.

Returns

Returns an integer value representing the current rank level of the skill at the given slot id.

Parameters

Parameter Datatype Default Value Description
slotId int None The slot location of the skill in the skill list.

Events

The MarsSkill class generates the following UI events:

  • SKILL_LIST_UPDATE

Messages

The MarsSkill class registers for the following message types:

  • mv.SKILL_UPDATE
Personal tools