Wall Connector Upgrade to Wall Tower?
-
- Posts: 112
- Joined: 27 Jun 2021, 16:10
- Has thanked: 45 times
- Been thanked: 13 times
Wall Connector Upgrade to Wall Tower?
I'm trying to create a system where you can upgrade some of your buildings, but the problem is the veteran and elite upgrades apply to all units of the same type. So I'm wondering if I can use the wall upgrade to tower feature as the basis for upgrading buildings. I can't figure out how the game does this though. The wall tower is listed in the techtreenode, but it's hosted by citizens and not the tower connectors. So that not how it's done. It's not listed anywhere else. I'm curious if anyone knows how the tower upgrade for walls works.
- Dr.MonaLisa
- High Representative
- Posts: 8708
- Joined: 17 Jun 2010, 11:21
- Location: Poland
- Has thanked: 49 times
- Been thanked: 108 times
Re: Wall Connector Upgrade to Wall Tower?
Hmmm...
dbunittypeattributes.ddf:
dbuiunitactions.csv:
Makes me think it's hardcoded, since it has a special button for it...
dbunittypeattributes.ddf:
Code: Select all
UnitTypeAttribute HasTowerUpgradeButton {
UnitTypeInstances = [ "Wall_Connector" ]
}
dbuiunitactions.csv:
Code: Select all
unit_action_towerUpgrade,TowerGateUpgradeButton,,,,0,0,0,1,1,tt_unitact_towerUpgrade,vtt_unitact_towerUpgrade,HasTowerUpgradeButton,0,1,"""UIUnitCommand_TowerUpgrade""",,"""rightMouseArg=cancel"""
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
- These users thanked the author Dr.MonaLisa for the post:
- PaulStretch
-
- Posts: 112
- Joined: 27 Jun 2021, 16:10
- Has thanked: 45 times
- Been thanked: 13 times
Re: Wall Connector Upgrade to Wall Tower?
Yeah. It crashes if I add one of my buildings to the attribute group. When I added "wall" to it, it didn't crash. It had the correct tooltip description but had the button for a gate and wouldn't actually upgrade the wall section. I'm assuming something has to have the connect attribute. Even if I could get it not to crash there doesn't seem to be a way to actually change what it upgrades to.