Alangara_PRC8/_module/nss/shieldpotion.nss

29 lines
574 B
Plaintext
Raw Permalink Normal View History

2024-06-05 21:21:06 -04:00
/* 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 */
void main()
{
object oPC;
if ((GetObjectType(GetItemActivatedTarget())!=OBJECT_TYPE_CREATURE)
){
SendMessageToPC(GetItemActivator(), "Improper use of item!");
return;}
oPC = GetItemActivator();
object oCaster;
oCaster = oPC;
object oTarget;
oTarget = oPC;
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_SHIELD, oTarget, METAMAGIC_ANY, TRUE, 14, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
}