generated from Jaysyn/ModuleTemplate
30 lines
589 B
Plaintext
30 lines
589 B
Plaintext
string sDeny;
|
|
/* Script generated by
|
|
Lilac Soul's NWN Script Generator, v. 2.3
|
|
|
|
For download info, please visit:
|
|
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
|
|
|
//Put this script OnClick or OnFailToOpen
|
|
void main()
|
|
{
|
|
|
|
object oPC = GetClickingObject();
|
|
|
|
if (!GetIsPC(oPC)) return;
|
|
|
|
if (GetAlignmentGoodEvil(oPC) != ALIGNMENT_GOOD)
|
|
{
|
|
sDeny="This door radiates a sense of serenity and peace - you in particular are unable to open it...";
|
|
|
|
SendMessageToPC(oPC, sDeny);
|
|
|
|
return;
|
|
}
|
|
|
|
SetLocked(OBJECT_SELF, FALSE);
|
|
|
|
ActionOpenDoor(OBJECT_SELF);
|
|
|
|
}
|