d4em Posted May 27, 2012 Share Posted May 27, 2012 Hi all :) After breaking my head over this script for 5 hours (quite frankly, it would have taken me 5 minutes in boo, but bethesda just had to change the language, not ranting at all here) I am giving up and hoping someone here can help me.The compiler error reads Starting 1 compile threads for 1 files...Compiling "fpVFClawPedestalScript"...steam\steamapps\common\skyrim\Data\Scripts\Source\fpVFClawPedestalScript.psc(5,5): missing FUNCTION at 'EnabledVar'steam\steamapps\common\skyrim\Data\Scripts\Source\fpVFClawPedestalScript.psc(5,15): mismatched input '\\r\\n' expecting LPARENsteam\steamapps\common\skyrim\Data\Scripts\Source\fpVFClawPedestalScript.psc(0,0): error while attempting to read script fpVFClawPedestalScript: De objectverwijzing is niet op een exemplaar van een object ingesteld.No output generated for fpVFClawPedestalScript, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on fpVFClawPedestalScript And this is the script Scriptname fpVFClawPedestalScript extends ObjectReference ObjectReference Property StaticClawVar Auto MiscObject Property InventoryClawVar Bool EnabledVar Event OnActivate if (Game.GetPlayer().GetItemCount(InventoryClawVar) > 0) && EnabledVar == false Game.GetPlayer().RemoveItem(InventoryClawVar, 1) StaticClawVar.Enable() EnabledVar = true elseif (Game.GetPlayer().GetItemCount(InventoryClawVar) == 0 && EnabledVar == false Debug.Notification("You lack the required claw.") elseif EnabledVar == true Game.GetPlayer().AddItem(InventoryClawVar, 1) StaticClawVar.Disable() EnabledVar = false endif EndEvent I really have no idea what the debug means - I have a vague idea that it isn't reading my bool properly, but that's as far as I am getting here, and I am feeling a bit dumber with every second I am trying to fix this.Please please help o.o Thanks for reading Link to comment Share on other sites More sharing options...
mojodajojo Posted May 27, 2012 Share Posted May 27, 2012 I would guess. ObjectReference Property StaticClawVar AutoMiscObject Property InventoryClawVar AutoBool Property EnabledVar Auto I'm no whiz with Papyrus but I find when it's griping at me it's usually how I called the properties. Edit: Also, you might need like. Event OnActivate(ObjectReference Whateveryourthingbeingactivatediscalledhere) Link to comment Share on other sites More sharing options...
d4em Posted May 27, 2012 Author Share Posted May 27, 2012 (edited) Setting the variables as you suggested fixed one error (thnx, kudo'd) but 2 still remain, respectively steam\steamapps\common\skyrim\Data\Scripts\Source\fpVFClawPedestalScript.psc(7,16): mismatched input '\\r\\n' expecting LPARENsteam\steamapps\common\skyrim\Data\Scripts\Source\fpVFClawPedestalScript.psc(0,0): error while attempting to read script fpVFClawPedestalScript: De objectverwijzing is niet op een exemplaar van een object ingesteld. btw, the last line translates to The object reference isn't set to an object, I have no idea why it gives me that error in dutch, and I am even more oblivious as to what it means.Going to finish my coffee and continue my google search EDIT - Fixed these two errors (made a simple syntax mistake - there probably was to much blood in my caffeine while I wrote the code), now there is a new error: fpVFClawPedestalScript.psc(7,0): the parameter types of function onactivate in the empty state on script fpvfclawpedestalscript do not match the parent script objectreferenceYay. Second Edit - I didnt understand your thingy about the OnActivate function earlier, now I do and it fixed the error. You get a free cookie now. Edited May 27, 2012 by FakePersonality Link to comment Share on other sites More sharing options...
mojodajojo Posted May 27, 2012 Share Posted May 27, 2012 Edit: Oh, you fixed it? Good deal happy modding. Link to comment Share on other sites More sharing options...
Recommended Posts