securitywyrm Posted July 5, 2017 Share Posted July 5, 2017 I'm trying to learn scripting, and I don't understand part of the basic "Hello world" tutorial at https://www.creationkit.com/fallout4/index.php?title=Hello_World . I want to understand this so I can do some debug message boxes in a script I'm (trying) to make. The script code is Event OnInit() pHelloWorld.Show() Debug.MessageBox("Hello from a Debug MessageBox!") EndEventThe part I don't understand is the "pHelloWorld.Show()". From what I understand it doesn't do anything because there's nothing in the (), so what does it do? Link to comment Share on other sites More sharing options...
stonefisher Posted July 6, 2017 Share Posted July 6, 2017 The brackets contain parameters. Since it is empty, you are using the default parameters. Link to comment Share on other sites More sharing options...
securitywyrm Posted July 6, 2017 Author Share Posted July 6, 2017 Okay, but then what does it do? As I understand it, the debug message will run on its own. Is the phelloworld.show() affecting the debug message? Link to comment Share on other sites More sharing options...
shavkacagarikia Posted July 6, 2017 Share Posted July 6, 2017 (edited) It means that phelloworld is a property of type message and it has method show() which is called on it to be showed. When you fill phelloworld property with needed message, show () method will show the text which is stored in that particular message form. It's display visual is the same as debug messages, but you have more control with message form. Edited July 6, 2017 by shavkacagarikia Link to comment Share on other sites More sharing options...
Recommended Posts