# Reset User Data Value

Grammar — Reset user data (userType, instance, field, index)
FlagsNative | Action

Resets the given value to the default defined in the Data module.

# Arguments

  • string<gamelink::User> — User Type
  • string<userinstance> — Instance
  • string<userfield> — Field
  • int — Index

Returns — void

native void UserDataResetValue(
	string inType,
	string inInstance,
	string inField,
	int inIndex,
);

Category: User Data / Utility

# Examples

campaigns/swarmstoryutil.sc2modbase.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.sc2campaignbase.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.sc2modbase.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;
    }