Skip to main content

Execute_AddSkillExp

Description

Adds skill experience to the specified entity's skill. The final amount is scaled by a performance factor derived from the target object's quality (ObjectGeneralEffect).

Note

Final experience added = F1 (original amount) * PerformanceFactor. PerformanceFactor multipliers: Skill_Superb (1.4x), Skill_High (1.2x), Skill_Good (1.0x), Skill_Fair (0.8x), Skill_Bad (0.6x). If F1 is negative the skill level will not decrease.

Parameters

ParameterDescription
BaseObjectThe entity that receives the skill experience.
S1The skill ID to add experience to (e.g., Charisma, Cooking).
F1The base amount of skill experience to add before applying the factor.

Examples

DescriptionBaseObjectCommand
Add 10 base experience to Self's Charisma skillSelfAddSkillExp
Add 5 base experience to Target's Cooking skillTargetAddSkillExp
Add 20 base experience to Self's Logic skillSelfAddSkillExp