Results 1 to 8 of 8

Thread: Money script

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Luchan's Avatar Foederatus
    Join Date
    Feb 2007
    Location
    In a house..
    Posts
    38

    Default Money script

    Hello all,

    I'am interested in finding the money script to add it to the regular vaniila m2tw. Where can i find it?

  2. #2

    Default Re: Money script

    In the campaign script files of the 'Kingdoms' campaigns.

    But you'll have to re-write them to work with vanilla m2tw

    Retired creator of 'Das Heilige Römische Reich' - Get v. 0.7 here.
    -------------------------------------------------------------
    Visit my homepage.
    --------------------------------------------
    Proud son of jimkatalanos, grandson of Garbarsardar and father of DerDiskusWerfer and HannibalExMachina.

  3. #3
    Luchan's Avatar Foederatus
    Join Date
    Feb 2007
    Location
    In a house..
    Posts
    38

    Default Re: Money script

    Code:
     
    ;----------------- CASH FOR AI ----------------;
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType england
      and LosingMoney
      and Treasury < 0
     
      add_money england 2000
     
     end_monitor
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType france
      and LosingMoney
      and Treasury < 0
     
      add_money france 2000
     
     end_monitor
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType hre
      and LosingMoney
      and Treasury < 0
     
      add_money hre 2000
     
     end_monitor
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType spain
      and LosingMoney
      and Treasury < 0
     
      add_money spain 2000
     
     end_monitor
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType venice
      and LosingMoney
      and Treasury < 0
     
      add_money venice 2000
     
     end_monitor
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType sicily
      and LosingMoney
      and Treasury < 0
     
      add_money sicily 2000
     end_monitor
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType milan
      and LosingMoney
      and Treasury < 0
     
      add_money milan 2000
     end_monitor
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType scotland
      and LosingMoney
      and Treasury < 0
     
      add_money scotland 2000
     end_monitor
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType byzantium
      and LosingMoney
      and Treasury < 0
     
      add_money byzantium 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType russia
      and LosingMoney
      and Treasury < 0
     
      add_money russia 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType moors
      and LosingMoney
      and Treasury < 0
     
      add_money moors 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType turks
      and LosingMoney
      and Treasury < 0
     
      add_money turks 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType egypt
      and LosingMoney
      and Treasury < 0
     
      add_money egypt 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType denmark
      and LosingMoney
      and Treasury < 0
     
      add_money denmark 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType portugal
      and LosingMoney
      and Treasury < 0
     
      add_money portugal 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType portugal
      and LosingMoney
      and Treasury < 0
     
      add_money portugal 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType poland
      and LosingMoney
      and Treasury < 0
     
      add_money poland 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType hungary
      and LosingMoney
      and Treasury < 0
     
      add_money hungary 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType papal_states
      and LosingMoney
      and Treasury < 0
     
      add_money papal_states 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType aztecs
      and LosingMoney
      and Treasury < 0
     
      add_money aztecs 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType mongols
      and LosingMoney
      and Treasury < 0
     
      add_money mongols 2000
     end_monitor
     
     monitor_event FactionTurnStart not FactionIsLocal
      and FactionType timurids
      and LosingMoney
      and Treasury < 0
     
      add_money timurids 2000
     end_monitor
    (this is a part of the full thing)
    That's what i put in but it still doesn't work. Any ideas?

  4. #4

    Default Re: Money script

    There are other options. First and simplest is to adjust the value of "king's purse" in the descr_strat file. Another option is to adjust the values in the file, descr_sm_resources.txt. Though you need to unpack and what not to get at that one. The second option has a more realistic feel to it and helps a bit with the awful vanilla merchants.

  5. #5
    alpaca's Avatar Harbinger of saliva
    Join Date
    Sep 2005
    Location
    Germany
    Posts
    4,811

    Default Re: Money script

    You should be aware that neither the king's purse command nor the add_money command work with the medieval2.exe

    You have to use "console_command add_money <faction>,<amount>" - note the comma!

    No thing is everything. Every thing is nothing.

  6. #6

    Default Re: Money script

    Quote Originally Posted by alpaca View Post
    You should be aware that neither the king's purse command nor the add_money command work with the medieval2.exe

    You have to use "console_command add_money <faction>,<amount>" - note the comma!

    Fair enough, my refrence to king's purse was the descr_strat. The nice thing about descr_sm_resources is that it is save game compatible.

  7. #7

    Default Re: Money script

    This thread is researching money scripts:
    http://www.twcenter.net/forums/showthread.php?t=75570

    Ronin recommends this configuration:
    monitor_event FactionTurnStart not FactionIsLocal
    and FactionType papal_states
    and Treasury < 10000
    console_command add_money papal_states, 10000
    end_monitor
    Last edited by uanime5; October 03, 2007 at 05:39 PM.
    Morning Sun (adds Korea and China to the Shogun 2 map)
    http://www.twcenter.net/forums/forum...28-Morning-Sun

    Expanded Japan mod (97 new regions and 101 new factions)
    http://www.twcenter.net/forums/showt...ew-factions%29

    How to split a region in TWS2
    http://www.twcenter.net/forums/showt...split-a-region

    Eras Total Conquest 2.3 (12 campaigns from 970-1547)

  8. #8
    Luchan's Avatar Foederatus
    Join Date
    Feb 2007
    Location
    In a house..
    Posts
    38

    Default Re: Money script

    Thanks that one with the comma before the money worked.

Posting Permissions

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