Steak514 Posted May 24, 2016 Share Posted May 24, 2016 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. Link to comment Share on other sites More sharing options...
Reneer Posted May 24, 2016 Share Posted May 24, 2016 The problem is that the Fallout 4 CK does not compile Papyrus scripts with the Debug flag, but with the Release flag. That means that debug functions (like debug.Messagebox) won't work. You will either need to change how the CK compiles your Papyrus scripts or use the Message.Show() system instead. Link to comment Share on other sites More sharing options...
Recommended Posts