Character
Information about the current character. This is the class that scripts get access to at game.character
.
Fields:
Allegiance Allegiance
Information about the currently logged in character's allegiance
AnimTracker AnimTracker
Information about the currently logged in character's animation state
BurdenUnits number
Your current burden units. Your max burden units (for 100% burden) uses the formula Strength * 150.
BusyTracker BusyTracker
Information about the currently logged in character's busy state
CombatMode CombatMode
The combat mode the character is in
Containers WorldObject[]
List of child container objects, including foci
Equipment WorldObject[]
List of objects equipped to this character.
Fellowship Fellowship
Information about the currently logged in character's fellowship state
Id number
The id of the currently logged in character
InPortalSpace boolean
Wether or not the currently logged in character is in portal space
Inventory WorldObject[]
A list of all objects in your inventory, pulls items from containers as well. (This excludes equipped items and actual containers)
MaxBurdenUnits number
The maximum burden units you can hold before becoming overburdened (100% burden).
Options1 CharacterOptions1
Character Options
SpellBook SpellBook
Information about the currently logged in character's spellbook. (known spells, spell helpers, etc)
Stance MotionStance
The stance the character is in
Vitae number
Character's current vitae 1 = no vitea, 0.95 = 5% vitae
Weenie WorldObject
The weenie of the currently logged in character
Events:
OnAvailableLuminanceChanged AvailableLuminanceChangedEventArgs
Fired when your total luminance
OnCastSpellAttempt CastSpellAttemptEventArgs
Fired any time your character attempts to cast a spell
OnDeath DeathEventArgs
Fired when your character dies
OnEnchantmentsChanged EnchantmentsChangedEventArgs
Fired when active enchantments change
OnLevelChanged LevelChangedEventArgs
Fired when your character levels up
OnPortalSpaceEntered EventArgs
Fired when portal space is entered (not on login, so the first event is OnPortalSpaceExited)
OnPortalSpaceExited EventArgs
Fired when exiting portal space. (this fires for the first time after logging in, while exiting login portal space)
OnSharedCooldownsChanged SharedCooldownsChangedEventArgs
Fired when object cooldowns change
OnTotalExperienceChanged TotalExperienceChangedEventArgs
Fired when your total experience changes
OnVitaeChanged VitaeChangedEventArgs
Fired when your character's vitae changes
OnVitalChanged VitalChangedEventArgs
Fired when one of your vitals current value changes.
Methods:
ActiveEnchantments() : Enchantment[]
A list of active enchantments on this character. Does not include overlapping enchantments
AllEnchantments() : Enchantment[]
A list of all enchantments on this character. This includes enchantments that may be overriden by other enchantments.
GetActiveEnchantments(attributeId: AttributeId) : Enchantment[]
Gets a list of active enchantments on this character that affect the specified attribute type.
Name | Type | Default | Summary |
attributeId | AttributeId |
GetActiveEnchantments(skillId: SkillId) : Enchantment[]
Gets a list of active enchantments on this character that affect the specified skill type.
Name | Type | Default | Summary |
skillId | SkillId |
GetActiveEnchantments(vitalId: VitalId) : Enchantment[]
Gets a list of active enchantments on this character that affect the specified vital
Name | Type | Default | Summary |
vitalId | VitalId |