Hi folks!
Im not much of a coder (I prefer graphics ), but I got the idea that would change the magic system quite a bit and that in just small script edting (at least I think so )
Ok so I want to edit script that lets player learn spells from a spellbok, so there is a check to see if player has a perk defined by me. The perk will be added to player at mages collage (maybe a quest or something)..
If you have that perk you will learn spell as normal. However if you do not have the perk, you get message: "You do not understand what is written here", you do not learn the spell and spell book is not removed.
I found these 2 scripts:
Scriptname SpellTomeScript extends ActiveMagicEffect
Spell Property SpellLearned Auto
Event OnEffectStart(Actor akTarget, Actor akCaster)
akTarget.AddSpell(SpellLearned)
EndEvent
^this is spell learning script
Scriptname SpellTomeRemoveScript extends ObjectReference
Event OnEquipped(Actor akActor)
If akActor == Game.GetPlayer()
akActor.RemoveItem(SpellTome, 1)
EndIf
EndEvent
book Property SpellTome Auto
^This seems to be a script that removes spellbooks after learning spells.
Could you help me out?