Adinirith Posted May 31, 2011 Share Posted May 31, 2011 Hey guys, I'm trying to create a healing spell through a script. While my logics tell me that it should be simple, I simply cannot make it work.The goal is to create a race specific healing spell that looks different than the restoration magic already in the game. While the regular restoration spells have a silverish glow, when cast. I'd like mine to have a red'ish glow, much like the destruction spell 'damage healh'.So in short:Is there any way to restore health through a script? Adin Link to comment Share on other sites More sharing options...
The_Vyper Posted May 31, 2011 Share Posted May 31, 2011 You can create an ability spell that restores x amount of health per second. Then create a scripted spell (and select Damage Health for visual effects) that adds the spell to you, then removes it after a set duration. the script for the spell would look something like: scn ScriptedHealingSpellScript Begin ScriptEffectStart Player.AddSpell SpellEditorID End Begin ScriptEffectFinish Player.RemoveSpell SpellEditorID End Just make sure you set the spell's duration to at least 1 second. Link to comment Share on other sites More sharing options...
Adinirith Posted May 31, 2011 Author Share Posted May 31, 2011 (edited) Ah of course..Much like making an ability for a bound item, and a scripted spell to add/remove the bound item ability. I managed to make a 10 second scripted spell with the visual effect i wanted, but effect -healing =/= awesome. Thanks Vyper. Edit: Is there a way to hide the text in the top left corner, when the spell is added and removed? Edited May 31, 2011 by Adinirith Link to comment Share on other sites More sharing options...
fg109 Posted May 31, 2011 Share Posted May 31, 2011 OBSE functions AddSpellNS and RemoveSpellNS. Link to comment Share on other sites More sharing options...
Adinirith Posted May 31, 2011 Author Share Posted May 31, 2011 Found a workround for the message spam upon casting the spell. Message " " ^_^ Thanks guys. Link to comment Share on other sites More sharing options...
MotoSxorpio Posted June 1, 2011 Share Posted June 1, 2011 yeah, adding the "NS" makes it silent, or not shown or heard when equipping or unequipping. Link to comment Share on other sites More sharing options...
Recommended Posts