PDA

View Full Version : available_ui_element_ids.txt?



Monkwarrior
10-02-2005, 10:48
Where can I get this file?
In docudemon_commands.txt it is said that in available_ui_elements_ids.txt there is a list with all the ui_elements to be used in scripting in combination with ui_flash_start or select_element.

Thanks in advance.:bow:

Epistolary Richard
10-02-2005, 12:58
Aha, you have asked one of the great mysteries of RTW scripting, for many years no one - no matter how hard they searched with hex editors through hidden files - could find such a thing.

Fortunately, with the second coming of Jerome many of these eternal questions have been answered:

https://forums.totalwar.org/vb/showpost.php?p=929325&postcount=5

:grin:

Monkwarrior
10-02-2005, 20:32
Thanks for your patience, ER.:bow: I had read that thread when it had been posted, but I had completely forgotten.:embarassed:

As you probably imagine, I'm trying to destroy buildings through script.
For the moment I'm able to select the settlement, to show the building cards in that settlement, but my problem now is how to select the corresponding building card to simulate a mouse click on it.

Any idea?

Epistolary Richard
10-03-2005, 00:10
Nope, that's where I got stuck as well. I think you'll find there's a point_at command that could be used to circle a building, but there's nothing that allows you to highlight it for the purposes of auto-clicking on it.

That's where I got to, do let us know if you get any further :beam:

Monkwarrior
10-03-2005, 11:22
Nope, that's where I got stuck as well. I think you'll find there's a point_at command that could be used to circle a building, but there's nothing that allows you to highlight it for the purposes of auto-clicking on it.

That's where I got to, do let us know if you get any further :beam:
Even I was unable to do that.:embarassed:
Could you give me the correct syntax for the highlight? I've used point_at_card but it doesn't work for me with this syntax
point_at_card building muster_field with and without 1 at the end. There exists point_at_unit_card, but unfortunately there is no reference in the commands to any "point_at_building_card".
What about moving the cursor? Would it be possible to place it on the card?

If this is impossible, the only way should be through human participation, that is a sort of guided tutorial. It would be necessary to disable_entire_ui and send the message that the building must be destroyed. Only in case this is detected the ui would be again enabled. I'll try this approach.~;)

Epistolary Richard
10-03-2005, 11:49
I'm rather hazy on this, so I might be wrong, but try using the complex name rather than the building name and see if that works.