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?
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.
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
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.