# Data Conversation State Upgrade

GrammarinfoName upgrade of conversation stateIndex|State
FlagsNative | Function

Returns an upgrade associated with the given conversation state. The info name corresponds with the “Info Name” field defined in the state.

# Arguments

  • string<convstateindex> — State Index
  • string — Info Name

Returns — string<gamelink::Upgrade>

native string ConversationDataStateUpgrade(
	string stateIndex,
	string inInfoName,
);

Category: Conversation / Data Conversation Tools

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:4908

    // Automatic Variable Declarations
    // Implementation
    return ConversationDataStateUpgrade(libCamp_gv_tS_ResearchConvoID[(lp_researchID)], ("Upgrade 1"));
}

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:4914

    // Automatic Variable Declarations
    // Implementation
    return ConversationDataStateUpgrade(libCamp_gv_tS_ResearchConvoID[(lp_researchID)], ("Upgrade 2"));
}

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:6633

        lv_convoID = "Upgrade1";
    }
    return ConversationDataStateUpgrade(libCamp_gf_TS_StoryTechConvoID(lp_tech), (lv_convoID));
}