Alangara_PRC8/_module/nss/bo_waketaimes.nss
Jaysyn904 86feb9ca6f Initial commit
Initial commit.
2024-06-05 21:21:06 -04:00

40 lines
1.0 KiB
Plaintext

#include "nw_i0_generic"
/* Script generated by
Lilac Soul's NWN Script Generator, v. 2.2
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;
DelayCommand(1.0, FloatingTextStringOnCreature("Your hideous fumblings have woken Old Taimes!", oPC));
object oTarget;
oTarget = oPC;
DelayCommand(1.0, ActionCastSpellAtObject(SPELL_GREATER_DISPELLING, oTarget, METAMAGIC_ANY, TRUE, 50, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
oTarget = GetObjectByTag("booldaimes");
effect eEffect;
eEffect = GetFirstEffect(oTarget);
while (GetIsEffectValid(eEffect))
{
if (GetEffectType(eEffect)==EFFECT_TYPE_SLEEP) RemoveEffect(oTarget, eEffect);
eEffect = GetNextEffect(oTarget);
}
DelayCommand(1.0, SetIsTemporaryEnemy(oPC, oTarget));
DelayCommand(1.0, AssignCommand(oTarget, ActionAttack(oPC)));
DelayCommand(1.0, AssignCommand(oTarget, DetermineCombatRound(oPC)));
}