You must be logged in to post messages.
Please login or register

Modding Discussions
Moderated by Alexastor, MosheLevi, Mister SCP

Hop to:    
Welcome! You are not logged in. Please Login or Register.5 replies
Age of Empires III Heaven » Forums » Modding Discussions » [HELP]New mod
Bottom
Topic Subject:[HELP]New mod
L4urr
Skirmisher
posted 07-09-20 04:37 AM EDT (US)         
I want to create a mod for singleplayer.
I am new to modding and I want to learn.

I have command spawnUnits("Settler",1,UnitID)

I want to pass the value from currentUnitID to UnitID

Example:
spawnUnits("Settler",1,currentUnitID)

But i dont know how.
Can someone help me?
AuthorReplies:
AlistairJah
Skirmisher
posted 07-31-20 03:52 PM EDT (US)     1 / 5       
Hello

IIRC, you can't pass a function in a function in UIs and console. You must use UHC and implement an entirely new function in a UHC Plugin. Search for "AOE3 Unhardcoded Github" on Google for more information.
L4urr
Skirmisher
posted 08-01-20 02:07 PM EDT (US)     2 / 5       
Thanks for info
I have another question.
I want to modify UI and make a dropdown list with commands for a editor.
It is possible to make a hotkey to select the last option from dropdown list?

Example dropdown list:
 <gadget type="formatText" textfont="SmallButtonFont" textfontsize="10" size1024="255 255 255 255" textcolor="255 255 255" textcentervert="">Options</gadget>
<gadget type="textField" textfont="StatAreaText" textfontsize="12" size1024="255 255 255 255" listitemheight="20" background="ui\core_ui\dropdown_background2" dropdownbuttonart="ui\core_ui\minimize_down" textcolor="0 0 0">
<dropdown command="Command">Option 1</dropdown>
</gadget>
AlistairJah
Skirmisher
posted 08-03-20 02:36 AM EDT (US)     3 / 5       
I'm pretty sure you're _Lakar_ from Improvement Mod's Discord, but I'll write the answer here anyway (just a copy-paste):

You cannot assign a hotkey to a dropdown item, but you can "jump" to an item by pressing the key that corresponds to its first letter
L4urr
Skirmisher
posted 08-05-20 10:35 AM EDT (US)     4 / 5       
Yeah, that's my name on discord

Could you give me an example code?
I don't understand exactly how to do this.
AlistairJah
Skirmisher
posted 08-06-20 03:52 AM EDT (US)     5 / 5       
You don't need to code it, you just press the first letter of the droplist item.
You must be logged in to post messages.
Please login or register

Hop to:    

Age of Empires III Heaven | HeavenGames