Dungeon Souls Editor Quick Onboarding Modules Items Sprites Functions Steam Workshop Contact

setPlayerAttribute

Sets a player's attribute to a given value.

Arguments and Return

Argument Name Argument Type Description
attributeName StringCorresponds to the name of the attribute of the player that will be set.
value ValueThe value to set the attribute to.

Return

No return type available

getPlayerAttribute

Gets the player's attribute.

Arguments

Argument Name Argument Type Description
attributeName StringCorresponds to the name of the attribute of the player that will be obtained.

Return

Return Type Description
ValueThe value of the player's attribute.

Player Attributes

Attribute Name Attribute Key Description
Health "hp"The player's current health.
Max Health "hp_max"The player's max health.
Experience Points "exp"The player's current experience points.
Max Experience Points "exp_max"The player's max experience points.
Level "level"The player's current level. This level is the same for all heroes and any changes will span through all heroes.
Stat Points "stat_pnt"The player's current stat points. These are used to increae your stats.
Skill Points "skill_pnt"The player's current skill points. These are used to level up abilities.
Attack Damage "atk_dam"The player's physical damage, without bonus damage added.
Magic Damage "mag_dam"The player's magical damage, without bonus damage added.
Defense "defense"The player's defense stat against physical damage.
Magical Resistance "resist"The player's defense stat against magic damage (resistance).
Accuracy "accuracy"The player's accuracy.
Walk Speed "wlk_spd"The player's walking speed.
X Position "x"The player's current x position.
Y Position "y"The player's current y position.
Basic Attack Cooldown "cooldown"The player's basic attack cooldown
First Skill Cooldown "cooldownB"The player's first skill cooldown
Second Skill Cooldown "cooldownC"The player's second skill cooldown