- Registrado
- 21 de Sep, 2024
-Median Reform VoterMy headcanon is that Kier Starmer would be a Nazi collaborator in my modern day TNO timeline, extra funny if I decide that free britain won the civil war, cause I would have him be apart of the fascist resistance.
Sure, there's a few files you need to use.I was messing bit with TNORA code and I would like to ask you Sir Brahmin @Sooty Soot and @GoodWinSon if you could explain to me or point me towards guide how to make super event ?
We'll start with the
common/scripted_guis file TNO_big_event.txtThis is the code that actually controls when the super event appears.
The highlighted country_flag will be how you trigger it, but more on that later.
Take note of the window name field. That's your gui reference which is next.
The .gui file is in
interface/TNO_SG_BigEvent.gui. This controls your super event's appearance. There are actually two containers that make up the gui super event:First off, the name fields need to match the window_name fields in the script .txt file.
The field show_sound is commented out; this is your sound_effect. You can trigger it from here but I like to manually fire it via an effect.
Highlighted in red is the localization keys. This is referencing text in
localisation/english/TNO_BigEvents_l_english.yml. Make sure the title is in all caps.Highlighted in yellow is the super_event image itself. You need to declare this in
interface/TNO_SG_BigEvent.gfx. See below:See that file path? That's where you'll save your picture file. The path needs to be accurate, so make sure everything is named correctly. Here's the picture for this super event:
The standard image size is 574 x 455 pixels. Save it in either the .dds or .tga format. .png might work as well, but I prefer the higher compression of .dds
Finally, you actually want to trigger the news event so the player sees it. You'll use that country_flag from earlier and trigger it through a news event. The trigger is_ai = no makes sure that the ai doesn't see it. It's a waste of computation power to trigger it for the ai.
Now note you don't necessarily have to use the same files. You just need to follow the standard template and formatting. Of course, TNORA uses these files as standard.
If everything goes well you should see your super event!
Última edición: