Jump to content

Papyrus is cursed


Recommended Posts

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

Posted (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 by d4em
Link to comment
Share on other sites

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

Posted (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 by d4em
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...