Author Topic: Script Triggered by Spellcasting  (Read 496 times)

Legacy_Ralthis

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +0/-0
Script Triggered by Spellcasting
« on: March 24, 2011, 08:02:41 am »


               Hi all,

I am trying to figure out a way to execute a script every time a player casts a spell. Unfortunately, I have no idea how to do it since there' nowhere I can find in the module events for, say, OnPlayerSpellCast. The closest I've found is the OnSpellCastAt script slot for a creature...and that won't work becaust I want the script to fire whenever a player casts a spell, not just when they cast it at a creature.

Is there something I'm missing in the toolset that will let me do this?
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Script Triggered by Spellcasting
« Reply #1 on: March 24, 2011, 11:14:06 am »


               http://www.nwnlexico...ll-hooking.html
               
               

               
            

Legacy_Ralthis

  • Jr. Member
  • **
  • Posts: 90
  • Karma: +0/-0
Script Triggered by Spellcasting
« Reply #2 on: March 24, 2011, 02:17:15 pm »


               Thank you!