Aller au contenu

Photo

How does spell hook scripting work? (resolved)


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

#1
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
I need to have a certain action happen when a certain spell is cast in a certain area.  This sounds like it could be accomplished by the spell hook scripting, but I'm not sure how to use it.

Modifié par M. Rieder, 29 mai 2011 - 12:48 .


#2
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
I just found the tutorial by Lilac Soul in the nwn lexicon. Does NWN2 hooking work the same way?

#3
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
I just tested it out and the tutorial by lilac soul appears to work for NWN2 as well.

Here is the link: Lilac Soul's Spell Hooking Tutorial

#4
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
God spellhooking is great. Should've learned this ages ago!

#5
The Fred

The Fred
  • Members
  • 2 516 messages
Yeah, spellhooking is very handy, though it works better for some things than others. If you just want to catch a single, specific spell, you could as easily put the code in that spell's spellscript (this depends on what you want to do). Spellhook is especially great for sweeping effects like wild magic or, say, healing people whenever they cast a spell.

#6
M. Rieder

M. Rieder
  • Members
  • 2 530 messages
It also has the benefit of not messing with compatibility with Kaedrin's. Originally I had changed several spell scripts, but when I played with kaedrins they didn't work, of course, because kaedrin's overrrides almost, if not all, spell scripts. Spell Hooking avoids this problem.

I also plan to use it to modify spellcasting for underwater areas.

#7
painofdungeoneternal

painofdungeoneternal
  • Members
  • 1 799 messages
I've already implemented underwater casting.

#8
M. Rieder

M. Rieder
  • Members
  • 2 530 messages

painofdungeoneternal wrote...

I've already implemented underwater casting.


That's great news!  Is it on the vault?  Is it in the CSL?

Modifié par M. Rieder, 29 mai 2011 - 11:43 .