I have a small idea to add functionality to the in game alchemy recipes. I want the player when reading a alchemy recipe and other material to learn the alchemical effects described. I thought this would be an easy project, but unfortunately I have no programming experience. I've read the online tutorials and thought this would be a simple straight forward project, but I don't understand what I'm doing wrong here.
This is the script I have attached to recipedamagehealth2:
Scriptname damagehealth2teacher extends ObjectReference
{Teaches damge health ingedient effects for skeever tail and small antlers}
Event OnRead()
SkeeverTail.LearnEffect(2)
AntlersSmall.LearnEffect(3)
endEvent
When I save I get this error message
Starting 1 compile threads for 1 files...
Compiling "damagehealth2teacher"...
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\damagehealth2teacher.psc(5,1): variable SkeeverTail is undefined
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\damagehealth2teacher.psc(5,13): none is not a known user-defined type
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\damagehealth2teacher.psc(6,1): variable AntlersSmall is undefined
C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\damagehealth2teacher.psc(6,14): none is not a known user-defined type
No output generated for damagehealth2teacher, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on damagehealth2teacher
I don't understand what I am doing wrong. Some please point me in the right direction.
Thanks!