Author Topic: California Custom Chromed Spells  (Read 272 times)

Legacy_Hardcore UFO

  • Full Member
  • ***
  • Posts: 157
  • Karma: +0/-0
California Custom Chromed Spells
« on: September 04, 2011, 06:41:56 am »


               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!
               
               

               
            

Legacy_Alex Warren

  • Sr. Member
  • ****
  • Posts: 326
  • Karma: +0/-0
California Custom Chromed Spells
« Reply #1 on: September 04, 2011, 08:02:08 am »


               I think that the correct function is GetSpellId(). '<img'>
               
               

               


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


            

Legacy_Hardcore UFO

  • Full Member
  • ***
  • Posts: 157
  • Karma: +0/-0
California Custom Chromed Spells
« Reply #2 on: September 04, 2011, 08:45:24 am »


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