Re: Script Shortcut problem
Going by preferences\keys.dat, it should be card_manager for both of them.
Re: Script Shortcut problem
Re: Script Shortcut problem
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.
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...
Re: Script Shortcut problem
How do you activate the script? I wonder if the keyboard shortcut works in that context.
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 ;).
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.
Re: Script Shortcut problem
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.
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 )
Re: Script Shortcut problem
Re: Script Shortcut problem
i realised it :( . Thanks for the support ;)