Plarux Posted August 21, 2018 Share Posted August 21, 2018 As the title says, papyrus has a weird directory that is making my scripts unable to compile. I'm relatively new to scripting, but I'm pretty certain my issue involves where papyrus/creation kit is trying to pull my scripts from. That being said, here is what shows up in the creation kit when I try to compile this basic script (attached to an activator) to activate a light on and off using an xmarker: Scriptname X00LanternToggleArmor1 extends ObjectReference ObjectReference Property x00LanternLightMarkerArmor Auto Event OnActivate(ObjectReference akActionRef)If (x00LanternLightMarkerArmor.IsEnabled0)x00LanternLightMarkerArmor.disable0Elsex00LanternLightMarkerArmor.enable0EndIfEndEvent Papyrus Compiler Version 2.8.0.4 for Fallout 4Copyright © ZeniMax Media. All rights reserved.Starting 1 compile threads for 1 files...Compiling "X00LanternToggleArmor1"...C:\Users\Plaru\AppData\Local\Temp\PapyrusTemp\X00LanternToggleArmor1.psc(6,32): IsEnabled0 is not a property on script objectreference or one of its parentsC:\Users\Plaru\AppData\Local\Temp\PapyrusTemp\X00LanternToggleArmor1.psc(7,29): disable0 is not a property on script objectreference or one of its parentsC:\Users\Plaru\AppData\Local\Temp\PapyrusTemp\X00LanternToggleArmor1.psc(9,29): enable0 is not a property on script objectreference or one of its parentsNo output generated for X00LanternToggleArmor1, compilation failed. Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on X00LanternToggleArmor1 The directory should be in my Fallout 4 folder or it's Data folder right?When I try to find the "AppData" folder, nothing shows up.I would appreciate if someone could explain how to fix this issue. Thank you, Plarux Link to comment Share on other sites More sharing options...
werr92 Posted August 21, 2018 Share Posted August 21, 2018 (edited) You don't have a problem with directory, it's a temporal location, don't pay attention. AppData can be seen if you set "Show hidden folders" in windows.You do have non-working code, though. There're NULLs instead of brackets. IsEnabled0 -> IsEnabled(), disable0 -> disable(), enable0 -> enable() Edited August 21, 2018 by werr92 Link to comment Share on other sites More sharing options...
Plarux Posted August 21, 2018 Author Share Posted August 21, 2018 (edited) You don't have a problem with directory, it's a temporal location, don't pay attention. AppData can be seen if you set "Show hidden folders" in windows.You do have non-working code, though. There're NULLs instead of brackets. IsEnabled0 -> IsEnabled(), disable0 -> disable(), enable0 -> enable() Okay, so the script should look like: Scriptname X00LanternToggleArmor1 extends ObjectReference ObjectReference Property x00LanternLightMarkerArmor Auto Event OnActivate(ObjectReference akActionRef)If (x00LanternLightMarkerArmor.IsEnabled())x00LanternLightMarkerArmor.disable()Elsex00LanternLightMarkerArmor.enable()EndIfEndEvent Is this right?Thank you for replying btw! Edited August 21, 2018 by Plarux Link to comment Share on other sites More sharing options...
Evangela Posted August 22, 2018 Share Posted August 22, 2018 While not totally necessary, you may want to use !object.IsDisabled() instead, since isEnabled() inverts isDisabled(). Link to comment Share on other sites More sharing options...
Recommended Posts