Initial commit
Initial commit.
This commit is contained in:
27
_module/nss/trig_sleep.nss
Normal file
27
_module/nss/trig_sleep.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 2.1
|
||||
|
||||
For download info, please visit:
|
||||
http://nwvault.ign.com/View.php?view=Other.Detail&id=4683&id=625 */
|
||||
|
||||
//Put this OnEnter
|
||||
void main()
|
||||
{
|
||||
|
||||
object oPC = GetEnteringObject();
|
||||
int iSleep = GetLocalInt( oPC,"sleep");
|
||||
|
||||
//if (!GetIsPC(oPC)) return;
|
||||
|
||||
object oTarget;
|
||||
oTarget = oPC;
|
||||
if ( iSleep <= 3 )
|
||||
{
|
||||
effect eEffect;
|
||||
eEffect = EffectSleep();
|
||||
SetLocalInt( oPC,"sleep",iSleep++);
|
||||
FloatingTextStringOnCreature("The forest makes you feel sleepy.",oPC);
|
||||
DelayCommand(6.0f,ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 12.0f));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user