Добавлено: Пн Июл 11, 2016 16:36
Заголовок сообщения:
From my experimentation you can easily substitute one building for another. However, it seems you cannot easily increase the total number of buildings.
Right, onto the explanation. The text in italics is not necessary for you to read to perform the change, but if you want more info you can gain it by reading it.
First of all, open up build_group.var.
Scroll down to:
/11 Units4
Max: 1
Name: Produces fourth rank units;
Change the 1 to a 2. If you want to increase the max beyond 2, read the information below.
You don't need to read this, but if you want more information you can gain it by reading it: The number here is the max number of "group 11" buildings. Group 11 is where all the Tier 4 unit producing buildings are right now. HOWEVER, there are only so many slots on the recruitment screen. If I recall correctly, there is currently only one free slot. Thus, if you want to add more than one recruitable unit you need to clear up slots by, for example, reducing "max" in "Units1", "Units2" or "Units3"
Now open up inner_build.var.
Copy the following text:
-----------------------------------------------------------------------------
/171
Name: Elephant Pen;
GoldCost: 7000
GemCost: 0
Group: 11
Slot: 14
Upgrade: 0
Hidden: 0
Level: 8
Buildings: (149, 155)
Resource: (2, 2, 6, 7, 7, 7)
*Ability*:
Ability: 8
Param1: 58
Param2: 0
Ability: 15
Param1: 47
Param2: 1;
-----------------------------------------------------------------------------------------
Find the building to be substituted. Let's say "School of Necromancy".
Paste on top of the following text (that is to say, overwrite it with what you copied earlier):
---------------------------------------------------------------------------
/22
Name: School of Necromancy;
GoldCost: 40
GemCost: 30
Group: 2
Slot: 34
Upgrade: 0
Hidden: 0
Level: -1
Buildings: (3, 6)
Resource: (4, 4)
Ability:
Ability: 60
Param1: 0
Param2: 0
Ability: 2
Param1: 0
Param2: 0
Ability: 27
Param1: 6
Param2: 0
Ability: 46
Param1: -2
Param2: 0;
----------------------------------------------------------------------------
Change " Elephant Pen;" to "name: [whatever you want the building to be called]".
Keeo "group: 11" as "group: 11"
The structures are put into certain groups. group 11 is where the other tier 4 producing buildings are right now.
Change "slot: 14" to "slot: 12"
"slot: [number]: seems to specify the order of appearance of the buildings on the build screen.
Under ability 8 there is "param1: 58". Change this to "param2: [insert number of unit you wish recruitment of to be enabled by this building]"
"ability 8" is the ability of the building to enable recruitment of a particular unit/s. "Param1" is where this unit is specified. Perhaps "Param2" is for a second recruitable unit. It is perhaps even possible to add "param3", "param4", e.t.c this way to have a building offer as many units as you like.
"building: (number, number, e.t.c)" is where you specify the prerequisite buildings ("Slinger School" has none). The prerequisites are put in as the buildings' assigned numbers (For example, to set "School of Necromancy" as the sole prerequisite of a building: "building: (22)."
To find the unit number, open up unit.var and the press ctrl+F to open up the "find text" function. Type the name of the unit. The number you're looking for will appear right above "name: [unit name]"
The unit's profile looks like this (I have bolded the number):
-------------
/66
Name: Giant;
Level: 4
Life: 100
Attack: 25
CounterAttack: 25
Defence: 3
RangedDefence: 3
Resist: 4
Speed: 2
RangedAttack: 20
ShootingRange: 5
Ammo: 3
Stamina: 24
Morale: 11
Exp: 200
ExpMod: 300
GoldPrice: 450
GemPrice: 0
GoldPayment: 90
GemPayment: 0
Subtype: (1, 24)
Analogs: (63)
UnitClass: 6
Karma: -1
SoundHit: 150
SoundShoot: 151
SoundShootHit: 113
SoundDeath: 152
Missile: 4
Resource: (0)
Abilityes:
Siege: 101
Gather_Ammo: 53
Hill_Dweller: 593;
Lvl 01 upgrades: (3, 4; 4, 4; 13, 4; 31, 4; 47, 4)
Lvl 02 upgrades: (31, 4; 7, 4; 10, 4; 21, 4)
Lvl 03 upgrades: (3, 4; 4, 4; 34, 4; 100, 4)
Lvl 04 upgrades: (31, 4; 7, 4; 10, 4; 593, 4)
Lvl 05 upgrades: (36, 4; 4, 4; 13, 4; 21, 4)
Lvl 06 upgrades: (31, 4; 7, 4; 16, 4; 100, 4)
Lvl 07 upgrades: (3, 4; 4, 4; 10, 4)
Lvl 08 upgrades: (36, 4; 7, 4; 13, 4; 21, 4)
Lvl 09 upgrades: (3, 4; 38, 4; 100, 4)
Lvl 10 upgrades: (31, 4; 7, 4; 10, 4; 544, 5)
Lvl 11 upgrades: (36, 4; 5, 4; 13, 4; 21, 4)
Lvl 12 upgrades: (32, 4; 38, 4; 16, 4; 100, 4)
Lvl 13 upgrades: (25, 4; 5, 4; 10, 4; 487, 4)
Lvl 14 upgrades: (37, 4; 8, 4; 13, 4; 21, 4)
Lvl 15 upgrades: (25, 4; 38, 4; 34, 4; 100, 4)
Lvl 16 upgrades: (32, 4; 6, 4; 40, 4)
Lvl 17 upgrades: (37, 4; 8, 4; 14, 4; 22, 4)
Lvl 18 upgrades: (32, 4; 38, 4; 16, 4; 100, 4)
Lvl 19 upgrades: (25, 4; 8, 4; 14, 4)
Lvl 20 upgrades: (37, 4; 6, 4; 11, 4; 22, 4)
Lvl 01 loot: (0, 0)
Lvl 02 loot: (0, 0)
Lvl 03 loot: (0, 0)
Lvl 04 loot: (0, 0)
Lvl 05 loot: (0, 0)
Lvl 06 loot: (0, 0)
Lvl 07 loot: (0, 0)
Lvl 08 loot: (0, 0)
Lvl 09 loot: (0, 0)
Lvl 10 loot: (0, 0)
Lvl 11 loot: (0, 0)
Lvl 12 loot: (0, 0)
Lvl 13 loot: (0, 0)
Lvl 14 loot: (0, 0)
Lvl 15 loot: (0, 0)
Lvl 16 loot: (0, 0)
Lvl 17 loot: (0, 0)
Lvl 18 loot: (0, 0)
Lvl 19 loot: (0, 0)
Lvl 20 loot: (0, 0)
------------
Take that number and insert it as mentioned before.
Building prerequisites are done by building number, so in this example even though the school of necromancy has been replaced, you can still build the higher tier necromancy spell buildings since their prerequisite, "building number 22", still exists.
[edit: note that in example, the new buildings will not appear in the construction menu BUT it CAN be built by pressing the "navigating" to it by clicking on one of it's prerequisite buildings. It will appear in the "this building is a prequisite to so and so buildings" section. You can click on it's icon there and then click on "build". I'm not exactly sure how the "slots" work but if you want the building to appear on the construction screen as normal buildings do then substitute the new building for one in the same group (example: replace "Elephant Pen" with "Giant School".]
_________________
Formerly known as Dasdsad.