Jump to content

Creating a tutorial message that displays when the map is opened


Badbonez

Recommended Posts

I am an absolute beginner with the CK and while I have some programming experience, I have not written any scripts for FO4.

 

Before I begin the process of tutorials and such, I would like to know if what I want to do is possible. I want to display a Tutorial message that says "Remember: Do Not Fast Travel to Diamond City" each time I bring up the map. Is this possible? (I have a lot of mods, and inevitably one will prevent me from fast traveling there.)

 

If it's possible please let me know and I jump down that rabbit hole.

 

Thanks.

Link to comment
Share on other sites

Yes, it's possible. You can use a Message instead of the debug notification.

Scriptname YOURSCRIPTNAME extends Quest Const

Message Property MyMessage Auto Const        ;only necessary if you use a message


Event OnQuestInit()

	RegisterForTutorialEvent("OnEnterPipBoyMapPage")

EndEvent

Event OnTutorialEvent(String asEventName, Message aMessage)

        ;*** when the event is sent, the script unregisters automatically.
	If asEventName == "OnEnterPipBoyMapPage"

		Debug.Notification("Remember: Do Not Fast Travel to Diamond City")

               ;*** If you use a message
               MyMessage.Show()  

	EndIf

EndEvent

Edited by LarannKiar
Link to comment
Share on other sites

 

Yes, it's possible. You can use a Message instead of the debug notification.

Scriptname YOURSCRIPTNAME extends Quest Const

Message Property MyMessage Auto Const        ;only necessary if you use a message


Event OnQuestInit()

	RegisterForTutorialEvent("OnEnterPipBoyMapPage")

EndEvent

Event OnTutorialEvent(String asEventName, Message aMessage)

        ;*** when the event is sent, the script unregisters automatically.
	If asEventName == "OnEnterPipBoyMapPage"

		Debug.Notification("Remember: Do Not Fast Travel to Diamond City")

               ;*** If you use a message
               MyMessage.Show()  

	EndIf

EndEvent

 

Thank you for that information! Very helpful. Just one question, what's the difference between a Message and Debug notification? Which one displays in the tutorial message box? (I ask because I use FallUI and that box is positioned where I'd see the message best. Thank you for the information.

Edited by Badbonez
Link to comment
Share on other sites

  • Recently Browsing   0 members

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