Updated Release Archive. Fixed Mage-killer prereqs. Removed old LETO & ConvoCC related files. Added organized spell scroll store. Fixed Gloura spellbook. Various TLK fixes. Reorganized Repo. Removed invalid user folders. Added DocGen back in.
74 lines
2.5 KiB
Plaintext
74 lines
2.5 KiB
Plaintext
/*:://////////////////////////////////////////////
|
|
//:: Spell Name Read Magic
|
|
//:: Spell FileName PHS_S_ReadMagic
|
|
//:://////////////////////////////////////////////
|
|
//:: In Game Spell desctiption
|
|
//:://////////////////////////////////////////////
|
|
Divination
|
|
Level: Brd 0, Clr 0, Drd 0, Pal 1, Rgr 1, Sor/Wiz 0
|
|
Components: V, S, F
|
|
Casting Time: 1 standard action
|
|
Range: Personal
|
|
Target: You
|
|
Duration: 10 min./level
|
|
|
|
By means of read magic, you can decipher magical inscriptions on objects-books,
|
|
scrolls, and the like-that would otherwise be unintelligible. This
|
|
deciphering does not normally invoke the magic contained in the writing,
|
|
although it may do so in the case of a cursed scroll. Furthermore, once
|
|
the spell is cast and you have read the magical inscription, you are
|
|
thereafter able to read that particular writing without recourse to the use
|
|
of read magic, thusly, it makes the item identified.
|
|
|
|
Focus: A clear crystal or mineral prism.
|
|
//:://////////////////////////////////////////////
|
|
//:: Spell Effects Applied / Notes
|
|
//:://////////////////////////////////////////////
|
|
This is casted on an unidentified scroll, and reveals its spell.
|
|
|
|
Simple, and easier to do :-D
|
|
|
|
The glymph stuff isn't in just yet, but is in description.
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Jasperre
|
|
//::////////////////////////////////////////////*/
|
|
|
|
#include "PHS_INC_SPELLS"
|
|
|
|
void main()
|
|
{
|
|
// Spell hook check.
|
|
if(!PHS_SpellHookCheck(PHS_SPELL_READ_MAGIC)) return;
|
|
|
|
//Declare major variables
|
|
object oCaster = OBJECT_SELF;
|
|
object oTarget = GetSpellTargetObject();
|
|
|
|
// Check target - must be scroll
|
|
if(GetObjectType(oTarget) == OBJECT_TYPE_ITEM &&
|
|
GetBaseItemType(oTarget) == BASE_ITEM_SPELLSCROLL &&
|
|
!GetIdentified(oTarget))
|
|
{
|
|
SetIdentified(oTarget, TRUE);
|
|
FloatingTextStringOnCreature("*You have identified the writings on the scroll as " + GetName(oTarget) + "*", oCaster, FALSE);
|
|
}
|
|
else
|
|
{
|
|
// Not something valid to identify!
|
|
FloatingTextStringOnCreature("*You cannot identify that item*", oCaster, FALSE);
|
|
return;
|
|
}
|
|
|
|
// Delcare effects
|
|
effect eVis = EffectVisualEffect(VFX_IMP_MAGICAL_VISION);
|
|
|
|
// Signal event
|
|
PHS_SignalSpellCastAt(oTarget, PHS_SPELL_READ_MAGIC, FALSE);
|
|
|
|
// Apply effects
|
|
PHS_ApplyVFX(oTarget, eVis);
|
|
|
|
// Also play animation - reading
|
|
PlayAnimation(ANIMATION_FIREFORGET_READ);
|
|
}
|