hunterrock Posted July 10, 2017 Share Posted July 10, 2017 Scriptname brutalstartup extends Quest book property bookofguidance auto Function OnInit() Debug.MessageBox("blabla") Game.AddPerkPoints (3) Game.GetPlayer().AddItem(bookofguidance, 1, true) EndFunction Hello, I have no idea what I am doing, this will successefully compile but won't do anything when I start a new game. Essentially when I start the game I was to be able to add 3 perk points, add a book that is in a plugin to the players inventory and display a message. Is there a reason this won't work? Thanks! Link to comment Share on other sites More sharing options...
Di0nysys Posted July 10, 2017 Share Posted July 10, 2017 (edited) Instead of Function/Endfunction the syntax is OnEvent/EndEvent. This will only fire once per game/character. Edited July 10, 2017 by Di0nysys Link to comment Share on other sites More sharing options...
hunterrock Posted July 10, 2017 Author Share Posted July 10, 2017 Thanks bud, Ok so I have changed it, now I have this attached to a quest in CK. Scriptname brutalstartup extends Quest book property bookofguidance auto Event OnQuestInit() Debug.MessageBox("blabla") Game.AddPerkPoints (3) Game.GetPlayer().AddItem(bookofguidance, 1, true)EndEvent But when I run the kmyquest compiler it throws up this error: Init is not a function or does not existNo output generated for QF__02000D62, compilation failed. Anyone have any ideas Thanks in advance! Link to comment Share on other sites More sharing options...
lofgren Posted July 11, 2017 Share Posted July 11, 2017 Don't bother with events or oninit. Just move the three functional lines into a quest stage and mark the stage as the startup stage. Link to comment Share on other sites More sharing options...
TheDungeonDweller Posted July 11, 2017 Share Posted July 11, 2017 And that error occured because OnQuestInit() doesn't exist in Skyrim. That's for Fallout 4. Though Fallout 4 has many nice papyrus things, that Skyrim should have heh.. Link to comment Share on other sites More sharing options...
Recommended Posts