# Reset User Data Value
Grammar — Reset user data (userType, instance, field, index)
Flags —Native
|Action
Resets the given value to the default defined in the Data module.
# Arguments
string
<gamelink::User> — User Typestring
<userinstance> — Instancestring
<userfield> — Fieldint
— Index
Returns — void
native void UserDataResetValue(
string inType,
string inInstance,
string inField,
int inIndex,
);
# Related
Category: User Data / Utility
- Reset User Data Value —
void
— UserDataResetValue - Reset User Data Instance —
void
— UserDataResetInstance - Reset User Data Type —
void
— UserDataResetType - Reset All User Data —
void
— UserDataResetAll - User Type From Reference —
string
<gamelink::User> — UserDataTypeFromReference - User Instance From Reference —
string
<userinstance> — UserDataInstanceFromReference
# Examples
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:5792
ConversationDataResetNodeState(lib281DEC45_gf_ZSS_CharacterConversation(lv_indexCharacter));
ConversationDataResetNodeState(lib281DEC45_gf_ZSS_CharacterAmbientConversation(lv_indexCharacter));
UserDataResetValue("Character", lv_indexCharacter, "Unlocked", 1);
auto6DF3941C_ai = auto6DF3941C_ai+1;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:5108
ConversationDataResetNodeState(libVCST_gf_PS_ClickableConversation(lv_indexClickable));
ConversationDataResetNodeState(libVCST_gf_PS_ClickableAmbientConversation(lv_indexClickable));
UserDataResetValue("Clickable", lv_indexClickable, "Unlocked", 1);
auto2E4312ED_ai = auto2E4312ED_ai+1;
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:4467
ConversationDataResetNodeState(libNCST_gf_NS_ClickableConversation(lv_indexClickable));
ConversationDataResetNodeState(libNCST_gf_NS_ClickableAmbientConversation(lv_indexClickable));
UserDataResetValue("Clickable", lv_indexClickable, "Unlocked", 1);
auto2E4312ED_ai = auto2E4312ED_ai+1;
}