Here's the deal; I'm completely new to scripting and I'm wanting to make a spell that gives night-eye and detect life. I've tried editing scripts from other mods with the spell ID but nothing's worked.
That kind of a spell would be damn useful wouldnt it?
Tbh, I wanted something like this once, so I just booted up the CS, made a custom enchant and put it on a necklace. Then just changed the object ID and dropped it in a chest somewhere. Works just as well.
Why do you need to 'script' the spell? Just make a spell with both enchantments on it.
The http://tesalliance.org/forums/index.php?/topic/1203-class-3-spell-tomes has a tutorial on adding your new spells to a 'Spell Tome' so you can get the spell into your game, available to the player.
Why do you need to 'script' the spell? Just make a spell with both enchantments on it.
The http://tesalliance.org/forums/index.php?/topic/1203-class-3-spell-tomes has a tutorial on adding your new spells to a 'Spell Tome' so you can get the spell into your game, available to the player.
I'm wanting to make a script that will allow me to toggle the spell on and off.
I guess I could just create the spell I want with a super long duration and have a Dispell to go with it.
I use this myself for toggle-able night eye. The trick is to make a Night Eye and/or Detect Life ability instead of a regular spell, so that the effect is constant until toggled off.
Begin ScriptEffectStart If ( Player.IsSpellTarget YourSpellIDGoesHere == 0 ) Player.AddSpell YourSpellIDGoesHere Else Player.RemoveSpell YourSpellIDGoesHere EndIfEnd