Jump to content

Common functions aren't working (Papyrus)


Recommended Posts

Things like Game.IsPluginInstalled or GetName don't exsist. Yes I extracted the rar source correctly. Yes I am testing with working syntax, even from other mods. And, yes other functions, such as SexLab Util functions work fine... What am I missing?

Link to comment

https://www.creationkit.com/fallout4/index.php?title=IsPluginInstalled_-_Game

https://www.creationkit.com/index.php?title=GetName_-_Form

 

 

You can use this

 

if MAIN.INTEGRATIONS.GetDDStatus() == "Installed"
	oidbIntegrationADD = AddToggleOption("Devious Devices", MAIN.INTEGRATIONS.bIntegrationADD)
else
	MAIN.INTEGRATIONS.bIntegrationADD = FALSE
endif

string function GetDDStatus()
	int index = Game.GetModByName("Devious Devices - Integration.esm")
	if index == 255 || index == -1
		return "Not Installed"
	else
		return "Installed"
	endif
endfunction

 

Actor Property ActorRef auto hidden
ActorRef.GetLeveledActorBase().GetName()

 

Edited by Swe-DivX
Link to comment

Just a small advise here.

 

When checking for mods check for 255 and for -1.

I had this problem on LE a ton of times and I was never able to fully understand why in some cases I was getting a number and in some cases another number.

 

if index == 255 || index == -1
Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use