Jump to content

A bit of the "hello world" tutorial I don't understand


Recommended Posts

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!")
EndEvent

The 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

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 by shavkacagarikia
Link to comment
Share on other sites

  • Recently Browsing   0 members

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