Jump to content

Would it be possible to do this through a script


Deleted28154640User

Recommended Posts

Hiya all

 

I've just had an idea to add spell tomes to the player from the levelled list (very much like in my mod) but I was wondering if its possible to only add spells the player doesn't know while still keeping the mod open to other spell mods.

 

Scriptname ZZZ_Spawnspelltomescript extends activemagiceffect
LeveledItem Property SpelltomeRef Auto
Int Property GreaterThanInt Auto
Event OnInit()
Int i = Game.GetPlayer().GetAV("conjuration") As Int
If i > GreaterThanInt
Game.GetPlayer().Additem(SpelltomeRef, 1)
Debug.MessageBox("You research a new spell")
Else
Debug.MessageBox("Your research has yielded no results")
EndIf
EndEvent

this is my base script I'm working with
Any help is greatly appreciated :)
Link to comment
Share on other sites

  • Recently Browsing   0 members

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