Adding a Spell

Post » Mon Dec 06, 2010 12:04 am

I am relatively new at modding and the CS, and am pretty much winging it as I go. I am making a simple house mod, where the house is disconnected to anything else. I have a spell to transport the player, and then the door returns the player to the XMarker that was moved to where the player cast the spell. I tested it an it seems to work exactly as intended. But, I don't know how to add the spell to the player. For testing I used the psb command and scrolled down to it. I was thinking of running a script that would add the spell to the player's spell book, but I'm not quite sure how to go about this. Thanks in advance.
User avatar
e.Double
 
Posts: 3318
Joined: Tue Jul 24, 2007 11:17 pm

Post » Sun Dec 05, 2010 11:22 pm

How about a http://www.invision.tesalliance.org/forums/index.php?/topic/1203-class-3-spell-tomes/ to add your spell?
User avatar
Joanne Crump
 
Posts: 3457
Joined: Sat Jul 22, 2006 9:44 am

Post » Mon Dec 06, 2010 9:15 am

Or make a quest that runs when you start the game. Then make a script that will be attached to the quest:
scn (whaeveryouwant)short doOncebegin GameMode	if (doOnce == 0)		player.addspell (yourspellname)		set doOnce to 1		stopquest (yourquestname)	endifend


It's good for quick testing.
User avatar
Hannah Barnard
 
Posts: 3421
Joined: Fri Feb 09, 2007 9:42 am

Post » Mon Dec 06, 2010 6:13 am

Maybe it's my lack of quest modding, but I can't seem to get the quest to ever pop up...
User avatar
Ria dell
 
Posts: 3430
Joined: Sun Jun 25, 2006 4:03 pm

Post » Mon Dec 06, 2010 8:33 am

There we go, finally got it. Not sure why is wasn't working before, thanks.
User avatar
Luna Lovegood
 
Posts: 3325
Joined: Thu Sep 14, 2006 6:45 pm


Return to IV - Oblivion