The GetIsSkillSuccessful() NWScript command performs a skill check, providing feedback to the player and returning success or failure to the calling script. That is, given an object (which should be a creature), a skill, and a difficulty class (as an integer), this command rolls a d20, adds the creature's skill level, and returns a true value if the result is at least the difficulty.
Attributes | Values |
---|
rdfs:label
| |
rdfs:comment
| - The GetIsSkillSuccessful() NWScript command performs a skill check, providing feedback to the player and returning success or failure to the calling script. That is, given an object (which should be a creature), a skill, and a difficulty class (as an integer), this command rolls a d20, adds the creature's skill level, and returns a true value if the result is at least the difficulty.
|
param3desc
| - The difficulty class of the skill check.
|
dcterms:subject
| |
dbkwik:nwn2/proper...iPageUsesTemplate
| |
returns
| |
Name
| |
param
| - object oTarget
- int nSkill
- int nDifficulty
|
param2desc
| - The skill being used, as a SKILL_* constant.
|
param1desc
| - The creature using the skill
|
dbkwik:nwn/property/wikiPageUsesTemplate
| |
abstract
| - The GetIsSkillSuccessful() NWScript command performs a skill check, providing feedback to the player and returning success or failure to the calling script. That is, given an object (which should be a creature), a skill, and a difficulty class (as an integer), this command rolls a d20, adds the creature's skill level, and returns a true value if the result is at least the difficulty. This command does not check whether or not the skill can be used; it allows untrained skill checks even for skills that require training or that are restricted to certain classes (in these cases the skill level is ignored leaving the skill roll at 1d20 + 0). If a skill is restricted, <a href="/mediawiki/GetHasSkill" title="GetHasSkill">GetHasSkill</a>() should be used to determine if a skill check is allowed (before calling this command to perform the check).
|