UnlockAchievement(object, string, int, int, int)

From NWN Lexicon
Jump to: navigation, search
Nwnee logo.jpg Note: This article documents Neverwinter Nights: Enhanced Edition new content or changes/updates/fixes to 1.69 functions. These are all listed under the category and patches pages.
Unlock an achievement for the given player who must be logged in.
void UnlockAchievement(
    object oPlayer,
    string sID,
    int nLastValue=0,
    int nCurValue=0,
    int nMaxValue=0
);

Parameters

oPlayer
A Player object to target with the UnlockAchievement command.
sID
sID is the achievement ID on the remote server.
nLastValue
nLastValue is the previous value of the associated achievement stat. (Default: 0)
nCurValue
nCurValue is the current value of the associated achievement stat. (Default: 0)
nMaxValue
nMaxValue is the maximum value of the associate achievement stat. (Default: 0)

Description

Unlock an achievement for the given player who must be logged in.

Remarks

Information icon.png This section of the article is a stub. You can help the NWN Lexicon by expanding it.

Version

1.74.8188 Note that the description of this function was omitted from the release notes. The function is described in nwscript.

Example

Information icon.png This article is in need of examples. You can help the NWN Lexicon by showing how to use this code effectively.

See Also

Information icon.png This section of the article is a stub. You can help the NWN Lexicon by expanding it.




author: Shadguy