Results 1 to 8 of 8

Thread: hordes dont appear

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Stephan's Avatar Campidoctor
    Join Date
    Jun 2008
    Location
    Wien
    Posts
    1,575

    Default hordes dont appear

    i get the warning event but the hordes dont appear
    can someone help me
    heres the script

    descr_events

    Spoiler Alert, click show to read: 
    ;----------------------
    ; monitors

    ;-- Teutonic Order--
    monitor_event EventCounter EventCounterType teutonic_order_invasion_warn
    and EventCounter > 0
    spawn_army
    faction teutonic_order
    character Herrmann, named character, age 38, x 296, y 252, family
    traits Factionleader 1 , StrategyChivalry 2 , BattleChivalry 2 , Intelligent 2 , ReligionStarter 1 , DeceiverVirtue 3 , GoodCommander 4 , GoodAmbusher 2 , RhetoricSkill 1 , Brave 4
    unit NE Bodyguard exp 6 armour 1 weapon_lvl 0
    unit Ritterbruder exp 4 armour 0 weapon_lvl 0
    unit Ritterbruder exp 4 armour 0 weapon_lvl 0
    unit Dismounted Ritterbruder exp 4 armour 0 weapon_lvl 0
    unit Dismounted Ritterbruder exp 4 armour 0 weapon_lvl 0
    unit Prussian Archers exp 2 armour 0 weapon_lvl 0
    unit Prussian Archers exp 2 armour 0 weapon_lvl 0
    unit Order Spearmen exp 2 armour 0 weapon_lvl 0
    unit Order Spearmen exp 2 armour 0 weapon_lvl 0
    end
    spawn_army
    faction teutonic_order
    character Konrad, named character, age 20, x 297, y 252, family
    traits Factionheir 1 , ReligionStarter 1 , LoyaltyStarter 1 , PublicFaith 1 , GoodCommander 1
    unit NE Bodyguard exp 6 armour 1 weapon_lvl 0
    unit Ritterbruder exp 4 armour 0 weapon_lvl 0
    unit Ritterbruder exp 4 armour 0 weapon_lvl 0
    unit Dismounted Ritterbruder exp 4 armour 0 weapon_lvl 0
    unit Dismounted Ritterbruder exp 4 armour 0 weapon_lvl 0
    unit Prussian Archers exp 2 armour 0 weapon_lvl 0
    unit Prussian Archers exp 2 armour 0 weapon_lvl 0
    end
    terminate_monitor
    end_monitor


    campaign_script
    Spoiler Alert, click show to read: 
    ; ------------ CORE GAME EVENT --------------
    event historic timurids_invasion_warn
    date 288 304

    event historic teutonic_order_invasion_warn
    date 2

    Yes, I know that Ishtar is spelled wrong

  2. #2
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: hordes dont appear

    monitor_event EventCounter EventCounterType teutonic_order_invasion_warn
    and EventCounter > 0
    You dont have the EventCounter named...

    monitor_event EventCounter EventCounterType teutonic_order_invasion_warn
    and EventCounter teutonic_order_invasion_warn > 0

  3. #3
    Stephan's Avatar Campidoctor
    Join Date
    Jun 2008
    Location
    Wien
    Posts
    1,575

    Default Re: hordes dont appear

    thx

    Yes, I know that Ishtar is spelled wrong

  4. #4
    Stephan's Avatar Campidoctor
    Join Date
    Jun 2008
    Location
    Wien
    Posts
    1,575

    Default Re: hordes dont appear

    i changed it but it still doesnt work

    Yes, I know that Ishtar is spelled wrong

  5. #5
    Swagger's Avatar Imperial Coffee-Runner
    Join Date
    Apr 2007
    Location
    Portugal
    Posts
    12,453

    Default Re: hordes dont appear

    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  6. #6
    Stephan's Avatar Campidoctor
    Join Date
    Jun 2008
    Location
    Wien
    Posts
    1,575

    Default Re: hordes dont appear

    i looked tru it but it doesnt help me

    Yes, I know that Ishtar is spelled wrong

  7. #7
    GrnEyedDvl's Avatar Liberalism is a Socially Transmitted Disease
    Artifex Technical Staff

    Join Date
    Jan 2007
    Location
    Denver CO
    Posts
    23,851
    Blog Entries
    10

    Default Re: hordes dont appear

    Where is the part of the script that sets the event counter?

  8. #8

    Default Re: hordes dont appear

    Stephan, you were correct the first time. EventCounter is used in conjunction with monitor_event EventCounter. EventCounter does not take a parameter because it works with the counter exported by the EventCounter event. I_EventCounter, on the other hand, takes an argument. I'm pretty sure the problem is that you forgot to explicitly declare the event counter for teutonic_order_invasion_warn in descr_events. I haven't used this file in a while, but IIRC, if you use the declaration event historic, a counter is not created by default. In any case, why not just use I_TurnNumber for your monitor?
    Last edited by Azim; April 12, 2009 at 08:06 PM.

    Dominion of the Sword, a Medieval II: Total War Supermod
    Under the patronage of Archaon. Proud member of the House of Siblesz
    My friend died from chain letters. If you don't post this again 100 times, he will come and kill you in your sleep!

Posting Permissions

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