Added NWN Dark Sun module contents

Added NWN Dark Sun module contents.
This commit is contained in:
Jaysyn904
2021-07-12 21:24:46 -04:00
parent 556224a658
commit de24f81734
10609 changed files with 146652 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
// the use script for the game control system.
void main()
{
string sTag = GetTag(OBJECT_SELF);
int iSeperator = FindSubString(sTag, "_");
string sWhite = GetSubString(sTag,0, iSeperator);
string sBlack = GetSubString(sTag,iSeperator+1, 10);
SetCustomToken(300, sWhite);
SetCustomToken(301, sBlack);
object oPC = GetLastUsedBy();
if (GetIsObjectValid(oPC) == FALSE)
{
SpeakString("Used by invalid object.");
return;
}
BeginConversation("chess_main", oPC);
}