Mod:Create a popup message
Revision as of 04:28, 23 September 2022 by Anabellebel (talk | contribs) (Created page with "This tutorial shows how to create a popup window that appears in the game ''The Sum'' to display a message. file:Message window.jpg|thumb|This tutorial ex...")
This tutorial shows how to create a popup window that appears in the game The Sum to display a message.
Required tools
Create a popup message window
Access the .txt file of the location
Each location has its dialogue file (with an eponymous code name) already imported. It is in Game/NousAurons/locale/ (French version) and Game/core/locale/ (English version). Some of these files are in a folder of the same name to allow to store voices.
Write the message
- Open the two files place_code_name_where_the_message_appears.txt and for each of them:
- Press ctrl+fand search for "// INFORMATIONS"
- Copy/paste the following code:
AJOUT_Message_Arrivee = {<Jc><img:gui/images/Trouver.zar>>}}You found a beautiful pair of shoes! It was anything but planned! You know someone who will be happy to hear that...<C->}
In place of "Trouver.zar" in the message code, you can replace that filename with any .zar image found in the Game/core/gui/image/ folder. If you are unable to view them, install the Red!Viewer program.
- Press
- Go to the Filemenu and thenSave.
Code the message in the Level editor
Open the location file (Level editor)
- Open the folder Game/ then FT Improver.EXE.
- Pass the videos by clicking on them.
- Click on ⦿ MORE.
- Click ⦿ LEVEL EDITOR.
- Navigate to the Filemenu thenOpen.
- Open the file of a location which must end with .mis.
Script the message (advanced)
Coding a message inside the level_editor requires a script. Refer to the Mod:Scripts section for the basics of coding in the Level editor.
Display the message
- Click on the Leveltab.
- Click on the Template:False Button button at the bottom left.
- Click on Template:False Button.
- Add a short description to the script (example: QUEST 1 - Pers1).
- Click Template:False Button again.
- Add a series of conditions of your choice.
- Click on the tab Template:False Button. It will change to ✔ Actions.
- Click on Template:False Button.
- Click on the Template:False Button tab and select Template:False Button. Select the code name of the text to display in the list, as written in the .txt files of the place (example: AJOUT_Message_Arrivee).
- Click on Ok3 times (for each open window).
- Go to the Filemenu and thenSave.