Results 1 to 11 of 11

Thread: advance_advice_thread

  1. #1
    aka AggonyAdherbal Member Lord Adherbal's Avatar
    Join Date
    Oct 2004
    Location
    Belgium
    Posts
    1,014

    Default advance_advice_thread

    I think I asked this question before, but just in case someone knows more about it now:

    I'm using "advance_advice_thread" to let the advisor pop up in a battlemap script. However, it seems as if it only works once. If the battle is played a second time the advisor nolonger shows up. Anyone knows if this can be fixed ?
    Member of The Lordz Games Studio:
    A new game development studio focusing on historical RTS games of the sword & musket era
    http://www.thelordzgamesstudio.com

    Member of The Lordz Modding Collective:
    Creators of Napoleonic Total War I & II
    http://www.thelordz.co.uk

  2. #2

    Default Re: advance_advice_thread

    Can you show us your advice thread and tell us which file you're putting it in? There's an advisor in the Teutoburgerwald forest battlemap script that will appear a second and subsequent times.
    Last edited by Epistolary Richard; 07-27-2006 at 01:08.
    Epistolary Richard's modding Rules of Cool
    Cool modders make their mods with the :mod command line switch
    If they don't, then Cool mod-users use the Mod Enabler (JSGME)
    Cool modders use show_err
    Cool modders use the tutorials database Cool modders check out the Welcome to the Modding Forums! thread Cool modders keep backups Cool modders help each other out

  3. #3
    aka AggonyAdherbal Member Lord Adherbal's Avatar
    Join Date
    Oct 2004
    Location
    Belgium
    Posts
    1,014

    Default Re: advance_advice_thread

    thanks ER, that's all I needed to know it works now. I used an example from the Battle Tutorial but apparently not a good one.
    Member of The Lordz Games Studio:
    A new game development studio focusing on historical RTS games of the sword & musket era
    http://www.thelordzgamesstudio.com

    Member of The Lordz Modding Collective:
    Creators of Napoleonic Total War I & II
    http://www.thelordz.co.uk

  4. #4
    aka AggonyAdherbal Member Lord Adherbal's Avatar
    Join Date
    Oct 2004
    Location
    Belgium
    Posts
    1,014

    Default Re: advance_advice_thread

    is there any way to make the text balloon open automatically ? I tried it with the following script, but that didn't work:

    Code:
    select_ui_element advisor_speech_bubble
    simulate_mouse_click lclick_down
    simulate_mouse_click lclick_up
    Member of The Lordz Games Studio:
    A new game development studio focusing on historical RTS games of the sword & musket era
    http://www.thelordzgamesstudio.com

    Member of The Lordz Modding Collective:
    Creators of Napoleonic Total War I & II
    http://www.thelordz.co.uk

  5. #5
    Simulation Monkey Member The_Mark's Avatar
    Join Date
    Dec 2004
    Location
    Helsinki, Finland
    Posts
    2,613

    Default Re: advance_advice_thread

    Try this:
    Code:
    select_UI_element advisor_portrait_button

  6. #6
    aka AggonyAdherbal Member Lord Adherbal's Avatar
    Join Date
    Oct 2004
    Location
    Belgium
    Posts
    1,014

    Default Re: advance_advice_thread

    excellent, that did the job. Thanks!
    Member of The Lordz Games Studio:
    A new game development studio focusing on historical RTS games of the sword & musket era
    http://www.thelordzgamesstudio.com

    Member of The Lordz Modding Collective:
    Creators of Napoleonic Total War I & II
    http://www.thelordz.co.uk

  7. #7
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: advance_advice_thread

    I use this piece of script but it never works:
    select_ui_element advisor_portrait_button
    simulate_mouse_click lclick_down
    simulate_mouse_click lclick_up
    Do you know where is the mistake?

  8. #8
    aka AggonyAdherbal Member Lord Adherbal's Avatar
    Join Date
    Oct 2004
    Location
    Belgium
    Posts
    1,014

    Default Re: advance_advice_thread

    but the advisor pops up and the text balloon shows when you click him ?
    Member of The Lordz Games Studio:
    A new game development studio focusing on historical RTS games of the sword & musket era
    http://www.thelordzgamesstudio.com

    Member of The Lordz Modding Collective:
    Creators of Napoleonic Total War I & II
    http://www.thelordz.co.uk

  9. #9
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: advance_advice_thread

    Quote Originally Posted by [cF]Adherbal
    but the advisor pops up and the text balloon shows when you click him ?
    Yes.
    The only problem is that the text is not shown automatically.

  10. #10
    aka AggonyAdherbal Member Lord Adherbal's Avatar
    Join Date
    Oct 2004
    Location
    Belgium
    Posts
    1,014

    Default Re: advance_advice_thread

    hm I have a "battle_wait 1" between this and the "advance_advice_thread" lines, to give the advisor the time to enter the screen. I never tested it without, but this could be your problem.
    Member of The Lordz Games Studio:
    A new game development studio focusing on historical RTS games of the sword & musket era
    http://www.thelordzgamesstudio.com

    Member of The Lordz Modding Collective:
    Creators of Napoleonic Total War I & II
    http://www.thelordz.co.uk

  11. #11
    CeltiberoRamiroI Member Monkwarrior's Avatar
    Join Date
    Apr 2004
    Location
    Salduie/Caesaraugusta/ Sarakusta/Saragossa
    Posts
    828

    Default Re: advance_advice_thread

    I think that I've understood what is happening.
    The problem is present when the advice thread appears at the beginning of the turn, probably due to interaction with the incoming messages (recruitment, construction, faction announcements...).
    When the advice comes in the middle of the turn, the text appears without problems.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO