WoR_PRC8/_module/nss/sw_test_dialog0.nss
Jaysyn904 b5e28e52f4 Initial commit
Initial commit [1.18]
2025-04-03 11:49:34 -04:00

38 lines
1.3 KiB
Plaintext

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//:::::::::::::::::::::::: Shayan's Subrace Engine :::::::::::::::::::::::::::::
// :::::::::::::::::::::::::: Extension: SWand :::::::::::::::::::::::::::::::::
// ::::::::::::Contact: http://p2.forumforfree.com/shayan.html::::::::::::::::::
// ::::
// :::: Written by: DM_Moon
// ::
// :: Description: Subrace Conversation used in SSE's SWand system.
// ::
#include "sw_main_inc"
int StartingConditional()
{
swandScriptInit();
int nMyNum = 0;
SetLocalInt(oMySpeaker, "subrace_dm_wand_pos", nMyNum);
//Check whether this conversation has been started already, start it if not.
if(!sw_gl_Status)
{
SetConversationStatus(oMySpeaker, SWAND_CONVO_RUNNING);
swand_StartConversation();
}
string sMyString = GetLocalString(oMySpeaker, "swand_dialog" + IntToString(nMyNum));
if(sw_gl_Status==SWAND_CONVO_CLOSE || sMyString == "") //No abort check, since abort is instant.
{
//Doing this to prevent abort event on running, when there is no string.
SetConversationStatus(oMySpeaker, SWAND_CONVO_CLOSE);
return FALSE;
}
else
{
SetCustomToken(SWAND_START_CUSTOM_TOKEN + nMyNum, sMyString);
return TRUE;
}
}