Results 1 to 4 of 4

Thread: advanced_stats_set_as_capital_button not recognized? (Solved: Use make_capital instead)

  1. #1

    Icon5 advanced_stats_set_as_capital_button not recognized? (Solved: Use make_capital instead)

    I made the following script so the player pays 10000 denarii if he changes the capital.


    Code:
    script
    declare_counter dummy_r
    declare_counter dummy_f
    
    monitor_event ButtonPressed ButtonPressed advanced_stats_set_as_capital_button
        console_command add_money -10000
        
        message_prompt
            {
            flag_counter dummy_f
            result_counter dummy_r
            title B2113F84269E5435FB6EF537EE2F20937E85830A_TITLE
            body B2113F84269E5435FB6EF537EE2F20937E85830A_BODY
            image adoption
            }
        
    end_monitor
    end_script

    But it does not work and in the script log unfortunately it says


    (script.txt::3) Executing command script(script.txt::3) Executing command declare_counter
    (script.txt::4) Executing command declare_counter
    (script.txt::8) Executing command monitor_event
    (script.txt::26) Executing command monitor_event
    (
    ButtonPressed [7::FAILED]
    ) [FAILED]
    (
    ButtonPressed [7::FAILED]
    ) [FAILED]

    Which as far as I am concerned means that advanced_stats_set_as_capital_button is not recognized.


    Any ideas?


    I brute-force-tried the following UI names instead, it did not work either:


    set_capital_button
    set_capital
    settlement_set_capital
    settlement_set_capital_button
    advanced_stats_set_capital
    advanced_stats_set_capital_button
    set_as_capital_button
    set_as_capital
    settlement_set_as_capital
    settlement_set_as_capital_button
    advanced_stats_set_as_capital
    Last edited by Ocyalos; January 25, 2022 at 01:54 PM.
    CPU: AMD Ryzen 5 5600X 4,6 Ghz AM4 | GPU: 2x NVIDIA GeForce RTX 3060Ti Gainward Ghost OC 8GB GDRR6 | RAM: Corsair Vengeance RGB PRO DDR4 3600 Mhz C18 16 GB | SSD: PNY XLR8 CS3030 4TB M.2 NVMe 3 GB/s | PSU: be quiet! Straight Power 11 Platinum 550 Watt | MB: Asus ROG Strix B550-F Gaming WiFi | Case: be quiet! Silent Base 801 Silver


    Long: New York Stock Exchange: MO, XOM, AAL, AMZN, FB, MSFT, GOOGL, AMD, CRM | Wiener Börse: POST, BG, ADKO, UBS | London Stock Exchange: BP, BATS | Hong Kong Stock Exchange: 3988, 601318 | Euronext Paris: ORA, FP | Bolsa de Madrid: ELE | Coinbase: BTC
    Short: -

  2. #2

    Default Re: Script for charging cost for capital change - "advanced_stats_set_as_capital_button" not recognized?

    Ha, I brute forced it further and could guess the correct command: Its make_capital

    Code:
    monitor_event ButtonPressed ButtonPressed make_capital
        console_command add_money -10000
    	
        message_prompt
            {
            flag_counter dummy_f
            result_counter dummy_r
            title C7607F9634DE9F1CFDD6DC5F7D2BF9FA85920419_TITLE
            body C7607F9634DE9F1CFDD6DC5F7D2BF9FA85920419_BODY
            image adoption
            }
        
    end_monitor
    This one does work!
    CPU: AMD Ryzen 5 5600X 4,6 Ghz AM4 | GPU: 2x NVIDIA GeForce RTX 3060Ti Gainward Ghost OC 8GB GDRR6 | RAM: Corsair Vengeance RGB PRO DDR4 3600 Mhz C18 16 GB | SSD: PNY XLR8 CS3030 4TB M.2 NVMe 3 GB/s | PSU: be quiet! Straight Power 11 Platinum 550 Watt | MB: Asus ROG Strix B550-F Gaming WiFi | Case: be quiet! Silent Base 801 Silver


    Long: New York Stock Exchange: MO, XOM, AAL, AMZN, FB, MSFT, GOOGL, AMD, CRM | Wiener Börse: POST, BG, ADKO, UBS | London Stock Exchange: BP, BATS | Hong Kong Stock Exchange: 3988, 601318 | Euronext Paris: ORA, FP | Bolsa de Madrid: ELE | Coinbase: BTC
    Short: -

  3. #3
    _Tartaros_'s Avatar "Harzschütze"
    Join Date
    Aug 2009
    Location
    kvet.lɪnˌbuʁk
    Posts
    4,492

    Default Re: advanced_stats_set_as_capital_button not recognized? (Solved: Use make_capital instead)

    FactionIsLocal is not needed? (because of AI wont click on this button?) - good idea to script around.

    me2tw has FactionNewCapital, RR and rtw not, at least i didn´t found it in the conditionslist https://github.com/FeralInteractive/...conditions.txt

  4. #4

    Default Re: advanced_stats_set_as_capital_button not recognized? (Solved: Use make_capital instead)

    Quote Originally Posted by _Tartaros_ View Post
    FactionIsLocal is not needed? (because of AI wont click on this button?)
    afaik, the AI does never trigger any UI elements but I am not 100% sure

    But it makes sense, it's even in the name User Interface
    CPU: AMD Ryzen 5 5600X 4,6 Ghz AM4 | GPU: 2x NVIDIA GeForce RTX 3060Ti Gainward Ghost OC 8GB GDRR6 | RAM: Corsair Vengeance RGB PRO DDR4 3600 Mhz C18 16 GB | SSD: PNY XLR8 CS3030 4TB M.2 NVMe 3 GB/s | PSU: be quiet! Straight Power 11 Platinum 550 Watt | MB: Asus ROG Strix B550-F Gaming WiFi | Case: be quiet! Silent Base 801 Silver


    Long: New York Stock Exchange: MO, XOM, AAL, AMZN, FB, MSFT, GOOGL, AMD, CRM | Wiener Börse: POST, BG, ADKO, UBS | London Stock Exchange: BP, BATS | Hong Kong Stock Exchange: 3988, 601318 | Euronext Paris: ORA, FP | Bolsa de Madrid: ELE | Coinbase: BTC
    Short: -

Tags for this Thread

Posting Permissions

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