Results 1 to 6 of 6

Thread: Unique unit script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Unique unit script

    Hi, I'm trying to find the script for unique units in the Crusades campaign but for the life of me can't. I remember that it used to be in the campaign_script, however after the patch it seems to have disappeared. Is it now hardcoded? Or was it moved elsewhere?
    "People don't think the universe be like it is, but it do." -- Neil deGrasse Tyson


    In Soviet Russia you want Uncle Sam.

  2. #2

    Default Re: Unique unit script

    post the script here

  3. #3

    Default Re: Unique unit script

    ANYONE? I could really use this script so if anyone knows anything please tell me
    "People don't think the universe be like it is, but it do." -- Neil deGrasse Tyson


    In Soviet Russia you want Uncle Sam.

  4. #4
    alhoon's Avatar Comes Rei Militaris
    Join Date
    Apr 2008
    Location
    Chania, Greece
    Posts
    24,233

    Default Re: Unique unit script

    It's in the crusades campaign.
    alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
    "Angry Uncle Gordon" describes me well.
    _______________________________________________________
    Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
    Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
    Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).

  5. #5

    Default Re: Unique unit script

    Well obviously I meant which file the script is in. Before the 1.5 patch I could swear I saw it in campaign_script.txt, but after that it seems to have disappeared into thin air without a trace... yet the unique units have been fixed. Is it hardcoded now? Or am I just blind or something?
    "People don't think the universe be like it is, but it do." -- Neil deGrasse Tyson


    In Soviet Russia you want Uncle Sam.

  6. #6
    alhoon's Avatar Comes Rei Militaris
    Join Date
    Apr 2008
    Location
    Chania, Greece
    Posts
    24,233

    Default Re: Unique unit script

    Eh? It's in the campaign_script.txt. Let me grab it for you.

    Remember to add the event requirements to the EDB

    Spoiler Alert, click show to read: 

    ;------------------- RECRUITMENT - UNIQUE UNITS -------------------;
    ;Only one unique unit can exist at a time
    ;Jerusalem
    ;Marshall of the Templars
    ;Constable of Jerusalem

    ;Antioch
    ;Marshall of the Hospitallers
    ;Canons of the Holy Sepulcher
    ;Test if the unit doesn't exist at start of turn
    ;Increment event counter - allows recruitment

    set_event_counter no_templar_marshall 0
    set_event_counter no_jerusalem_constable 0
    set_event_counter no_hospitaller_marshall 0
    set_event_counter no_canon_sepluchre 0

    monitor_event FactionTurnStart FactionType jerusalem
    and I_EventCounter no_templar_marshall == 0
    and not I_UnitExists jerusalem Marshall of the Templars
    add_events
    event counter no_templar_marshall
    date 0
    end_add_events
    end_monitor
    monitor_event FactionTurnStart FactionType jerusalem
    and I_EventCounter no_jerusalem_constable == 0
    and not I_UnitExists jerusalem Constable of Jerusalem
    add_events
    event counter no_jerusalem_constable
    date 0
    end_add_events
    end_monitor
    monitor_event FactionTurnStart FactionType antioch
    and I_EventCounter no_hospitaller_marshall == 0
    and not I_UnitExists antioch Marshall of the Hospitallers
    add_events
    event counter no_hospitaller_marshall
    date 0
    end_add_events
    end_monitor
    monitor_event FactionTurnStart FactionType antioch
    and I_EventCounter no_canon_sepluchre == 0
    and not I_UnitExists antioch Canons of the Holy Sepulcher
    add_events
    event counter no_canon_sepluchre
    date 0
    end_add_events
    end_monitor
    ;Test if the unit exists at start of turn
    ;Decrement event counter - stops recruitment

    monitor_event AddedToTrainingQueue UnitType Marshall of the Templars
    and I_EventCounter no_templar_marshall == 1
    set_event_counter no_templar_marshall 0
    end_monitor
    monitor_event AddedToTrainingQueue UnitType Constable of Jerusalem
    and I_EventCounter no_jerusalem_constable == 1
    set_event_counter no_jerusalem_constable 0
    end_monitor
    monitor_event AddedToTrainingQueue UnitType Marshall of the Hospitallers
    and I_EventCounter no_hospitaller_marshall == 1
    set_event_counter no_hospitaller_marshall 0
    end_monitor

    monitor_event AddedToTrainingQueue UnitType Canons of the Holy Sepulcher
    and I_EventCounter no_canon_sepluchre == 1
    set_event_counter no_canon_sepluchre 0
    end_monitor

    alhoon is not a member of the infamous Hoons: a (fictional) nazi-sympathizer KKK clan. Of course, no Hoon would openly admit affiliation to the uninitiated.
    "Angry Uncle Gordon" describes me well.
    _______________________________________________________
    Beta-tester for Darthmod Empire, the default modification for Empire Total War that does not ask for your money behind patreon.
    Developer of Causa Belli submod for Darthmod, headed by Hammeredalways and a ton of other people.
    Developer of LtC: Random maps submod for Lands to Conquer (that brings a multitude of random maps and other features).

Posting Permissions

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