Difference between revisions of "Osiris/Shared/DB GLO Attribute Check AgainstLevel"
From Divinity Engine Wiki
(DB_GLO Attribute_Check_Against*) |
m (Replaced "Medium" with "Normal", as per the description in "Attribute_Check_1_Difficulty" (Medium also spits out an error when used).) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
* '''DB_GLO Attribute_Check_AgainstSpeaker'''(''(STRING)'''''_Dialog''',''(INTEGER)'''''_Index''',''(STRING)'''''_Attribute''',''(STRING)'''''_Difficulty''',''(INTEGER)'''''_Source''',''(INTEGER)'''''_Target''') | * '''DB_GLO Attribute_Check_AgainstSpeaker'''(''(STRING)'''''_Dialog''',''(INTEGER)'''''_Index''',''(STRING)'''''_Attribute''',''(STRING)'''''_Difficulty''',''(INTEGER)'''''_Source''',''(INTEGER)'''''_Target''') | ||
===== Description ===== | ===== Description ===== | ||
− | When the dialog '''_Dialog''' gets started, story will set the dialog variables needed for the '''Check | + | When the dialog '''_Dialog''' gets started, story will set the dialog variables needed for the '''Attribute Check ''<n>''''' script flag to function, with '''''<n>''''' equal to '''_Index'''. This script flag, when checked in the dialog, will then check whether the attribute '''_Attribute''' of speaker '''_Source''' is high enough. The required minimum value is set so that it is easy/hard to pass for a character of level '''_Level''' resp. the same level as '''_Target''' depending on the specified '''_Difficulty'''. |
'''_Index''' can be 1, 2 or 3 to define up to three different attribute checks in a single dialog. | '''_Index''' can be 1, 2 or 3 to define up to three different attribute checks in a single dialog. | ||
− | '''_Difficulty''' can be one of the following values: '''Always''', '''Easy''', ''' | + | '''_Difficulty''' can be one of the following values: '''Always''', '''Easy''', '''Normal''', '''Hard''', '''Impossible'''. |
===== Notes ===== | ===== Notes ===== | ||
* The valid values for '''_Attribute''' are the same as the ones for [[Osiris/API/CharacterGetAttribute|CharacterGetAttribute]]. | * The valid values for '''_Attribute''' are the same as the ones for [[Osiris/API/CharacterGetAttribute|CharacterGetAttribute]]. | ||
Line 13: | Line 13: | ||
* [[Osiris/API/CharacterGetAttribute|CharacterGetAttribute]] | * [[Osiris/API/CharacterGetAttribute|CharacterGetAttribute]] | ||
− | [[Category:Osiris Shared Mod Helpers]] | + | [[Category:Osiris Shared Mod Helpers|Attribute Check AgainstLevel]] |
Latest revision as of 20:23, 6 July 2018
Full Definition(s)
- DB_GLO Attribute_Check_AgainstLevel((STRING)_Dialog,(INTEGER)_Index,(STRING)_Attribute,(STRING)_Difficulty,(INTEGER)_Source,(INTEGER)_Level)
- DB_GLO Attribute_Check_AgainstSpeaker((STRING)_Dialog,(INTEGER)_Index,(STRING)_Attribute,(STRING)_Difficulty,(INTEGER)_Source,(INTEGER)_Target)
Description
When the dialog _Dialog gets started, story will set the dialog variables needed for the Attribute Check <n> script flag to function, with <n> equal to _Index. This script flag, when checked in the dialog, will then check whether the attribute _Attribute of speaker _Source is high enough. The required minimum value is set so that it is easy/hard to pass for a character of level _Level resp. the same level as _Target depending on the specified _Difficulty.
_Index can be 1, 2 or 3 to define up to three different attribute checks in a single dialog.
_Difficulty can be one of the following values: Always, Easy, Normal, Hard, Impossible.
Notes
- The valid values for _Attribute are the same as the ones for CharacterGetAttribute.