I am trying to add spells to my module. The basic concepts are fine, but some specifics seem to be outside of what I conceived them to be. This is script-related trouble, but I posted here since it's custom content, and may have to do with a file setup for all I know.
The script I have been testing the method of introduction with is pretty straightforward. I had a placeholder CONSTANT until I read that I don't need a constant - my next move was to go ahead and add a line for it in spells.2da and stick that in the override folder. Then, I restarted the toolset to see if the script compiled. What I keep getting is this:
ERROR: UNDEFINED IDENTIFIER (GetSpellID)
Which points to the line:
SignalEvent(oTarget, EventSpellCastAt(OBJECT_SELF, GetSpellID()));
Now, I've consulted scripts on a custom module for this syntax, so I don't understand what is wrong now that the spell indeed has a 2da line to identify it by. If anyone knows what's up, please let me know!
California Custom Chromed Spells
Débuté par
Hardcore UFO
, sept. 04 2011 05:41
#1
Posté 04 septembre 2011 - 05:41
#2
Posté 04 septembre 2011 - 07:02
I think that the correct function is GetSpellId().
Modifié par Alex Warren, 04 septembre 2011 - 07:28 .
#3
Posté 04 septembre 2011 - 07:45
Excellent. I didn't even think about that possibility, since my purpose was not to psychoanalyze the spell. I guess it was craving attention.





Retour en haut






