Results 1 to 6 of 6

Thread: add a faction-based event

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default [solved] add a faction-based event

    how can add an info text (through an event) at the beggining of a campaign (date 1??) that will only appear to specific factions??

    thanks in advance!!
    Last edited by SpyrosM91; October 27, 2012 at 10:53 AM.
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  2. #2

    Default Re: add a faction-based event

    In the campaign_script.txt put:-
    Code:
    monitor_event PreFactionTurnStart FactionIsLocal
    	historic_event xyz_123 factions { england, scotland, ireland, }
    	terminate_monitor
    	end_monitor
    Then for the event which is xyz_123 open the historic_events.txt in the data\text folder and put:-
    Code:
    {XYZ_123_BODY}blah blah blah & more blah blah blah lol
    {XYZ_123_TITLE}Your Title Goes here

  3. #3
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default Re: add a faction-based event

    thanks!!!

    BUT i wrote what you told me and it doesn't appear:

    campaign_script.txt
    Code:
    monitor_event PreFactionTurnStart FactionIsLocal
        historic_event sack_of_constantinople factions { byzantium, england, }
        terminate_monitor
        end_monitor
    and historic_events.txt
    Code:
    {sack_of_constantinople_BODY}\n\n“Everyone in pain, l
    {sack_of_constantinople_TITLE}Sack Of Constantinople
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  4. #4

    Default Re: add a faction-based event

    The historic event should be in capital letters inside the {} brackets.
    Code:
    {SACK_OF_CONSTANTINOPLE_BODY}\n\n“Everyone in pain, l
    {SACK_OF_CONSTANTINOPLE_TITLE}Sack Of Constantinople
    Try now.

  5. #5
    SpyrosM91's Avatar Despotes
    Join Date
    Aug 2010
    Location
    Patras, Greece
    Posts
    3,675

    Default Re: add a faction-based event

    ohhh....i didn't notice that it should be with capitals....

    thanks!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Proud Tsardoms Total War: Historian - Coder - Scripter - Mapper

  6. #6

Posting Permissions

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