Deleted7548940User Posted April 30, 2017 Share Posted April 30, 2017 Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © ZeniMax Media. All rights reserved.Starting 1 compile threads for 1 files...Compiling "Fragments:Quests:QF_AAAretrieveudomswatch_01004B31"...C:\Users\danjm\AppData\Local\Temp\PapyrusTemp\Fragments\Quests\QF_AAAretrieveudomswatch_01004B31.psc(26,25): variable caps001 is undefinedNo output generated for Fragments:Quests:QF_AAAretrieveudomswatch_01004B31, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on Fragments:Quests:QF_AAAretrieveudomswatch_01004B31 can someone please explain to me what this means and how I can fix it? this came up after I hit compile in the papyrus script section Link to comment Share on other sites More sharing options...
IsharaMeradin Posted April 30, 2017 Share Posted April 30, 2017 You'll need to post the corresponding script if you want more than a guess. Either post the specific fragment that you are working with or the entire script comprised of all fragments on that quest. With the limited information, I would surmise that you have a variable called caps001 that you have not assigned any value or did not define what type it should be (i.e. int, float, bool, string, miscobject, etc...) FYI - my papyrus knowledge is limited to Skyrim so there may be FO4 specific things that I do not know. Link to comment Share on other sites More sharing options...
werr92 Posted April 30, 2017 Share Posted April 30, 2017 (edited) No, it is just the property caps001 that hasn't been defined. Edited April 30, 2017 by werr92 Link to comment Share on other sites More sharing options...
Deleted7548940User Posted April 30, 2017 Author Share Posted April 30, 2017 how do i define it? Link to comment Share on other sites More sharing options...
Deleted7548940User Posted April 30, 2017 Author Share Posted April 30, 2017 (edited) SetObjectiveDisplayed(1)AAAwatchcontainer.Enable() SetObjectiveCompleted(1)SetObjectiveDisplayed(2) Game.GetPlayer().RemoveItem(AAAwatchobject)Game.GetPlayer().Additem(caps001, 150) Edited April 30, 2017 by Guest Link to comment Share on other sites More sharing options...
scrivener07 Posted April 30, 2017 Share Posted April 30, 2017 Papyrus has functions like these for people like you. http://www.creationkit.com/fallout4/index.php?title=GivePlayerCaps_-_Gamehttp://www.creationkit.com/fallout4/index.php?title=RemovePlayerCaps_-_Gamehttp://www.creationkit.com/fallout4/index.php?title=GetCaps_-_Game ; Give the player 100 caps for a job well done Game.GivePlayerCaps(100) Link to comment Share on other sites More sharing options...
Deleted7548940User Posted April 30, 2017 Author Share Posted April 30, 2017 ok thanks. but the error down below still shows up No output generated for Fragments:Quests:QF_AAAretrieveudomswatch_01004B31, compilation failed. Link to comment Share on other sites More sharing options...
portowulf Posted January 14, 2019 Share Posted January 14, 2019 Game.GetPlayer().RemoveItem(AAAwatchobject)Game.GetPlayer().Additem(caps001, 150) replace Game.GetPlayer().Additem(caps001, 150) with Game.GivePlayerCaps(150) Link to comment Share on other sites More sharing options...
Recommended Posts