A Happy New Year to everyone on the Vault!
I saw that a similar project called Gaze Reflection Spell has been uploaded to the vault today and it reminded me of my recent work trying to create a similar effect to all spells in the game.
This is very much a work in progress, aimed at module developers. In short, this script grabs the last spell that was cast at the NPC and fires it back to the player. It can be done as an action que, instantly, or even assigned to other objects. Such an effect was achieved in a surprisingly small amount of coding. The script also deals with the level of the spell. I'm also planning to add MetaMagic compatibility in a future update.
Installation
Download, unzip, import the ERF into module of choice. Script should be placed on OnSpellCastAt (Link goes to Lexicon)
Getting it to work on the PC
Getting it to work on the PC, as Gaze Reflection Spell does, will require a lot of work. Since there appears to be no Event related to the PC casting a spell, the only feasible way to implement this, would be to change the entire database of spell scripts, adding temporary variables and checking them against more scripts, as is the underlying mechanics of Gaze Reflection Spell. Anyone else who can beat me to it, you're welcome, though it would be fun to try and suss out a solution.
There's a quick DEMO module installed, it's strongly recommended you use a Spell Casting Class to test it!
Have fun!
Attachment | Size |
---|---|
return_spell.zip (16) | 40.07 KB |
Well met.
Really neat. Creativity in progress at its best. Also like the big, and non-dark screen shots. Well done presentation.
A work in progress pearl to you.
—
Phyte: My heart has been locked for longer than I can remember.
Sharwyn: Done, and done.
—
Pretty good start there.
Hope you finish this and release it to the vault as an actual spell.
In the DEMO module create scrolls too. Do what I do when I release a spell to the vault. Makes it easier for the modders.
This spell would actually be even better if you had a vfx or placeable appear that was modelled after the old 2nd ed AD&D unique 9th level spell: "Spell Engine" - very similar.
It created a spinning wheel to appear in front of the Spell Engine caster. It would absorb the spell cast at it then fire it back at the enemy caster who cast the spell at you.