Results 1 to 6 of 6

Thread: It's possible to auto-release prisoners?

Hybrid View

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

    Default It's possible to auto-release prisoners?

    Is there any possibilities to auto-release prisoners(captured by players) by script?
    I tried to add a monitor into campaign_script.txt(since i can't figure out which ui_element is used for lease button in captor_ransom_scroll, so i used prisoner_release_button for a try, but it didn't work -___-), monitor like below:
    Code:
    monitor_event ScrollOpened ScrollOpened captor_ransom_scroll
     select_element prisoner_release_button ;release_button or elease_prisoner_button didn't work too
     simulate_mouse_click lclick_down
    end_monitor
    I think if i got the right ui_element id for that release button, this monitor will work, i had searched the whole MIITW folders but still don't get a clue, anyone has any ideas about that ui_element id?Or just another way to work this auto-release trick out?
    I need help T_____T
    I'm a totally script noob, i know lots of people here are good at script, so i'm wondering if anyone can help me out from this question.:hmmm:

  2. #2
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: It's possible to auto-release prisoners?

    I'm not seeing the button ID in the shortcut files or anything relating to prisoners elsewhere. I'm with you in hoping that there's a way to do this, but I don't see anything in searching.

  3. #3
    Opifex
    Join Date
    Feb 2005
    Location
    New York, USA
    Posts
    15,154

    Default Re: It's possible to auto-release prisoners?

    As far as I know Caliban released all of the UI element names a while ago.

    If all else fails, "mtw2_pieces.txt" in /data/menu might very well have it.


    "If ye love wealth greater than liberty,
    the tranquility of servitude greater than
    the animating contest for freedom, go
    home from us in peace. We seek not
    your counsel, nor your arms. Crouch
    down and lick the hand that feeds you,
    and may posterity forget that ye were
    our countrymen."
    -Samuel Adams

  4. #4
    Augustus Lucifer's Avatar Life = Like a beanstalk
    Patrician Citizen

    Join Date
    Aug 2006
    Location
    Mote of Dust
    Posts
    10,725

    Default Re: It's possible to auto-release prisoners?

    Quote Originally Posted by SigniferOne View Post
    As far as I know Caliban released all of the UI element names a while ago.

    If all else fails, "mtw2_pieces.txt" in /data/menu might very well have it.
    It doesn't appear to be in m2tw_pieces or menu_text_descr. I don't even see the scroll that is stated in the above command in the Ultimate DocuDemons.

  5. #5

    Default Re: It's possible to auto-release prisoners?

    Quote Originally Posted by Augustus Lucifer View Post
    It doesn't appear to be in m2tw_pieces or menu_text_descr. I don't even see the scroll that is stated in the above command in the Ultimate DocuDemons.
    Actually i found the scroll name "captor_ransom_scroll" in "campaign_script.txt" along with a monitor in "\maps\campaign\norman_prologue" directory. But just a scroll name no more trace
    Code:
    monitor_event ScrollClosed ScrollClosed captor_ransom_scroll
      set_counter Opened_Prisoner_Scroll 0
    end_monitor

  6. #6

    Default Re: It's possible to auto-release prisoners?

    Quote Originally Posted by SigniferOne View Post
    As far as I know Caliban released all of the UI element names a while ago.

    If all else fails, "mtw2_pieces.txt" in /data/menu might very well have it.
    Thanks for your useful information.
    The only "available UI element" file i got is one extracted from RTW, it definitely has nothing to do with prison release thing, i'm not sure whether the one you mentioned is the same as i already have, any links for that file? Thanks
    Last edited by bobos; March 04, 2009 at 12:58 AM.

Posting Permissions

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