SCRIPT TEXT:
Scriptname SkillBump extends activemagiceffect
TGPrePurchaseScript Property TGPreRef auto
Function SetActorValue(string asValueName, float afValue) native
Event OnEffectStart(Actor akTarget, Actor akCaster)
if TGPreRef.PotionDrunk == 0
Debug.MessageBox("Although the bottle is cold, the liquid sears your throat. A fountain seems to open up inside your brain.")
Game.IncrementSkillBy("Smithing", Advancement)
Game.IncrementSkillBy("HeavyArmor", Advancement)
Game.IncrementSkillBy("Block", Advancement)
Game.IncrementSkillBy("TwoHanded", Advancement)
Game.IncrementSkillBy("OneHanded", Advancement)
Game.IncrementSkillBy("Marksman", Advancement)
Game.IncrementSkillBy("LightArmor", Advancement)
Game.IncrementSkillBy("Sneak", Advancement)
Game.IncrementSkillBy("Lockpicking", Advancement)
Game.IncrementSkillBy("Pickpocket", Advancement)
Game.IncrementSkillBy("Speechcraft", Advancement)
Game.IncrementSkillBy("Alchemy", Advancement)
Game.IncrementSkillBy("Illusion", Advancement)
Game.IncrementSkillBy("Conjuration", Advancement)
Game.IncrementSkillBy("Destruction", Advancement)
Game.IncrementSkillBy("Restoration", Advancement)
Game.IncrementSkillBy("Alteration", Advancement)
Game.IncrementSkillBy("Enchanting", Advancement)
TGPreRef.PotionDrunk = 1
elseif TGPreRef.PotionDrunk == 1
Debug.MessageBox("This potion no longer seems to do anything")
endif
EndEvent
I know very little about scripting, I have probably butchered it here. The error says:
Starting 1 compile threads for 1 files...
Compiling "SkillBump"...
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(10,36): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(10,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(11,38): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(11,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(12,33): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(12,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(13,37): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(13,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(14,37): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(14,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(15,36): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(15,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(16,38): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(16,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(17,33): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(17,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(18,39): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(18,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(19,38): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(19,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(20,39): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(20,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(21,35): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(21,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(22,36): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(22,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(23,39): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(23,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(24,39): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(24,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(25,39): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(25,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(26,38): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(26,7): type mismatch on parameter 2 (did you forget a cast?)
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(27,38): variable Advancement is undefined
h:\games\skyrim\steamapps\common\skyrim\Data\Scripts\Source\temp\SkillBump.psc(27,7): type mismatch on parameter 2 (did you forget a cast?)
No output generated for SkillBump, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on SkillBump