Results 1 to 6 of 6

Thread: disable_ui ransom_button (UI element)

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default disable_ui ransom_button (UI element)

    I want to disable the ransom button.
    Already looked at this:
    http://forums.totalwar.org/vb/showpo...25&postcount=5
    But of course in RTW there was no ransom.
    My little monitor in capaign_script.txt:

    monitor_event ScrollOpened ScrollOpened captor_ransom_scroll
    log always disable_ui ransom_button
    disable_ui ransom_button
    end_monitor

    Of course ransom_button is wrong. Is there a way to find out the correct ID?
    I've allready looked in:
    /ui/startegy.sd
    /ui/shared.sd
    /text/strat.txt
    Perhaps one of the exe-readers can find out.

    Setting in the cfg file
    [log]
    to = logs/system.log.txt
    level = * trace
    did not give me any new idea.

  2. #2

    Default Re: disable_ui ransom_button (UI element)

    Try this:-
    Code:
    ransom_prisoners_button

  3. #3

    Default Re: disable_ui ransom_button (UI element)

    No. Did not disable the button. From where do you have the info? Perhaps I can search there on my own.

  4. #4

    Default Re: disable_ui ransom_button (UI element)

    The button is right and it's from the .exe. Verify the other things in your script.

  5. #5

    Default Re: disable_ui ransom_button (UI element)

    Yes. I also had a look in the exe. Hm I'll try again.

    Code:
    monitor_event ScrollOpened ScrollOpened captor_ransom_scroll
         log always disable_ui captor_ransom_scroll
         disable_ui ransom_prisoners_button
    end_monitor
    crap. The button is still active. The monitor triggered:
    21:58:27.040 [game.script] [always] disable_ui captor_ransom_scroll
    Perhaps the campaign_script is the wrong place for it?
    Did anyone disabled successful an ui element?

    I even tried this:
    Code:
    monitor_event ScrollOpened ScrollOpened captor_ransom_scroll
         log always disable_ui captor_ransom_scroll
         disable_ui ransom_prisoners_button
         disable_ui execute_prisoners_button
         disable_ui release_prisoners_button
    end_monitor
    Disabled none.
    Last edited by Aramiteus; October 22, 2010 at 03:05 PM.

  6. #6

    Default Re: disable_ui ransom_button (UI element)

    Expanded the code by this:
    Code:
    monitor_event UIElementVisible UIElementVisible ransom_prisoners_button
            disable_ui ransom_prisoners_button
            log always UIElementVisible ransom_prisoners_button
    end_monitor
    
    monitor_event ButtonPressed ButtonPressed ransom_prisoners_button
            log always ButtonPressed ransom_prisoners_button
    end_monitor
    Resulted in:

    Code:
    22:43:00.281 [game.script] [always] disable_ui captor_ransom_scroll
    22:43:04.802 [game.script] [always] ButtonPressed ransom_prisoners_button
    monitor_event UIElementVisible
    not executed. But proved the Id, is right.
    I have no idea left. Seems like it is not possible.
    Last edited by Aramiteus; October 22, 2010 at 04:29 PM.

Posting Permissions

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