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,38 @@
void main()
{
DelayCommand(20.0,ActionCloseDoor(OBJECT_SELF));
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
int num;
num = Random(9) + 1;
string sExit = "MD"+IntToString(num);
SetLocalString(oPC, "MazeDoor1", sExit);
num = Random(9) + 1;
sExit = "MD"+IntToString(num);
SetLocalString(oPC, "MazeDoor2", sExit);
num = Random(9) + 1;
sExit = "MD"+IntToString(num);
SetLocalString(oPC, "MazeDoor3", sExit);
num = Random(9) + 1;
sExit = "MD"+IntToString(num);
SetLocalString(oPC, "MazeDoor4", sExit);
num = Random(9) + 1;
sExit = "MD"+IntToString(num);
SetLocalString(oPC, "MazeDoor5", sExit);
num = Random(9) + 1;
sExit = "MD"+IntToString(num);
SetLocalString(oPC, "MazeDoor6", sExit);
num = Random(9) + 1;
sExit = "MD"+IntToString(num);
SetLocalString(oPC, "MazeDoor7", sExit);
num = Random(9) + 1;
sExit = "MD"+IntToString(num);
SetLocalString(oPC, "MazeDoor8", sExit);
num = Random(9) + 1;
sExit = "MD"+IntToString(num);
SetLocalString(oPC, "MazeDoor9", sExit);
num = Random(9) + 1;
string sDoor = "MazeDoor"+IntToString(num);
SetLocalString(oPC, sDoor, "WPAmuletRoom1");
SetLocalString(oPC, "MazeEntrance1", "ME1");
AssignCommand(oPC,ActionJumpToLocation(GetLocation(GetObjectByTag("MEnt1"))));
}