Results 1 to 9 of 9

Thread: 1+1 questions

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    EP!anastasi's Avatar Biarchus
    Join Date
    Jul 2008
    Location
    Athens, Greece
    Posts
    652

    Icon10 1+1 questions

    warning
    noob questions

    no1: about capital (garisson scripts)
    Is there a way to determine a factions capital (so that you add more units there as garisson in the script) through a variable/counter/something instead of just the name of the settlement? (in case the capital changes place)


    no2: about "money script"
    I thought of something and really have no idea if others have already done this... So, how about just raising the king's purse for all factions in descr_strat for let's say 1000-2000-idk florins, and then in campaign_script we add something like, and maybe vary the amount according to difficulty?

    Code:
    monitor_event FactionTurnStart FactionIsLocal
                   and I_NumberOfSettlements = 1
        
                         set_kings_purse 1500
    
    terminate_monitor
    
    end_monitor
    Of course, that doesn't save them from going bankrupt
    But i'm only asking if this would give some more capability to AI to last longer... ?

    edit: Actually, i think this is more like what i was trying to do

    Code:
        ; monitors
    
        ;-- Anti-money script (for the human)
    
        monitor_event FactionTurnStart FactionIsLocal
                    and not IsFactionAIControlled
    
            if CampaignDifficulty = very_hard
                    set_kings_purse 1800
            end_if
    
            if CampaignDifficulty = hard
                    set_kings_purse 3000
            end_if
    
            if CampaignDifficulty = medium
                set_kings_purse england 4000
            end_if
    
            if CampaignDifficulty = easy
                    set_kings_purse england 4500
            end_if
                
        terminate_monitor
        end_monitor
    ...assuming i've given all the factions a king's purse between 3500 and 4500. Of course, those numbers can change for better ones.
    Is the terminate_monitor needed there?
    I'm trying to keep code short, too
    Last edited by EP!anastasi; February 24, 2012 at 10:54 AM.
    Quote Originally Posted by 1988matej View Post
    <snip> i won't preorder to get the dacian's, wont pay for the elephant dlc nor will i settle for a dumbed down game <snip>
    "My garden may be smaller than your Rome, but my pilum is harder than your sternum!"

    a great song ... and one more ... ok, one last






    (\__/)
    ( O.o)
    (> < ) This is Bunny. Please help Bunny reach global domination by copying this message and pasting it to your own signature. Thank you!










    Fred Putz
    Quote Originally Posted by Fred Putz View Post
    Hmm - in my political spectrum Nazism is always on the extreme stupid wing.
    jimkatalanos

    Quote Originally Posted by jimkatalanos View Post
    Can someone delete this one temporarily?
    It's way too active and I am worried.
    Spoiler Alert, click show to read: 
    Taiji
    Quote Originally Posted by Taiji View Post
    Honestly there is no ceremony while I sacrifice stuff
    Garbarsardar
    Quote Originally Posted by Garbarsardar View Post
    <snip> the behaviour of moderators is a clear example of the corruption that absolute power brings to these hitherto innocent kids. Jom, Hesus, Ishan, Giga, were a merry bunch of fellows until the DeletePostDemon went into them and made them do the unthinkable. Praise the lord. And pass the bucket.
    ~Gort~
    Quote Originally Posted by ~Gort~ View Post
    Irony is one of the few saving graces of humanity.
    irelandeb
    Quote Originally Posted by irelandeb View Post
    What we understand is neglible compared to what we know we don't understand, never mind what we don't know we don't understand.
    Squid
    Quote Originally Posted by Squid View Post
    It won't help, people will believe what they want to believe even when presented with incontrovertible proof to the contrary.
    Magicman2051
    Quote Originally Posted by Magicman2051 View Post
    Clarifying, I don't disagree with what I quoted, I don't agree with it either.
    Aradan
    Quote Originally Posted by Aradan View Post
    You do make sense.

  2. #2

    Default Re: 1+1 questions

    Question 2, the problem with adding money to descr_strat is, the player would also benefit from the additions also, so it would just even out.

    Here's a money script you might want to look at: http://www.twcenter.net/forums/showthread.php?t=309918


  3. #3
    EP!anastasi's Avatar Biarchus
    Join Date
    Jul 2008
    Location
    Athens, Greece
    Posts
    652

    Default Re: 1+1 questions

    Quote Originally Posted by dannyxx30 View Post
    Question 2, the problem with adding money to descr_strat is, the player would also benefit from the additions also, so it would just even out.
    Not really Cause i'm giving the human player a much lower king's purse later through that little script Or at least that's what i'd like to do I think i need another check there, sorry Hmmm... i edited the OP

    Quote Originally Posted by dannyxx30 View Post
    Here's a money script you might want to look at: http://www.twcenter.net/forums/showthread.php?t=309918
    I think that's exactly what i'm trying to do, but instead of giving to all the AI factions in campaign_script according to dif, the opposite, to remove from the human according to dif and give to all factions much more through descr_start



    Oh, and what about question no1?
    Last edited by EP!anastasi; February 24, 2012 at 10:53 AM.
    Quote Originally Posted by 1988matej View Post
    <snip> i won't preorder to get the dacian's, wont pay for the elephant dlc nor will i settle for a dumbed down game <snip>
    "My garden may be smaller than your Rome, but my pilum is harder than your sternum!"

    a great song ... and one more ... ok, one last






    (\__/)
    ( O.o)
    (> < ) This is Bunny. Please help Bunny reach global domination by copying this message and pasting it to your own signature. Thank you!










    Fred Putz
    Quote Originally Posted by Fred Putz View Post
    Hmm - in my political spectrum Nazism is always on the extreme stupid wing.
    jimkatalanos

    Quote Originally Posted by jimkatalanos View Post
    Can someone delete this one temporarily?
    It's way too active and I am worried.
    Spoiler Alert, click show to read: 
    Taiji
    Quote Originally Posted by Taiji View Post
    Honestly there is no ceremony while I sacrifice stuff
    Garbarsardar
    Quote Originally Posted by Garbarsardar View Post
    <snip> the behaviour of moderators is a clear example of the corruption that absolute power brings to these hitherto innocent kids. Jom, Hesus, Ishan, Giga, were a merry bunch of fellows until the DeletePostDemon went into them and made them do the unthinkable. Praise the lord. And pass the bucket.
    ~Gort~
    Quote Originally Posted by ~Gort~ View Post
    Irony is one of the few saving graces of humanity.
    irelandeb
    Quote Originally Posted by irelandeb View Post
    What we understand is neglible compared to what we know we don't understand, never mind what we don't know we don't understand.
    Squid
    Quote Originally Posted by Squid View Post
    It won't help, people will believe what they want to believe even when presented with incontrovertible proof to the contrary.
    Magicman2051
    Quote Originally Posted by Magicman2051 View Post
    Clarifying, I don't disagree with what I quoted, I don't agree with it either.
    Aradan
    Quote Originally Posted by Aradan View Post
    You do make sense.

  4. #4

    Default Re: 1+1 questions

    Quote Originally Posted by EP!anastasi View Post
    warning
    noob questions

    no1: about capital (garisson scripts)
    Is there a way to determine a factions capital (so that you add more units there as garisson in the script) through a variable/counter/something instead of just the name of the settlement? (in case the capital changes place)
    In all my years playing M2TW I've personally never seen the computer change their capitol...Just write the script for all starting capitols and make them all fire under the condition that faction is ai controlled and the one your playing as won't fire when the rest of them do...

  5. #5
    irishron's Avatar Cura Palatii
    Moderator Emeritus

    Join Date
    Feb 2005
    Location
    Cirith Ungol
    Posts
    47,023

    Default Re: 1+1 questions

    I have had the ai change capitals "to keep it in the middle of its empire".

  6. #6
    EP!anastasi's Avatar Biarchus
    Join Date
    Jul 2008
    Location
    Athens, Greece
    Posts
    652

    Default Re: 1+1 questions

    Quote Originally Posted by irishron View Post
    I have had the ai change capitals "to keep it in the middle of its empire".
    You know what they say...
    Screenshot or it never happened!

    But seriously, the AI doesn't change capitals much (if at all), but i've heard sometimes (and one of them i just quoted) people saying they've seen at least an AI faction change it's capital. And of course there is this case where it can't be avoided.
    Quote Originally Posted by Withwnar View Post
    It will also change when they lose the settlement that is their capital.

    Quote Originally Posted by Withwnar View Post
    There is no way to do it directly - no such "IsCapital" condition. What you could do is spawn a character into that faction and, for each settlement on the map, reposition him next to it then use DistanceCapital to see how far from the capital he is. When something like "< 3" is true then that must be it. Tricky though, and a lot of script, and I'm not sure what event you could monitor to get the character_record used by DistanceCapital. For the local faction you might be able to use CharacterSelected but I don't think that it could work with AI factions.
    Kinda like what i feared... Something my mod-fu is too weak for atm.
    No big deal, i can live without it..

    Thanks for the answer though!
    Last edited by EP!anastasi; February 27, 2012 at 01:54 AM.
    Quote Originally Posted by 1988matej View Post
    <snip> i won't preorder to get the dacian's, wont pay for the elephant dlc nor will i settle for a dumbed down game <snip>
    "My garden may be smaller than your Rome, but my pilum is harder than your sternum!"

    a great song ... and one more ... ok, one last






    (\__/)
    ( O.o)
    (> < ) This is Bunny. Please help Bunny reach global domination by copying this message and pasting it to your own signature. Thank you!










    Fred Putz
    Quote Originally Posted by Fred Putz View Post
    Hmm - in my political spectrum Nazism is always on the extreme stupid wing.
    jimkatalanos

    Quote Originally Posted by jimkatalanos View Post
    Can someone delete this one temporarily?
    It's way too active and I am worried.
    Spoiler Alert, click show to read: 
    Taiji
    Quote Originally Posted by Taiji View Post
    Honestly there is no ceremony while I sacrifice stuff
    Garbarsardar
    Quote Originally Posted by Garbarsardar View Post
    <snip> the behaviour of moderators is a clear example of the corruption that absolute power brings to these hitherto innocent kids. Jom, Hesus, Ishan, Giga, were a merry bunch of fellows until the DeletePostDemon went into them and made them do the unthinkable. Praise the lord. And pass the bucket.
    ~Gort~
    Quote Originally Posted by ~Gort~ View Post
    Irony is one of the few saving graces of humanity.
    irelandeb
    Quote Originally Posted by irelandeb View Post
    What we understand is neglible compared to what we know we don't understand, never mind what we don't know we don't understand.
    Squid
    Quote Originally Posted by Squid View Post
    It won't help, people will believe what they want to believe even when presented with incontrovertible proof to the contrary.
    Magicman2051
    Quote Originally Posted by Magicman2051 View Post
    Clarifying, I don't disagree with what I quoted, I don't agree with it either.
    Aradan
    Quote Originally Posted by Aradan View Post
    You do make sense.

  7. #7
    lolIsuck's Avatar WE HAVE NO CAKE!
    Patrician Citizen Moderator Emeritus

    Join Date
    Dec 2010
    Location
    Heerlen, Limburg
    Posts
    13,660

    Default Re: 1+1 questions

    Quote Originally Posted by EP!anastasi View Post
    You know what they say...
    Screenshot or it never happened!

    But seriously, the AI doesn't change capitals much (if at all), but i've heard sometimes (and one of them i just quoted) people saying they've seen at least an AI faction change it's capital. And of course there is this case where it can't be avoided.
    In TATW it happens all the time, AI Gondor changes capital from Minas Tirith to Tarnost or Linhir and High Elves from Rivendell to Mithlond, this is to decrease corruption and maximize income I think.

  8. #8

    Default Re: 1+1 questions

    I was just saying that I personally haven't seen it happen except of course for the obvious times they have too do to loosing their current capitol...but I don't play a lot of the fantasy mods either...

  9. #9
    Withwnar's Avatar Script To The Waist
    Join Date
    Oct 2008
    Location
    Earth
    Posts
    6,329

    Default Re: 1+1 questions

    It will also change when they lose the settlement that is their capital.

    There is no way to do it directly - no such "IsCapital" condition. What you could do is spawn a character into that faction and, for each settlement on the map, reposition him next to it then use DistanceCapital to see how far from the capital he is. When something like "< 3" is true then that must be it. Tricky though, and a lot of script, and I'm not sure what event you could monitor to get the character_record used by DistanceCapital. For the local faction you might be able to use CharacterSelected but I don't think that it could work with AI factions.

Posting Permissions

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