Results 1 to 10 of 10

Thread: Question on capital

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Myshkin's Avatar Centenarius
    Join Date
    Jul 2009
    Location
    Antarctica
    Posts
    826

    Default Question on capital

    Hello,

    Could you please help me on some issues I have with the capital? I am moding the "campaign_script.txt" and I would like to know:

    1. Which command sets a city as capital?

    2 Which variable checks if a city is a capital?

    Thanks,
    Myshkin
    Last edited by Myshkin; December 06, 2009 at 02:30 PM.
    Mini-projects under developlemt for TATW and ETW

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

    Default Re: Question on capital

    it's in the descr_strat, when a faction starts his entries, the 1st city is always the capital
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  3. #3
    Myshkin's Avatar Centenarius
    Join Date
    Jul 2009
    Location
    Antarctica
    Posts
    826

    Default Re: Question on capital

    Yup I want to add a script which checks, which city is the capital every turn though...
    Mini-projects under developlemt for TATW and ETW

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

    Default Re: Question on capital

    and what do you what that script to do?
    Under the Patronage of the Dreadful cedric37!
    Ancs Guide, Emergent Factions , Yes/No Events |L'Outremer for Modders| Swagger's Skymod


  5. #5
    Myshkin's Avatar Centenarius
    Join Date
    Jul 2009
    Location
    Antarctica
    Posts
    826

    Default Re: Question on capital

    Apply penalties at the King's purse if the capital has moved AND is not a "huge city" or "citadel".

    The problem I have is I don't know how to check if a city is capital... or call the capital name.
    Mini-projects under developlemt for TATW and ETW

  6. #6
    Myshkin's Avatar Centenarius
    Join Date
    Jul 2009
    Location
    Antarctica
    Posts
    826

    Default Re: Question on capital

    It turns I can do something like: monitor_event FactionNewCapital

    So there is a way! Slowly getting there...

    EDIT:
    monitor_event FactionNewCapital FactionIsLocal
    and FactionType sicily
    console_command add_money -10000
    end_monitor


    This works... and its a start...
    Last edited by Myshkin; December 06, 2009 at 05:56 PM.
    Mini-projects under developlemt for TATW and ETW

  7. #7
    Myshkin's Avatar Centenarius
    Join Date
    Jul 2009
    Location
    Antarctica
    Posts
    826

    Default Re: Question on capital

    Any way to say something like the following?

    if FactionCapital sicily Anorien
    ...
    end_if
    Last edited by Myshkin; December 07, 2009 at 02:18 AM.
    Mini-projects under developlemt for TATW and ETW

  8. #8
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Question on capital

    You can only determine which faction has changed the capital, nothing else.
    monitor_event FactionNewCapital FactionType sicily










  9. #9
    Myshkin's Avatar Centenarius
    Join Date
    Jul 2009
    Location
    Antarctica
    Posts
    826

    Default Re: Question on capital

    Thank you
    Mini-projects under developlemt for TATW and ETW

  10. #10
    Gigantus's Avatar I am not special - I am a limited edition.
    Moderator Emeritus Administrator Emeritus

    Join Date
    Aug 2006
    Location
    Goa - India
    Posts
    52,682
    Blog Entries
    35

    Default Re: Question on capital

    One is glad to be of service










Posting Permissions

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