generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
32
_module/nss/heal_allpc2.nss
Normal file
32
_module/nss/heal_allpc2.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
/* Script generated by
|
||||
Lilac Soul's NWN Script Generator, v. 1.6
|
||||
|
||||
For download info, please visit:
|
||||
http://www.lilacsoul.revility.com */
|
||||
|
||||
//Put this OnUsed
|
||||
void main()
|
||||
{
|
||||
object oMod = GetModule();
|
||||
object oPC = GetLastUsedBy();
|
||||
if (!GetIsPC(oPC)) return;
|
||||
object oCaster;
|
||||
oCaster = OBJECT_SELF;
|
||||
object oTarget;
|
||||
oTarget = oPC;
|
||||
int oState = GetLocalInt(oMod, "fountain_state");
|
||||
if (oState !=1)
|
||||
{
|
||||
AssignCommand(oCaster, ActionCastSpellAtObject(SPELL_GREATER_RESTORATION, oTarget, METAMAGIC_ANY, TRUE, 20, PROJECTILE_PATH_TYPE_DEFAULT, TRUE));
|
||||
}
|
||||
else
|
||||
{
|
||||
PlaySound("sim_cntresist");
|
||||
//FloatingTextStringOnCreature("You can't reach the pool", oPC);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user