d4em Posted March 26 Share Posted March 26 I test my script. I do if DrumlinQuest.IsCompleted() Debug.Messagebox("Drumlin quest completed") TrudyController.Disable() WolfgangController.Enable() endIf This works. I get a messagebox and the right stuff is dis/enabled. Then I try to do if DrumlinQuest.IsCompleted() if DrumlinQuest.GetStageDone(1000) Debug.Messagebox("Trudy killed") TrudyController.Disable() WolfgangController.Enable() endIf endIf and despite the messagebox appearing and the lines of code being exactly equal nothing en/disables this is cursed. How to exorcise papyrus and make it behave like a scripting language? Link to comment Share on other sites More sharing options...
NeinGaming Posted March 26 Share Posted March 26 are there any error messages in the papyrus log maybe? Link to comment Share on other sites More sharing options...
d4em Posted March 26 Author Share Posted March 26 (edited) So I'm an idiot I cleared the references in a piece of code that wasn't supposed to run Papyrus is still cursed though maybe I should stop scripting in notepad Edited March 26 by d4em Link to comment Share on other sites More sharing options...
SKKmods Posted March 27 Share Posted March 27 With around half a million lines of Papyrus created in Notepad++ published and supported for 5 million unique PC and Xbox users, I can assure you development issues are 99.9% OPERATOR ERROR. Link to comment Share on other sites More sharing options...
d4em Posted March 27 Author Share Posted March 27 (edited) All development issues are 99% operator error. That's why in professional environments they use software like visual studio, to reduce operator error. Example: I want to check if a NPC is dead. I cast an objectreference to an actor and do .IsDead(). The compiler throws no errors. However, the function always returns false. After digging through some 6 yo forums threads you find out that casting an objectref to an actor always returns None for some of the actor fields but not all of them. The compiler does not throw an error, the documentation (uesp which is not even official documentation because Im pretty sure the official documentation doesnt exist or is so unvisited google simply wont show it in search results anymore) doesn't mention it, you cannot read through the source code because it's not in papyrus, and you have no way to run a proper unit test or anything like that. Cursed. Edit: oh, since you're here, I did an edit of your Feral Nights (you probably saw it already). Thanks for making that, I like ur mod Edited March 27 by d4em Link to comment Share on other sites More sharing options...
Recommended Posts