mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 09:09:43 +00:00
Comments
This commit is contained in:
parent
e0e968a082
commit
4f8476efd4
4 changed files with 7 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
||||||
Interface SkillProgression
|
Interface SkillProgression
|
||||||
===================
|
==========================
|
||||||
|
|
||||||
.. raw:: html
|
.. raw:: html
|
||||||
:file: generated_html/scripts_omw_skillhandlers.html
|
:file: generated_html/scripts_omw_skillhandlers.html
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
* - :ref:`SkillProgression <Interface SkillProgression>`
|
* - :ref:`SkillProgression <Interface SkillProgression>`
|
||||||
- by local scripts
|
- by local scripts
|
||||||
- | Control, extend, and override skill progression of the
|
- | Control, extend, and override skill progression of the
|
||||||
- | player.
|
| player.
|
||||||
* - :ref:`Settings <Interface Settings>`
|
* - :ref:`Settings <Interface Settings>`
|
||||||
- by player and global scripts
|
- by player and global scripts
|
||||||
- Save, display and track changes of setting values.
|
- Save, display and track changes of setting values.
|
||||||
|
|
|
@ -68,9 +68,7 @@ local function skillLevelUpHandler(skillid, source, params)
|
||||||
|
|
||||||
ambient.playSound("skillraise")
|
ambient.playSound("skillraise")
|
||||||
|
|
||||||
local message = core.getGMST('sNotifyMessage39')
|
local message = string.format(core.getGMST('sNotifyMessage39'),skillRecord.name,skillStat.base)
|
||||||
message = message:gsub("%%s", skillRecord.name)
|
|
||||||
message = message:gsub("%%d", tostring(skillStat.base))
|
|
||||||
|
|
||||||
if source == I.SkillProgression.SKILL_INCREASE_SOURCES.Book then
|
if source == I.SkillProgression.SKILL_INCREASE_SOURCES.Book then
|
||||||
message = '#{sBookSkillMessage}\n'..message
|
message = '#{sBookSkillMessage}\n'..message
|
||||||
|
|
|
@ -212,7 +212,7 @@ return {
|
||||||
skillUsedHandlers[#skillUsedHandlers + 1] = handler
|
skillUsedHandlers[#skillUsedHandlers + 1] = handler
|
||||||
end,
|
end,
|
||||||
|
|
||||||
--- Register a skill use, activating relevant handlers
|
--- Trigger a skill use, activating relevant handlers
|
||||||
-- @function [parent=#SkillProgression] skillUsed
|
-- @function [parent=#SkillProgression] skillUsed
|
||||||
-- @param #string skillid The if of the skill that was used
|
-- @param #string skillid The if of the skill that was used
|
||||||
-- @param #SkillUseType useType A number from 0 to 3 (inclusive) representing the way the skill was used, with each use type having a different skill progression rate. Available use types and its effect is skill specific. See @{SkillProgression#skillUseType}
|
-- @param #SkillUseType useType A number from 0 to 3 (inclusive) representing the way the skill was used, with each use type having a different skill progression rate. Available use types and its effect is skill specific. See @{SkillProgression#skillUseType}
|
||||||
|
@ -250,9 +250,9 @@ return {
|
||||||
Athletics_SwimOneSecond = 0,
|
Athletics_SwimOneSecond = 0,
|
||||||
},
|
},
|
||||||
|
|
||||||
--- Register a skill increase, activating relevant handlers
|
--- Trigger a skill level up, activating relevant handlers
|
||||||
-- @function [parent=#SkillProgression] skillUsed
|
-- @function [parent=#SkillProgression] skillLevelUp
|
||||||
-- @param #string skillid The id of the skill to be increased.
|
-- @param #string skillid The id of the skill to level up.
|
||||||
-- @param #SkillLevelUpSource source The source of the skill increase.
|
-- @param #SkillLevelUpSource source The source of the skill increase.
|
||||||
skillLevelUp = skillLevelUp,
|
skillLevelUp = skillLevelUp,
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue