PRC8/nwn/nwnprc/trunk/smp/phs_s_mount.nss
Jaysyn904 6ec137a24e Updated AMS marker feats
Updated AMS marker feats.  Removed arcane & divine marker feats.  Updated Dread Necromancer for epic progression. Updated weapon baseitem models.  Updated new weapons for crafting & npc equip.
 Updated prefix.  Updated release archive.
2024-02-11 14:01:05 -05:00

57 lines
1.7 KiB
Plaintext

/*:://////////////////////////////////////////////
//:: Spell Name Mount
//:: Spell FileName PHS_S_Mount
//:://////////////////////////////////////////////
//:: In Game Spell desctiption
//:://////////////////////////////////////////////
Conjuration (Summoning)
Level: Sor/Wiz 1
Components: V, S, M
Casting Time: 1 round
Range: Close (8M)
Effect: One mount
Duration: 2 hours/level (D)
Saving Throw: None
Spell Resistance: No
You summon a light horse or a pony (your choice) to serve you as a mount.
The steed serves willingly and well. The mount comes with a bit and bridle
and a riding saddle.
Material Component: A bit of horse hair.
//:://////////////////////////////////////////////
//:: Spell Effects Applied / Notes
//:://////////////////////////////////////////////
This would only work if we can summon a horse.
Not going to obviously complete until got a horse!
//:://////////////////////////////////////////////
//:: Created By: Jasperre
//::////////////////////////////////////////////*/
#include "PHS_INC_SPELLS"
void main()
{
// Spell Hook Check.
if(!PHS_SpellHookCheck(PHS_SPELL_MOUNT)) return;
// Declare Major Variables
object oCaster = OBJECT_SELF;
location lTarget = GetSpellTargetLocation();
int nCasterLevel = PHS_GetCasterLevel();
int nMetaMagic = PHS_GetMetaMagicFeat();
// Get duration - 2 hours/level
float fDuration = PHS_GetDuration(PHS_HOURS, nCasterLevel * 2, nMetaMagic);
// Declare effects
effect eCessate = EffectVisualEffect(VFX_DUR_CESSATE_POSITIVE);
// Create the mount
object oMount = CreateObject(OBJECT_TYPE_CREATURE, "phs_mount", lTarget);
// Apply effects
PHS_ApplyDuration(oMount, eCessate, fDuration);
}