I'll start off with a question I'm trying to solve: I want a function usable in triggers that can retrieve the tactic of a unit. The closest I've found is
int aiUnitGetTactic(int unitID)
But ai functions don't seem to work in RMS.
Basically, I'm trying to create an artificial scoreboard for the next version of my obs UI that can also show for e.g. the firepit dance each player is using or wonder tactic.
Any ideas?
________
Also I will share number of interesting UI discoveries I've made and have/will be incorporating into my UI
http://i.imgur.com/uZlW68s.jpg <- old screenshot
(These may or may not have been found before):
formatText attributes:
________
TextureID(int) example use (copy paste into chat):
You can create 100% functional menu checkbox toggles for booleans in your RMS: Basically you need the configindex to be an existing boolean config which is useless, and ensure that your config (e.g. below is wmClouds) and your variable are in the same state at the start of the map (use configDef, configUndef).
Where the event associated with 99999 toggles a boolean.
Retired content creator. Experience in custom triggers, xs injection, UI modding, aoe3 in general. I'll probably be back for AoE3: DE if they lack a good observer mode.
The work I'm proudest of:
An advanced observer mode for AoE3 made entirely from a combination of UI modding and xs injection
link to eso-community.net thread
int aiUnitGetTactic(int unitID)
But ai functions don't seem to work in RMS.
Basically, I'm trying to create an artificial scoreboard for the next version of my obs UI that can also show for e.g. the firepit dance each player is using or wonder tactic.
Any ideas?
________
Also I will share number of interesting UI discoveries I've made and have/will be incorporating into my UI
(These may or may not have been found before):
formatText attributes:
Allows you to use things like
formattextusedatareplace=""
{playerName(p)}
in a formatText gadget. VERY useful.Allows you to use formatting e.g.
textmarkup=""
in a formatText. I removed this property from the score gadget and found a very useful function, TextureID(int) - see below.
<st> < /st>
[/code]
and
[code]
<color=..>
Converts line feeds, i.e. \n
formattextconvertuserlf=""
Needed in some form to guarantee that the formatting above loads properly
datarefreshrate="200"
________
TextureID(int) example use (copy paste into chat):
is practically a blank space. Very useful for formatting.<
icon=100(TextureID(3))>
is a bar with a green mask over it. Note that the (0,1,0) - R,G,B at the end can also be adapted to<
icon=100(TextureID(80))(0,1,0)>
(I've yet to replace the current, total strings with strings from the stringtable)
({playerColor(p)})
[/code] to make player-coloured bars.
Note that if you've modded the game with new textures, TextureID(4000) for e.g. may not be the same for you as it is for other people.
________
You can create dropdowns to trigger events in your RMS/Scenario: below is an excerpt from my UI as an example
[code]
<gadget name="Spec_ResLineOptions" background="ui\core_ui\dropdown_background2" dropdownbuttonart="ui\core_ui\minimize_down" textmarkup="" type="textField" dropdowndistance="140" textfont="Arial Nodrop For SE" textfontsize="12" textcolor="0 0 0" size1024="700 27 850 45">
<dropdown command="trackInsert();trackAddWaypoint();trackPlay(-1,20000);"> Current Resources< /dropdown>
<dropdown command="trackInsert();trackAddWaypoint();trackPlay(-1,20001);"> Total Resources< /dropdown>
</gadget>
You can create 100% functional menu checkbox toggles for booleans in your RMS: Basically you need the configindex to be an existing boolean config which is useless, and ensure that your config (e.g. below is wmClouds) and your variable are in the same state at the start of the map (use configDef, configUndef).
<gadget name="Spec_Menu" type="menu" size1024="0 0 100 20" bevel="" textfont="Arial nobold nodrop" textfontsize="12" background="ui\editor\editor_background" tilebackground="" buttonsize1024="90 19">
<submenu title="Example" accelerator="E">
<submenu title="Toggle Advanced Info" accelerator="T" configindex="wmClouds"> trackAddWaypoint();trackPlay(-1,99999);< /submenu>
</submenu>
</gadget>
Where the event associated with 99999 toggles a boolean.
The work I'm proudest of:
An advanced observer mode for AoE3 made entirely from a combination of UI modding and xs injection
link to eso-community.net thread
[This message has been edited by Aizamk (edited 10-30-2020 @ 06:15 AM).]