Toggleable spell help.

Post » Fri Feb 18, 2011 11:36 pm

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.

Help is greatly appreciated.
User avatar
Siidney
 
Posts: 3378
Joined: Fri Mar 23, 2007 11:54 pm

Post » Sat Feb 19, 2011 10:16 am

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.
User avatar
Amanda Leis
 
Posts: 3518
Joined: Sun Dec 24, 2006 1:57 am

Post » Fri Feb 18, 2011 8:09 pm

I thought of doing that, but if at all possible I'd like to use my jewelry and armor spaces for other things.
User avatar
Megan Stabler
 
Posts: 3420
Joined: Mon Sep 18, 2006 2:03 pm

Post » Sat Feb 19, 2011 2:35 am

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.
User avatar
Agnieszka Bak
 
Posts: 3540
Joined: Fri Jun 16, 2006 4:15 pm

Post » Fri Feb 18, 2011 11:51 pm

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.
User avatar
Danii Brown
 
Posts: 3337
Joined: Tue Aug 22, 2006 7:13 am

Post » Fri Feb 18, 2011 11:58 pm

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

User avatar
Kieren Thomson
 
Posts: 3454
Joined: Sat Jul 21, 2007 3:28 am


Return to IV - Oblivion