Results 1 to 14 of 14

Thread: Script Shortcut problem

  1. #1
    Indiana Jones of Modding! Member Patrizius's Avatar
    Join Date
    Oct 2007
    Posts
    103

    Default Script Shortcut problem

    i want to call those shortcuts "disband" "select_all" from script..but the call_object_shortcut doesn't work.
    it seems i have to specify a specific hud
    example
    call_object_shortcut HUD shortcut_name

    any idea on what hud i have to write for those ones?
    Ideator,Scripter and Team Leader of RES BELLICAE modding project.Come visit us on http://www.twcenter.net/forums/forumdisplay.php?f=603

  2. #2

    Default Re: Script Shortcut problem

    Going by preferences\keys.dat, it should be card_manager for both of them.
    RTR VII Developer

  3. #3
    Indiana Jones of Modding! Member Patrizius's Avatar
    Join Date
    Oct 2007
    Posts
    103

    Default Re: Script Shortcut problem

    thanks a lot ;)
    Ideator,Scripter and Team Leader of RES BELLICAE modding project.Come visit us on http://www.twcenter.net/forums/forumdisplay.php?f=603

  4. #4
    Indiana Jones of Modding! Member Patrizius's Avatar
    Join Date
    Oct 2007
    Posts
    103

    Default Re: Script Shortcut problem

    no it doesn't work :(
    Ideator,Scripter and Team Leader of RES BELLICAE modding project.Come visit us on http://www.twcenter.net/forums/forumdisplay.php?f=603

  5. #5

    Default Re: Script Shortcut problem

    It would only work for the player-controlled faction. The AI doesn't use the UI.

    If you post your code, I'll look over it.
    RTR VII Developer

  6. #6
    Indiana Jones of Modding! Member Patrizius's Avatar
    Join Date
    Oct 2007
    Posts
    103

    Default Re: Script Shortcut problem

    i know thhat ;).

    the code is simple

    call_object_shortcut card_manager disband

    i select the unit and then activate the script.NOTHING

    but if i use my keyboard shortcut it works...
    Ideator,Scripter and Team Leader of RES BELLICAE modding project.Come visit us on http://www.twcenter.net/forums/forumdisplay.php?f=603

  7. #7

    Default Re: Script Shortcut problem

    How do you activate the script? I wonder if the keyboard shortcut works in that context.
    RTR VII Developer

  8. #8
    Indiana Jones of Modding! Member Patrizius's Avatar
    Join Date
    Oct 2007
    Posts
    103

    Default Re: Script Shortcut problem

    with the show_me...
    normally.the other stuffs are working well.And i have tried everything(to include it in monitors and event).I'm pretty sure it depends on the sintax ;).
    Ideator,Scripter and Team Leader of RES BELLICAE modding project.Come visit us on http://www.twcenter.net/forums/forumdisplay.php?f=603

  9. #9

    Default Re: Script Shortcut problem

    What events are you using to trigger it?

    I believe card_manager can only be used in the context of a battle (according to https://forums.totalwar.org/vb/showp...25&postcount=5), where disband and select_all refer to disbanding a group and selecting all units.

    If you look in the .exe, it has things like:
    C:\barbi_daily\code\ui\ui_card_manager.cpp
    card_manager: select, assign, orders_ungroup, orders_group, select_prev_grp, select_next_grp, dec_xp, inc_xp, disband, select_melee, select_missile, select_siege, select_infantry, select_cavalry, select_prev, select_all, select_next, deselect_all

    If, for eample, your script has "suspend_during_battle on", monitors wouldn't work.
    Last edited by HouseOfHam; 06-11-2008 at 07:19.
    RTR VII Developer

  10. #10
    Indiana Jones of Modding! Member Patrizius's Avatar
    Join Date
    Oct 2007
    Posts
    103

    Default Re: Script Shortcut problem

    i understand ;)
    Ideator,Scripter and Team Leader of RES BELLICAE modding project.Come visit us on http://www.twcenter.net/forums/forumdisplay.php?f=603

  11. #11

    Default Re: Script Shortcut problem

    You realize you can't disband units while in battle mode, right?...

    I take it you're trying to do something related to a "loss of control over your units in battle" script, then. I suppose, you could try using kill_unit on a labeled_unit, instead.
    Last edited by HouseOfHam; 06-11-2008 at 21:18.
    RTR VII Developer

  12. #12
    Indiana Jones of Modding! Member Patrizius's Avatar
    Join Date
    Oct 2007
    Posts
    103

    Default Re: Script Shortcut problem

    no ihave already maded it ;).I was under the impression disband was refered to the unit disband in strat map,where you send home the units you select.Unfortunally it was not that one...Maybe you know which one is(and i will be vey pleased to know even the "select all card" in the strat map army )
    Ideator,Scripter and Team Leader of RES BELLICAE modding project.Come visit us on http://www.twcenter.net/forums/forumdisplay.php?f=603

  13. #13

    Default Re: Script Shortcut problem

    You can't do that. :(
    RTR VII Developer

  14. #14
    Indiana Jones of Modding! Member Patrizius's Avatar
    Join Date
    Oct 2007
    Posts
    103

    Default Re: Script Shortcut problem

    i realised it :( . Thanks for the support ;)
    Ideator,Scripter and Team Leader of RES BELLICAE modding project.Come visit us on http://www.twcenter.net/forums/forumdisplay.php?f=603

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