# Data Conversation State Changed
Grammar — Data conversation state state changed
Flags —Native
|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
- Triggering Conversation State — EventConversationState
# Related
Category: Conversation / Data Conversations
- Set Data Conversation State —
void
— ConversationDataStateSetValue - Set Data Conversation Portrait —
void
— ConversationDataRegisterPortrait - Set Data Conversation Unit —
void
— ConversationDataRegisterUnit - Set Data Conversation Camera —
void
— ConversationDataRegisterCamera - Run Data Conversation —
void
— ConversationDataRun - Stop Data Conversation —
void
— ConversationDataStop - Data Conversation State Changed —
void
— TriggerAddEventConversationStateChanged - Triggering Conversation State —
string
<convstateindex> — EventConversationState
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2map — MapScript.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.sc2map — MapScript.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.sc2map — MapScript.galaxy:27143
void gt_HornerObsession_Init () {
gt_HornerObsession = TriggerCreate("gt_HornerObsession_Func");
TriggerAddEventConversationStateChanged(gt_HornerObsession, "WritingCustomStates|LearnedHornerMarried");
}