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

43 lines
1.0 KiB
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 OnUsed
void main()
{
object oPC = GetLastUsedBy();
if (!GetIsPC(oPC)) return;
if (GetItemPossessedBy(oPC, "tokenofgaia")== OBJECT_INVALID)
{
// sDeny="You find nothing here but old dusty and ruined tomes";
// SendMessageToPC(oPC, sDeny);
FloatingTextStringOnCreature("You find nothing but old and useless dusty tomes in the bookshelve.", oPC);
return;
}
object oTarget;
oTarget = oPC;
ActionCastSpellAtObject(SPELL_BIGBYS_CRUSHING_HAND, oTarget, METAMAGIC_ANY, TRUE, 20, PROJECTILE_PATH_TYPE_DEFAULT, TRUE);
effect eEffect;
eEffect = EffectSlow();
eEffect = SupernaturalEffect(eEffect);
ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEffect, oTarget, 60.0f);
ActionCastSpellAtObject(SPELL_ISAACS_LESSER_MISSILE_STORM, oTarget, METAMAGIC_ANY, TRUE, 20, PROJECTILE_PATH_TYPE_DEFAULT, TRUE);
}