"Build Gate" Hotkey

Here you can post about your scenario's, mods, custom maps and YouTube channels!
User avatar
United States of America Ikilled4penguins
Skirmisher
Posts: 123
Joined: Feb 6, 2016
ESO: Ikill4penguins

"Build Gate" Hotkey

Post by Ikilled4penguins »

Disclaimer: This article is for those familiar with modifying hotkeys; modify hotkeys at your own risk and always make backups. For newbies, here's an intro to modding:http://aoe3.heavengames.com/modding/tutorials/basis/introduction/index.shtml

I think for most of us, there has been a few times when we wish we had a hotkey to build a gate.

Code: Select all

      
      <keymapdata>
         <name>Build Gate</name>
         <displayname>Build Gate</displayname>
         <event>control-w</event>
         <context>game</context>
         <command>uiTransformSelectedUnit("CWallGate")</command>
      </keymapdata>


Important caveat: Even after you transform the gate, if you continue to hit the hotkey, it will continue to waste 50 wood on the already converted gate!! It also converts single pillars into gates. So your wall selection skills need to be sharp :lol:
User avatar
No Flag thebritish
Jaeger
Posts: 3787
Joined: Jul 18, 2015

Re: "Build Gate" Hotkey

Post by thebritish »

Where to put this?
krichk wrote: For some reason, you want the world to know that you're brave enough to challenge thebritish
User avatar
Netherlands Mr_Bramboy
Retired Contributor
Donator 01
Posts: 8219
Joined: Feb 26, 2015
ESO: [VOC] Bram
Location: Amsterdam

Re: "Build Gate" Hotkey

Post by Mr_Bramboy »

C:\Users\Bram\Documents\My Games\Age of Empires 3\Startup

Add the following line to user.con

map ("g", "game", "uiTransformSelectedUnit(\"CWallGate\")")

This will prevent the bug you described where you waste wood on multiple gates on one wall.
User avatar
United States of America Ikilled4penguins
Skirmisher
Posts: 123
Joined: Feb 6, 2016
ESO: Ikill4penguins

Re: "Build Gate" Hotkey

Post by Ikilled4penguins »

Ah thank you!!
User avatar
United States of America musketeer925
Retired Contributor
Donator 01
Posts: 2484
Joined: Mar 28, 2015
ESO: musketeer925

Re: "Build Gate" Hotkey

Post by musketeer925 »

Pretty cool!
User avatar
Sweden leaf4
Dragoon
Posts: 268
Joined: Sep 27, 2015

Re: "Build Gate" Hotkey

Post by leaf4 »

hack - garja
thebritish wrote: AA>going fortress
User avatar
Great Britain Panmaster
Skirmisher
Posts: 166
Joined: Jan 1, 2016

Re: "Build Gate" Hotkey

Post by Panmaster »

Asian civs don't have the cWallGate tech enable hence why the AI can't make gates as Japan, China or India. I wonder if that ui command is affected by the same oversight by BigHugeGames?

I tried to use chat commands to give the Asian AI gates but it was a waste of time.
TAD AI Reference Guide
"Better to remain silent and be thought a fool than to speak out and remove all doubt." - Abraham Lincoln
User avatar
Poland pecelot
Retired Contributor
Donator 03
Posts: 10459
Joined: Mar 25, 2015
ESO: Pezet

Re: "Build Gate" Hotkey

Post by pecelot »

Panmaster wrote:hence why the AI can't make gates as Japan, China or India

The AI never walls themselves anyways.

Who is online

Users browsing this forum: No registered users and 5 guests

Which top 10 players do you wish to see listed?

All-time

Active last two weeks

Active last month

Supremacy

Treaty

Official

ESOC Patch

Treaty Patch

1v1 Elo

2v2 Elo

3v3 Elo

Power Rating

Which streams do you wish to see listed?

Twitch

Age of Empires III

Age of Empires IV