Jump to content

Common functions aren't working (Papyrus)


Guest

Recommended Posts

Posted

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?

Posted

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()

 

Posted

IsPluginInstalled is an SKSE function. You need to run the SKSE installer again after installing the CK because it overwrites the source scripts with the vanilla ones.

Posted

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

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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