Files
HeroesStone_PRC8/_module/nss/sharicdrubk.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

31 lines
691 B
Plaintext

/* Script generated by
Lilac Soul's NWN Script Generator, v. 1.6
For download info, please visit:
http://www.lilacsoul.revility.com */
//Goes on creature's OnHeartbeat. Fires when not fighting or talking.
void main()
{
object oPC = GetNearestCreature(CREATURE_TYPE_PLAYER_CHAR, PLAYER_CHAR_IS_PC, OBJECT_SELF, 1, CREATURE_TYPE_PERCEPTION, PERCEPTION_SEEN);
if (IsInConversation(OBJECT_SELF) || GetIsInCombat()) return;
object oTarget;
oTarget = OBJECT_SELF;
ActionSit(oTarget);
ActionPlayAnimation(ANIMATION_LOOPING_PAUSE_DRUNK, 1.0f, 6.0f);
oTarget = OBJECT_SELF;
effect eEffect;
eEffect = EffectSleep();
ApplyEffectToObject(DURATION_TYPE_PERMANENT, eEffect, oTarget);
}