Jump to content

Compiler acting up


Recommended Posts

I compiled this script a few days ago just fine. Mod was released and all is fine. Until I want to update the script to deal with a bug that was found.

Scriptname ATaAH_Quest_Script extends Quest

GlobalVariable Property ATaAH_GlobalVariable Auto
Perk Property ATaAH_Perk Auto

Event OnInit()
	RegisterForRemoteEvent(Game.getplayer(),"OnGetUp")
	Game.getplayer().addperk(ATaAH_Perk)
endevent

Event Actor.OnGetUp(Actor akSender, ObjectReference akFurniture)
	If (akFurniture.getbaseobject() is Terminal)
		Game.GetPlayer().SetScale(ATaAH_GlobalVariable.getvalue())
	endif
endEvent

I cant compile it anymore. This is the exact same script from the mod that was released and it works perfectly.

 

But now when I try to compile the script I get this message:

 

Papyrus Compiler Version 2.8.0.4 for Fallout 4
Copyright © ZeniMax Media. All rights reserved.
Starting 1 compile threads for 1 files...
Compiling "ATaAH_Quest_Script.psc"...
H:\SteamLibrary\steamapps\common\Fallout 4\Data\Scripts\Source\User\ATaAH_Quest_Script.psc(4,14): cannot name a variable or property the same as a known type or script
H:\SteamLibrary\steamapps\common\Fallout 4\Data\Scripts\Source\User\ATaAH_Quest_Script.psc(8,26): ATaAH_Perk is not a variable
No output generated for ATaAH_Quest_Script.psc, compilation failed.
Batch compile of 1 files finished. 0 succeeded, 1 failed.
Failed on ATaAH_Quest_Script.psc
Any ideas why? I looked up the error message but the explanations did not seem relevant.
Link to comment
Share on other sites

  • Recently Browsing   0 members

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