# Convert Integer To Conversation State Index
Grammar — Conversation State Index(state, index)
Flags —Native
|Function
Returns the conversation state index for the given conversation state and integer index.
# Arguments
string
[ gamelink::ConversationState ] — Stateint
— Index
Returns — string
[ convstateindex ]
native string ConversationDataStateIndex(
string inStateId,
int inIndex,
);
# Related
Category: Conversation / Conversation Tools
- [F] —
void
— Set Conversation Reply Text — ( ConversationReplySetText ) - [F] —
void
— Remove Conversation — ( ConversationDestroy ) - [F] —
void
— Remove Conversation Reply — ( ConversationReplyDestroy ) - [F] —
void
— Remove All Conversations — ( ConversationDestroyAll ) - [F] —
void
— Remove All Conversation Replies — ( ConversationReplyDestroyAll ) - [F] —
int
[ preset::ReplyState ] — Conversation Reply State — ( ConversationReplyGetState ) - [F] —
int
— Conversation Reply Index — ( ConversationReplyGetIndex ) - [F] —
text
— Conversation Reply Text — ( ConversationReplyGetText ) - [F] —
void
— Mark Conversation Reply As Read/Unread — ( ConversationReplySetState ) - [F] —
string
[ convstateindex ] — Convert Integer To Conversation State Index — ( ConversationDataStateIndex )
# Examples
# campaigns/libertystory.sc2campaign
// L2659
ConversationDataStateIndex("MissionLast", (lv_mission))
// L2741
ConversationDataStateIndex("MissionAvailable", (lp_mission))
// L2744
ConversationDataStateIndex("MissionCompleted", (lp_mission))
// L3088
ConversationDataStateIndex("MissionAvailable", (lp_mission))
// L3091
ConversationDataStateIndex("MissionCompleted", (lp_mission))
// L3340
ConversationDataStateIndex("MissionLast", (lv_indexMission))
// L3343
ConversationDataStateIndex("MissionLast", (lv_indexMission))
# campaigns/voidstory.sc2campaign
// L3795
ConversationDataStateIndex("Cameras", lv_index)
# campaigns/voidstory.sc2campaign
// L3291
ConversationDataStateIndex("Cameras", lv_index)
// L3294
ConversationDataStateIndex("Cameras", lv_index)
// L3295
ConversationDataStateIndex("Cameras", lv_index)
# mods/missionpacks/novacampaign.sc2mod
// L3264
ConversationDataStateIndex("Cameras", lv_index)