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

41
nwnds_module/trapdoor.nss Normal file
View File

@@ -0,0 +1,41 @@
//::///////////////////////////////////////////////
//:: Trap door that takes you to a waypoint that
//:: is stored into the Destination local string.
//:: FileName
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By: Robert Babiak
//:: Created On: June 25, 2002
//:://////////////////////////////////////////////
void main()
{
object oidUser;
object oidDest;
string sDest;
if (!GetLocked(OBJECT_SELF) )
{
if ( GetIsOpen(OBJECT_SELF))
{
sDest = GetLocalString( OBJECT_SELF, "Destination" );
oidUser = GetLastUsedBy();
oidDest = GetObjectByTag(sDest);
AssignCommand(oidUser, ActionJumpToObject(oidDest,FALSE));
PlayAnimation(ANIMATION_PLACEABLE_CLOSE );
} else
{
PlayAnimation(ANIMATION_PLACEABLE_OPEN );
}
} else
{
// ActionUseSkill
}
}