Jump to content

Customer Scripts not working despite compiling correctly


Steak514

Recommended Posts

Edit-Title was meant to be Custom Scripts not working despite compiling correctly. Nothing to do with customer lol.

 

I've been trying to do a simple hello world script in Fallout4 but am having issues. The code I write is-

 

Scriptname Zagros:SWSZIHellowWorld extends ObjectReference
Event OnActivate(ObjectReference akActionRef)
debug.MessageBox("Hello World.")
EndEvent
I tried attaching it to a cigarette vending machine and a sleeping bag. The sleeping bag had a previous script but I removed it on the specific item. So only my script remained. Neither worked. I also tried writing the Event like
Event OnInit() to get to appear without activation. Neither work. I compile the script, save it, then save the mod. Have tried loading a previous save and just typing ~coc testCell.
I had done this exact same tutorial in Skyrim and it worked no problem, now nothing happens despite it compiling and saving without error.
I noticed it saves my scripts in the user folder, do I need to move them to the other folder which holds all the other scripts?
Edited by Steak514
Link to comment
Share on other sites

Same issue. cant even get simple scripts to run on trigger enter. Actually cant even get a setobjectivedisplayed to fire by pushing the quest stage to 10 via console.

 

Edit

 

Moved scripts to other folders. Still nothing.

Edited by shad0w316
Link to comment
Share on other sites

Got to play around a bit tonight.

 

 

Getting a store for class error in papyrus logs when trying to set the stage on the quest. AS I expected the game cant find the perfectly created script that is in the exact place it needs to be.

 

As for running into triggers same issue.

 

Ahh I love Beta.

Edited by shad0w316
Link to comment
Share on other sites

Reinstalled CK, Re started mod, working now.

 

Noticed that fallout was unchecking my mod from the load order on every game load as well. Double check that.

 

Also,

 

The beta ck just simply does not generate scripts sometimes.

 

Once you get one to generate they will all follow perfectly.

Edited by shad0w316
Link to comment
Share on other sites

  • Recently Browsing   0 members

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