Aller au contenu

Photo

California Custom Chromed Spells


  • Veuillez vous connecter pour répondre
2 réponses à ce sujet

#1
Hardcore UFO

Hardcore UFO
  • Members
  • 86 messages
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!

#2
Alex Warren

Alex Warren
  • Members
  • 179 messages
I think that the correct function is GetSpellId(). ;)

Modifié par Alex Warren, 04 septembre 2011 - 07:28 .


#3
Hardcore UFO

Hardcore UFO
  • Members
  • 86 messages
Excellent. I didn't even think about that possibility, since my purpose was not to psychoanalyze the spell. I guess it was craving attention.