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

34 lines
959 B
Plaintext

// :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
//:::::::::::::::::::::::: Shayan's Subrace Engine :::::::::::::::::::::::::::::
// ::::::::::Extension: Moon's Subrace Selection Converstion for SSE :::::::::::
// ::::::::::::Contact: http://p2.forumforfree.com/shayan.html::::::::::::::::::
// ::::
// :::: Written by: DM_Moon
// ::
// :: Description: Subrace Conversation used in SSE's Wand system.
// ::
#include "sw_main_inc"
int StartingConditional()
{
object oMySpeaker = GetLastSpeaker();
//This starts with 0 for token 8111
int nMyNum = GetLocalInt(oMySpeaker, "subrace_dm_wand_pos");
nMyNum++;
SetLocalInt(oMySpeaker, "subrace_dm_wand_pos", nMyNum);
string sMyString = GetLocalString(oMySpeaker, "swand_dialog" + IntToString(nMyNum));
if(sMyString == "")
{
return FALSE;
}
else
{
SetCustomToken(SWAND_START_CUSTOM_TOKEN + nMyNum, sMyString);
return TRUE;
}
}