Modifié par M. Rieder, 29 mai 2011 - 12:48 .
How does spell hook scripting work? (resolved)
Débuté par
M. Rieder
, mai 29 2011 12:21
#1
Posté 29 mai 2011 - 12:21
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.
#2
Posté 29 mai 2011 - 12:26
I just found the tutorial by Lilac Soul in the nwn lexicon. Does NWN2 hooking work the same way?
#3
Posté 29 mai 2011 - 12:35
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
Here is the link: Lilac Soul's Spell Hooking Tutorial
#4
Posté 29 mai 2011 - 12:45
God spellhooking is great. Should've learned this ages ago!
#5
Posté 29 mai 2011 - 10:59
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
Posté 29 mai 2011 - 01:05
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.
I also plan to use it to modify spellcasting for underwater areas.
#7
Posté 29 mai 2011 - 04:43
I've already implemented underwater casting.
#8
Posté 29 mai 2011 - 05:42
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 .





Retour en haut






