Wall Connector Upgrade to Wall Tower?

Modding, Map Editor, IES Scripting and Other Questions
Post Reply
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

Wall Connector Upgrade to Wall Tower?

Post by PaulStretch »

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.

User avatar
Dr.MonaLisa
High Representative
Posts: 8697
Joined: 17 Jun 2010, 11:21
Location: Poland
Has thanked: 49 times
Been thanked: 108 times

Re: Wall Connector Upgrade to Wall Tower?

Post by Dr.MonaLisa »

Hmmm...

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"""
Makes me think it's hardcoded, since it has a special button for it...
EE2_ScreenShot_2022-12-18_02.56.16.891.jpg
EE2_ScreenShot_2022-12-18_02.56.16.891.jpg (478.96 KiB) Viewed 668 times
Best regards,
Dr.MonaLisa
Ministry of Game Affairs
Department of Control and Complains
These users thanked the author Dr.MonaLisa for the post:
PaulStretch
PaulStretch
Posts: 112
Joined: 27 Jun 2021, 16:10
Has thanked: 45 times
Been thanked: 13 times

Re: Wall Connector Upgrade to Wall Tower?

Post by PaulStretch »

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.
Post Reply

Return to “Questions”