Jump to content

Removing spells from starting character fails


Jugg3r

Recommended Posts

Hi,

 

I am working on a new Standalone Map for Skyrim. At first i want to strip the character of all items and spells.

I wrote a script which removes all items, but when it comes to spells i wont work.

 

As starting character for testing (coc to location) you will usually take race nord, thus he gains fear shout, healing and flames as spells.

 

But i cannot remove those even with console commands (player.removespell 00012fcd for example).

 

Any ideas why?

 

regards

 

 

PS: one version of the million snippets i tryed - i tryed different ways to get it done. The funny thing is: the messageboxes are shown, even if the spells are not removed ... oO

Scriptname StripItems extends ObjectReference
{Removes All Items and Skills from entering Player}

spell property Flames auto
spell property Healing auto

Event OnCellLoad()
	stripHim()
endEvent

function stripHim()
Game.GetPlayer().removeAllItems(abRemoveQuestItems = true)
if (Game.GetPlayer().removeSpell(Flames) == True)
	Debug.MessageBox("Flames removed")
endIf
if (Game.GetPlayer().removeSpell(Healing) == True)
	Debug.MessageBox("Healing removed")
endIf
Debug.MessageBox("You have been striped of all Gear")
endFunction

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...