Results 1 to 13 of 13

Thread: Script adjustment

  1. #1
    Member Member stupac's Avatar
    Join Date
    Jan 2007
    Location
    This place called 'rooms,' there's a whole chain of them.
    Posts
    287

    Default Script adjustment

    I want to make sure I'm doing this right, if someone could quickly review it for me. I'm trying to edit the EBBS_SCRIPT to give the maks a boost in the early game (namely cause they always get defeated KH early in every one of my last campaigns) and to give the Romani a boost later in the game so they can actually become a formidable empire rather than just an Italian state, like they have been in all my other games.

    I edited the Romani money script to look like this:
    Code:
    ;After 20 years
    monitor_event SettlementTurnStart FactionType seleucid
    and not FactionIsLocal
    and I_TurnNumber  > 80
    and Treasury < 200000
      if I_NumberOfSettlements seleucid < 3
        console_command add_money seleucid, 900
      end_if
    
      if I_NumberOfSettlements seleucid < 6
        console_command add_money seleucid, 300
      end_if
    
      if I_NumberOfSettlements seleucid < 9
        console_command add_money seleucid, 300
      end_if
    
      if I_NumberOfSettlements seleucid < 16
      and I_CompareCounter numPlayerSettlements > 10
        console_command add_money seleucid, 600
      end_if
    
      if I_NumberOfSettlements seleucid < 25
      and I_CompareCounter numPlayerSettlements > 18
        console_command add_money seleucid, 600
      end_if
    
      if I_NumberOfSettlements seleucid < 35
      and I_CompareCounter numPlayerSettlements > 30
        console_command add_money seleucid, 600
      end_if
      console_command add_money seleucid, 600
    end_monitor
    I edited the Makedonian money script to this:
    Code:
    ;first 20 years
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 150000
      if I_NumberOfSettlements macedon > 24
        console_command add_money macedon, 1200
      end_if
    
      if I_NumberOfSettlements macedon < 25
        console_command add_money macedon, 600
      end_if
    
      if I_NumberOfSettlements macedon < 16
        console_command add_money macedon, 600
      end_if
    I basically doubled the money in 2 of the sections. So I think that Makedonia should be then getting 1200 mnai per turn as opposed to 600 until they get over 25 settlements right? And after 20 years the Romani should at most be getting another 900 mnai. Looking at the script though, I've almost doubled their income but it doesn't sound like enough to me, mere pennies. Is this enough or should I increase it more if I want to get the effect I desire? Would it be safe to triple or quadruple the amount? Also, I'm not really familiar with this file, so I wanted to make sure I wasn't doing something completely wrong.
    Colder than a gut-shot bitch wolf dog with nine suckin' pups pulling a #4 trap up a hill in the dead of winter in the middle of a snowstorm with a mouth full of porcupine quills.

    My videos

  2. #2
    Ming the Merciless is my idol Senior Member Watchman's Avatar
    Join Date
    Aug 2004
    Location
    Helsinki, Finland
    Posts
    7,967

    Default Re: Script adjustment

    That's mnai per settlement, innit...? "Pennies" indeed...
    "Let us remember that there are multiple theories of Intelligent Design. I and many others around the world are of the strong belief that the universe was created by a Flying Spaghetti Monster. --- Proof of the existence of the FSM, if needed, can be found in the recent uptick of global warming, earthquakes, hurricanes, and other natural disasters. Apparently His Pastaness is to be worshipped in full pirate regalia. The decline in worldwide pirate population over the past 200 years directly corresponds with the increase in global temperature. Here is a graph to illustrate the point."

    -Church of the Flying Spaghetti Monster

  3. #3
    Member Member stupac's Avatar
    Join Date
    Jan 2007
    Location
    This place called 'rooms,' there's a whole chain of them.
    Posts
    287

    Default Re: Script adjustment

    Quote Originally Posted by Watchman
    That's mnai per settlement, innit...? "Pennies" indeed...
    Oh my. I knew I must have been looking at it wrong, thank you very much, watchman. Yeah, I think what I have will be sufficient, I'll have to see how it effects my campaign.
    Colder than a gut-shot bitch wolf dog with nine suckin' pups pulling a #4 trap up a hill in the dead of winter in the middle of a snowstorm with a mouth full of porcupine quills.

    My videos

  4. #4

    Default Re: Script adjustment

    Code:
    ;first 20 years
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 150000
      if I_NumberOfSettlements macedon > 24
        console_command add_money macedon, 1200
      end_if
    
      if I_NumberOfSettlements macedon < 25
        console_command add_money macedon, 600
      end_if
    
      if I_NumberOfSettlements macedon < 16
        console_command add_money macedon, 600
      end_if
    Can I ask a question, why the first wan is if in this case Macedon has more than 24 settelments give them 1200, should it not be les then?

  5. #5
    Member Member stupac's Avatar
    Join Date
    Jan 2007
    Location
    This place called 'rooms,' there's a whole chain of them.
    Posts
    287

    Default Re: Script adjustment

    Quote Originally Posted by Ower
    Code:
    ;first 20 years
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_TurnNumber  < 81
    and Treasury < 150000
      if I_NumberOfSettlements macedon > 24
        console_command add_money macedon, 1200
      end_if
    
      if I_NumberOfSettlements macedon < 25
        console_command add_money macedon, 600
      end_if
    
      if I_NumberOfSettlements macedon < 16
        console_command add_money macedon, 600
      end_if
    Can I ask a question, why the first wan is if in this case Macedon has more than 24 settelments give them 1200, should it not be les then?
    I was wondering the same thing, I saw that on a few factions, and the complete opposite on others.
    Colder than a gut-shot bitch wolf dog with nine suckin' pups pulling a #4 trap up a hill in the dead of winter in the middle of a snowstorm with a mouth full of porcupine quills.

    My videos

  6. #6
    The Rabbit Nibbler Member Korlon's Avatar
    Join Date
    Jan 2008
    Location
    Illinois
    Posts
    557

    Default Re: Script adjustment

    Presumably it's because, in order to have conquered all that in just the span of 20 years, the faction must've recruited a tremendous amount of armies. This means the upkeep of all those armies must be killing the treasury of said faction, so the script must give more money to the faction in order to keep its finances in the green.
    Ongoing EB Campaigns:
    1.0 Pontos (245 BC)

    Remanent or Supremacy - An EB Pontos AAR - Unfortunately postponed indefinitely.
    1.1 Saka Rauka Gameplay Guide
    1.1 Lusotannan Gameplay Guide

  7. #7
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Script adjustment

    IIRC, there was a copy-paste error in the money script, I believe it's fixed in the internal version but would have to check again when I come home. They are definitely supposed to get more money per settlement when they have less of them, not the other way around.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  8. #8
    Member Member stupac's Avatar
    Join Date
    Jan 2007
    Location
    This place called 'rooms,' there's a whole chain of them.
    Posts
    287

    Default Re: Script adjustment

    Quote Originally Posted by bovi
    IIRC, there was a copy-paste error in the money script, I believe it's fixed in the internal version but would have to check again when I come home. They are definitely supposed to get more money per settlement when they have less of them, not the other way around.
    So you'd say this section is incorrect?

    Code:
      if I_NumberOfSettlements macedon > 24
        console_command add_money macedon, 1200
      end_if
    Cause, that's what mine had without modification.
    Colder than a gut-shot bitch wolf dog with nine suckin' pups pulling a #4 trap up a hill in the dead of winter in the middle of a snowstorm with a mouth full of porcupine quills.

    My videos

  9. #9
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Script adjustment

    Yeah. Here's the current internal version:

    Code:
    ;first 12 years
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_TurnNumber  < 49
    and Treasury < 100000
      console_command add_money macedon, 1200
      if I_NumberOfSettlements macedon < 25
        console_command add_money macedon, 300
      end_if
      if I_NumberOfSettlements macedon < 16
        console_command add_money macedon, 300
      end_if
    end_monitor
    
    
    
    ;after 12 years
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_TurnNumber  > 48
    and Treasury < 100000
      if I_NumberOfSettlements macedon < 3
        console_command add_money macedon, 900
      end_if
    
      if I_NumberOfSettlements macedon < 6
        console_command add_money macedon, 300
      end_if
    
      if I_NumberOfSettlements macedon < 9
        console_command add_money macedon, 300
      end_if
    
      if I_NumberOfSettlements macedon < 16
      and I_CompareCounter numPlayerSettlements > 10
        console_command add_money macedon, 300
      end_if
    
      if I_NumberOfSettlements macedon < 25
      and I_CompareCounter numPlayerSettlements > 18
        console_command add_money macedon, 300
      end_if
    
      if I_NumberOfSettlements macedon < 35
      and I_CompareCounter numPlayerSettlements > 30
        console_command add_money macedon, 300
      end_if
    
      console_command add_money macedon, 600
    end_monitor

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  10. #10

    Default Re: Script adjustment

    Thought so, thx for the confirmation, now I can fix it.

  11. #11
    Member Member Yossarian's Avatar
    Join Date
    Sep 2006
    Location
    Sweden
    Posts
    39

    Default Re: Script adjustment

    Quick question:

    Is it supposed to look exactly like this:

    Spoiler Alert, click show to read: 
    ;first 12 years
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_TurnNumber < 49
    and Treasury < 100000
    console_command add_money macedon, 1200
    if I_NumberOfSettlements macedon < 25
    console_command add_money macedon, 300
    end_if
    if I_NumberOfSettlements macedon < 16
    console_command add_money macedon, 300
    end_if
    end_monitor




    Will the script act differently with spaces in between the lines like this (which is what it looks like as per default):

    Spoiler Alert, click show to read: 
    ;first 12 years
    monitor_event SettlementTurnStart FactionType macedon
    and not FactionIsLocal
    and I_TurnNumber < 49
    and Treasury < 100000
    console_command add_money macedon, 1200
    if I_NumberOfSettlements macedon < 25
    console_command add_money macedon, 300
    end_if

    if I_NumberOfSettlements macedon < 16
    console_command add_money macedon, 300
    end_if

    end_monitor

  12. #12
    EB annoying hornet Member bovi's Avatar
    Join Date
    Jan 2007
    Location
    Norway
    Posts
    11,796

    Default Re: Script adjustment

    Multiple newlines count as one, so these pieces of code are equivalent.

    Having problems getting EB2 to run? Try these solutions.
    ================
    I do NOT answer PM requests for help with EB. Ask in a new help thread in the tech help forum.
    ================
    I think computer viruses should count as life. I think it says something about human nature that the only form of life we have created so far is purely destructive. We've created life in our own image. - Stephen Hawking

  13. #13
    Member Member Yossarian's Avatar
    Join Date
    Sep 2006
    Location
    Sweden
    Posts
    39

    Default Re: Script adjustment

    Thanks for clearing that up!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO