PRC8/nwn/trunk/smp/smp_ail_sleep.nss
Jaysyn904 5914ed2ab5 Updated Release Archive
Updated Release Archive.  Fixed Mage-killer prereqs.  Removed old LETO & ConvoCC related files.  Added organized spell scroll store.  Fixed Gloura spellbook. Various TLK fixes.  Reorganized Repo.  Removed invalid user folders. Added DocGen back in.
2023-08-22 10:00:21 -04:00

37 lines
886 B
Plaintext

/*:://////////////////////////////////////////////
//:: Name Sleep Heartbeat
//:: FileName SMP_ail_sleep
//:://////////////////////////////////////////////
This runs when a creature is asleep.
Bioware just had "Commandable, Clear Actions, Uncommandable"
I've added ZZzzz's :-)
Random really.
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//:: Created On: July+
//::////////////////////////////////////////////*/
#include "SMP_INC_AILMENT"
void main()
{
// Makes them able to be commanded
SetCommandable(TRUE);
// Clears all the actions.
ClearAllActions();
// Randomly do sleep ZZzzz
if(d6() == 1)
{
effect eVis = EffectVisualEffect(VFX_IMP_SLEEP);
ApplyEffectToObject(DURATION_TYPE_INSTANT, eVis, OBJECT_SELF);
}
// Makes them unable to be commanded
SetCommandable(FALSE);
}