Hi all. I want to write a script to achieve this result: Every time I press the "disband unit" button, it will create a certain unit in a certain city.
Code:
script
declare_counter loop
set_counter loop 1
monitor_event ButtonPressed ButtonPressed disband_unit
console_command create_unit Bordeaux "Dismounted Feudal Knights80" 1
end_monitor
while I_CompareCounter loop = 1
end_while
end_script
As you can see, the problem is I don't know what the real button ID of "disband unit". The CA docudemon says it can be found in a file called available_ui_elements.txt. But where can I find it?
Bookmarks