# Data Conversation State Changed

Grammar — Data conversation state state changed
FlagsNative | Event

This event fires when the specified conversation state is changed during a data conversation, or when it is changed through the “Set Data Conversation State” action. Use “Triggering Conversation State” to get the conversation state.

# Arguments

  • string<convstateindex> — State

Returns — void

native void TriggerAddEventConversationStateChanged(
	trigger t,
	string stateIndex,
);

# Event parameters

Category: Conversation / Data Conversations

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:25352

    gt_PlanetPanelHornerPitchHighlightPlanet = TriggerCreate("gt_PlanetPanelHornerPitchHighlightPlanet_Func");
    TriggerEnable(gt_PlanetPanelHornerPitchHighlightPlanet, false);
    TriggerAddEventConversationStateChanged(gt_PlanetPanelHornerPitchHighlightPlanet, "WritingCustomStates|PlanetPanel_PlanetHighlights");
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:27117

void gt_TychusObsession_Init () {
    gt_TychusObsession = TriggerCreate("gt_TychusObsession_Func");
    TriggerAddEventConversationStateChanged(gt_TychusObsession, "WritingCustomStates|LearnedWhyTychusSuit");
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:27143

void gt_HornerObsession_Init () {
    gt_HornerObsession = TriggerCreate("gt_HornerObsession_Func");
    TriggerAddEventConversationStateChanged(gt_HornerObsession, "WritingCustomStates|LearnedHornerMarried");
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:25352

    gt_PlanetPanelHornerPitchHighlightPlanet = TriggerCreate("gt_PlanetPanelHornerPitchHighlightPlanet_Func");
    TriggerEnable(gt_PlanetPanelHornerPitchHighlightPlanet, false);
    TriggerAddEventConversationStateChanged(gt_PlanetPanelHornerPitchHighlightPlanet, "WritingCustomStates|PlanetPanel_PlanetHighlights");
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:27117

void gt_TychusObsession_Init () {
    gt_TychusObsession = TriggerCreate("gt_TychusObsession_Func");
    TriggerAddEventConversationStateChanged(gt_TychusObsession, "WritingCustomStates|LearnedWhyTychusSuit");
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:27143

void gt_HornerObsession_Init () {
    gt_HornerObsession = TriggerCreate("gt_HornerObsession_Func");
    TriggerAddEventConversationStateChanged(gt_HornerObsession, "WritingCustomStates|LearnedHornerMarried");
}