Battledale_PRC8/_module/nss/dmw_test_dialog5.nss

23 lines
487 B
Plaintext
Raw Normal View History

#include "dmw_inc"
//
int StartingConditional()
{
int nMyNum = 5;
object oMySpeaker = GetLastSpeaker();
object oMyTarget = GetLocalObject(oMySpeaker, "dmwandtarget");
location lMyLoc = GetLocalLocation(oMySpeaker, "dmwandloc");
string sMyString = GetLocalString(oMySpeaker, "dmw_dialog" + IntToString(nMyNum));
if(sMyString == "")
{
return FALSE;
}
else
{
SetCustomToken(DMW_START_CUSTOM_TOKEN + nMyNum, sMyString);
return TRUE;
}
}