Page 5 of 6 FirstFirst 123456 LastLast
Results 81 to 100 of 107

Thread: How To Add New Historic Events

  1. #81
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How To Add New Historic Events

    Calling of a crusade can only be initially delayed.
    Calling of a jihaad can be influenced by setting the minimum piety level of an imam

    Other then that you can only edit the relevant text.










  2. #82
    bphl98's Avatar Libertus
    Join Date
    Apr 2018
    Location
    Barad-dûr, Mordor
    Posts
    64

    Default Re: How To Add New Historic Events

    Quote Originally Posted by Gigantus View Post
    Calling of a crusade can only be initially delayed.
    Calling of a jihaad can be influenced by setting the minimum piety level of an imam

    Other then that you can only edit the relevant text.
    can i edit jihad image or video ?
    Maybe I am the fire that burn you, but my light will drive way the shadow that haunted the road that you take

  3. #83
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How To Add New Historic Events

    There should be no problem replacing\editing existing event pictures and\or videos. Bear in mind that changes require a mod set up (file_first setting) to be effective.










  4. #84
    bphl98's Avatar Libertus
    Join Date
    Apr 2018
    Location
    Barad-dûr, Mordor
    Posts
    64

    Default Re: How To Add New Historic Events

    what file should i edit to change jihad and crusade ?
    Maybe I am the fire that burn you, but my light will drive way the shadow that haunted the road that you take

  5. #85
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How To Add New Historic Events

    I am afraid I can't give the exact names of the files and movies as I am not at my machine, but if memory serves then the text will be in the data\text folder: the files have event in the name (not historic_events), one for the body text and one for the title. Search inside them for crusade and jihad.
    The movie names should be self explanatory, I think they are in the fmv\events folder










  6. #86
    bphl98's Avatar Libertus
    Join Date
    Apr 2018
    Location
    Barad-dûr, Mordor
    Posts
    64

    Default Re: How To Add New Historic Events

    Quote Originally Posted by Gigantus View Post
    I am afraid I can't give the exact names of the files and movies as I am not at my machine, but if memory serves then the text will be in the data\text folder: the files have event in the name (not historic_events), one for the body text and one for the title. Search inside them for crusade and jihad.
    The movie names should be self explanatory, I think they are in the fmv\events folder
    thank gigantus i hope when you back home you can give me advice how to add jihad movie from kongdom campaign to vanilla medieval 2
    Maybe I am the fire that burn you, but my light will drive way the shadow that haunted the road that you take

  7. #87
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    8,488

    Default Re: How To Add New Historic Events

    Quote Originally Posted by Gigantus View Post
    The example:

    historic_event mynewevent faction\moviename.bik


    Some explanation:

    historic_event = your regular script command to trigger an event message
    mynewevent = the name of your regular historic event, nothing new here
    faction\ = the path to your movie, the path starts in the fmv folder
    moviename.bik = the name of your movie and the file extension of the movie (movie has to be in BIK format)

    By adding a movie to the command you automatically replace the regular picture with the movie.
    Is there a possibility to make a reference to a .tga picture, not to a movie?
    I've got a set of events, I want to use just one picture for all of them, and I want to save space (200 KB instead of 20x200 KB)

  8. #88
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How To Add New Historic Events

    Pictures are linked to an event through their name, they are located in a sub folder of data\ui and only one picture will ever be used for the same event.

    You will have to solve your problem by repeating your script for multiple events, eg use the same HE for multiple events. If you intend to use different text then you are out of options.

    Could you give more details like a script sample and summary of the conditions that need to be met to trigger the HE?










  9. #89
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    8,488

    Default Re: How To Add New Historic Events

    Thanks, Gigantus. I just wanted save the space - I've got multiple simple information windows, they're not in the script but simply in the descr_events.
    So actually you can save the space if you use the movie file (.bik) as it can be used by many entries in the descr_events and script, but for the pics you need to have one-per-one?
    Mod leader of the SSHIP: traits, ancillaries, scripts, buildings, geography, economy.
    ..............................................................................................................................................................................
    If you want to play a historical mod in the medieval setting the best are:
    Stainless Steel Historical Improvement Project and Broken Crescent.
    Recently, Tsardoms and TGC look also very good. Read my opinions on the other mods here.
    ..............................................................................................................................................................................
    Reviews of the mods (all made in 2018): SSHIP, Wrath of the Norsemen, Broken Crescent.
    Follow home rules for playing a game without exploiting the M2TW engine deficiencies.
    Hints for Medieval 2 moders: forts, merchants, AT-NGB bug, trade fleets.
    Thrones of Britannia: review, opinion on the battles, ideas for modding. Shieldwall is promising!
    Dominant strategy in Rome2, Attila, ToB and Troy: “Sniping groups of armies”. Still there, alas!

  10. #90
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How To Add New Historic Events

    That is correct, movies are referred to via the path, whereas pics are automatically associated by the name of the event.

    Which means you can use different events with different text and use a single movie for all of them.










  11. #91
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: How To Add New Historic Events

    If you don't create an image matching the name of your HE then the game will show the one named "historic_event.tga" by default. The reading monk one.

    So what you could do is replace that "historic_event.tga" with the image you want to use for all of those HEs you're talking about, and don't create images for them. Of course that means that ANY HE which does not have an image (e.g. by mistake, or intentionally so that it shows the monk) will now show your custom made "historic_event.tga" instead.

  12. #92
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    8,488

    Default Re: How To Add New Historic Events

    Thanks, guys, that's clear to me now! I actually like that reading monk and it's quite atmospheric for the information windows ;-)

    Summing up:
    - if you want to use the same pic for several events, you have to copy the same pic several times and name it after the event,
    - you may replace the default pic "historic_event.tga" but it will be shown for any event without pic attached,
    - you may use one movie file (.bik) for many events.

  13. #93
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How To Add New Historic Events











  14. #94
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    8,488

    Default Re: How To Add New Historic Events

    Is it possible to make the historic even visible to only certain factions?
    eg.:

    [code] monitor_event GeneralCaptureSettlement SettlementName Lubeck
    and FactionReligion catholic
    and FactionType poland

    change_settlement_name Lubeck Lubeka


    if not IsFactionAIControlled
    historic_event SETTLEMENT_NAME_CHANGE { hre, denmark, poland, }
    end_if


    end_monitor
    [/QUOTE]

  15. #95
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How To Add New Historic Events

    That is exactly the way to do it. It's the faction definition at the end of the line that restricts the display to those factions.










  16. #96
    Jurand of Cracow's Avatar History and gameplay!
    Join Date
    Oct 2012
    Location
    Cracovia
    Posts
    8,488

    Default Re: How To Add New Historic Events

    Thanks, Gig!
    do you happen to know if it's possible to use also cultures and religions?
    - historic_event SETTLEMENT_NAME_CHANGE { catholic, }
    - historic_event SETTLEMENT_NAME_CHANGE { middle_eastern, }

  17. #97
    Gigantus's Avatar I am not special - I am a limited edition.
    Patrician took an arrow to the knee spy of the council

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    53,125
    Blog Entries
    35

    Default Re: How To Add New Historic Events

    I gave it a spin as I never tried it before and got the following: regardless if it was the religion of the faction I was playing I ended up with the historic event in a movie window. Nothing in the log.

    Same with cultures. It would seem that the game interprets non faction entries as a prelude to the movie 'add on' of the code and hence uses the movie display style, example for full code:
    Code:
    historic_event [event name] factions { [faction name], } [fmv directory]\[movie name].bik
    Last edited by Gigantus; October 19, 2020 at 12:28 PM.










  18. #98

    Default Re: How To Add New Historic Events

    Regarding descr_events;
    event historic ENGLISH_ARCHERS
    date 50 70
    Does the 50 70 mean that the event can take place between 50 & 70, or does it mean that the the event will be limited (in this case English Archers) between 50 & 70. So they are only available between 50 and 70. After 70 it stops.

    Thanks.
    Sig made by me, content from Broken Crescent.

  19. #99
    Jadli's Avatar The Fallen God
    Gaming Emeritus

    Join Date
    Dec 2013
    Location
    Czech Republic
    Posts
    8,528

    Default Re: How To Add New Historic Events

    It means it will happen at random date between 50 and 70 (and will be true forevermore)

  20. #100
    Laetus
    Join Date
    Dec 2022
    Location
    The Dark Lord's Domain
    Posts
    1

    Default Re: How To Add New Historic Events

    For some reason, the event doesn't show up until the second turn, even when I put it at turn 1. Is this just how it works, or am I doing something wrong?

Page 5 of 6 FirstFirst 123456 LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •