solitaire345 Wrote:I found a table which holds setup of arrow towers. It is located at 0x63CF88 and stores the following values:
Code:
00000000 CreatureID dd ? ; base 10
00000004 MainTowerX dd ? ; base 10
00000008 MainTowerY dd ? ; base 10
0000000C LowTowerX dd ? ; base 10
00000010 LowTowerY dd ? ; base 10
00000014 UpTowerX dd ? ; base 10
00000018 UpTowerY dd ? ; base 10
0000001C MissileName dd ? ; offset (00000000)
Here's a function to change graphics of any town. The paremeters are:
x1 - town type; x2 - shooter ID; x3-x8 - X; Y coordinates for turrets (middle, lower, upper); x9 - pointer to missile def.
Notes:
1. There is no backup, so once changed, the setup will remain until h3era.exe is restarted.
2. Changing creature does not affect the power of arrow towers.
3. Using this function after BA0 trigger will have no effect in battle, because that table is copied to temporary location for the duration of combat.
4. creature images are cropped, so some creatures will look wrong (like this).