Jump to content
Age of History Games
gaboemi

Help with a trigger for events

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Similar Content

    • By Chairman Baad
      If you've seen or created an event before, you'd understand the various issues behind the event text. Why can I only see part of the text in the event creator? Why did the description I just wrote get deleted when I added a trigger? Why are all the events in a different language? For many mods, these issues are common in scenarios with events. Luckily, there's a better way to display event text: event localization! Inspired by the system in Hearts of Iron IV, and originally demonstrated in The Chairman Baad Collection (rest in lack of content and peace) before being used in Norrvägen and The Second Great War, event localization alleviates all of the issues present with the standard way of event writing.
      So how do you use event localization?
      Event localization is a process that's simple for even a first-time modder.
      Go into your AoH2 directory, go to game/languages/, and open Bundle.properties. (the English language file for AoH2) Write your event's title, description (if you plan to add one), and outcomes under a tag for each piece of text. Be careful not to use the same tag for more than one event.
      Here's an example with the Turkish defensive pact event from TCBC. In this example, _t corresponds to _title, _d is for _description, and _o1 and _o2 are for _outcome1 and _outcome2 respectively. Replace each tag and description with your own, and make sure to save your changes! tur_azeripactexp_t = Defensive Pact with Azerbaijan Expiring tur_azeripactexp_d = Our agreement for mutual security with Azerbaijan is set to expire on the 16th of August. However, we have the option to renew the agreement and extend it until 2030. The only catch: both parties must agree to a renewal. What should we do? tur_azeripactexp_o1 = Appeal for a renewal. tur_azeripactexp_o2 = Let it expire.        3. In the AoH2 event creator, instead of writing your event text like you normally would, write the tags corresponding to the ones you added in
                 Bundle.properties.
      And that's it! You've just set up an event using event localization! During gameplay, if your event pops up and you see the event tags instead of your text, go into the settings and reselect your game language. This reloads the Bundle files so that your text will appear the next time you see the event.
      Now how does this solve the issues with normal event text?
      Let's go over that, shall we?
      Why can I only see part of the text in the event creator? By writing your event text in Bundle.properties, you are relieving yourself of this issue by using a text editor instead of the event creator. Unlike the event creator which doesn't let you scroll through your text, a text editor will let you see your text in full, allowing for longer descriptions and clear writing.
      Why did the description I just wrote get deleted when I added a trigger? It is frustrating to spend a few minutes writing an event description only to lose it upon adding a new trigger. But with event localization, you don't have to spend another few minutes retyping your description from the beginning. The next time you lose your description, you can simply retype the description's tag rather than the description itself, saving you some precious time in the event creator.
      Why are all the events in a different language? Ah yes, the classic "events only support one language" issue. This is probably the biggest advantage of using event localization: events can support multiple languages! Let's say that you want your event to support Turkish and English. By writing your English event text in Bundle.properties and your Turkish text in Bundle_tr.properties, players will see the event text in the correct language whether they're playing in English or Turkish. No more confusion or duplicate scenarios for each language!
      Now that you know the steps and advantages of using event localization, I hope you consider using it the next time you add events to a mod or scenario!
    • By CrisC123z
      The map is in process, It starts from 500 BC to the modern age of 2021 but I have only finished it until 300 BC
      If you want to support me in this Map write me
      if you want to play it
      Game speed to minimum
      aggressiveness of the game to a minimum
      and choose Greece or Macedonia
      If you use this Map on video or publish it elsewhere, please leave credits.
      The scenario is in Spanish, if you want to translate please write to me

      1618790538190ljqsoelc.rar
    • By comepedra
      I’m sorry, I’m not good at creating maps, it’s for a mod I’m developing


      (Another map without provinces to make it easier to understand)
    • By Emperor Zhang Zhongchang
      So I've seen a Cold War mod that changed the "Holy Roman Empire" name into "United Nations", does anyone here know how to do it ? because it would be very interesting if I could change the "Holy Roman Empire" name to "Mitteleuropa" in my kaiserreich mod.
       
      Edit : nvm, i found it lol.
    • By ivr17
      Developement progress: vse normalno
      Addon - is a mod that develops the idea of original game many times, without changing its basic principle.
      FEATURES:
      ~60 new detalized historical scenarios for each period of human statehood; Sattelite map to choose from; A huge number of new formable states; A large number of new provinces (Including Antarctica); Many new cities; Over 1000 new states; 7 new harmoniously fitting types of goverments; New aesthetic fonts; Russian and English language support; Events; Other stuff. More news and information in our group
      Full release is planned in first half of 2021 year













  • Popular Now

  • Our picks

  • Tell a friend

    Love Age of History Games? Tell a friend!

  • Posts

×
×
  • Create New...