Shadyfan4500 Posted July 6, 2017 Posted July 6, 2017 The script, as is right now, is this: Scriptname SB_Script_AddPerkSteel extends ObjectReference Perk Property MyPerk = SteelSmithing Auto Event OnPickup(ObjectReference akActivator) Game.GetPlayer().AddPerk(MyPerk) EndEvent I'm having real trouble with this, for some reason. It all makes sense to me so I don't know what's going on.I followed the advice of other posts from people who have the same problem, and they suggested to add it in the form of a property before I use .AddPerk(), and I tried that, but I'm unsure about what I'm doing. The exact error code:Starting 1 compile threads for 1 files...Compiling "SB_Script_AddPerkSteel"...E:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\Scripts\Source\temp\SB_Script_AddPerkSteel.psc(3,23): no viable alternative at input 'SteelSmithing'No output generated for SB_Script_AddPerkSteel, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on SB_Script_AddPerkSteel
Shadyfan4500 Posted July 6, 2017 Author Posted July 6, 2017 I should probably mention that this script is attached to a book. In substitute of that, I think it may be possible that I could use the Quest Alias of the book instead of the book.
Shadyfan4500 Posted July 6, 2017 Author Posted July 6, 2017 Figured it out. Scriptname SB_Script_AddPerkSteel extends ObjectReference Perk Property SB_Script_PerkSteel Auto Event OnRead() Game.GetPlayer().AddPerk(SB_Script_PerkSteel) EndEvent I changed the script to this, kept it on the book, and THEN added a property. Since the code was in the script, I saw the property in the property menu. All it was lacking was a value.
Recommended Posts