NWNDS/nwnds_module/ds_amuletexit.nss
Jaysyn904 de24f81734 Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
2021-07-12 21:24:46 -04:00

11 lines
361 B
Plaintext

void main()
{
DelayCommand(20.0,ActionCloseDoor(OBJECT_SELF));
string sDoor = GetTag(OBJECT_SELF);
int num = Random(9) + 1;
string sExit = "MD"+IntToString(num);
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC);
string sWP = GetLocalString(oPC, sDoor);
AssignCommand(oPC,ActionJumpToLocation(GetLocation(GetObjectByTag(sExit))));
}