Spell - Object Information
Sections in this file:
You can read and modify spell (or psionic power) data by first running func.GetSpellObj(SpellNum As Integer). This function returns the spell object. For instance:
Dim MySpell
Set MySpell = func.GetSpellObj(num)
If func.ValidSp(MySpell) Then
MsgBox MySpell.Name
End If
Spell levels for example are extracted directly from the rich text description of the spell. To modify such data, you will need to find the relevant string in the Desc member, and modify it. For instance, replacing "Clr 0" with "Clr 1" would, in effect, change the spell level from 0 to 1 for clerics.
Main
Members
Documentation for DM Genie and Player Genie, page Spell. Copyright © Mad Scientist Studios, 2006.
Help Contents | DM Genie home page
Click here if you cannot see the table of contents on the left
>