Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
HOMM1: info forum | HOMM2: info forum | HOMM3: info mods forum | HOMM4: info CTG forum | HOMM5: info mods forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Heroes 3.5 - WoG and Beyond > Thread: Change Towns Line-Up
Thread: Change Towns Line-Up
cronex
cronex


Hired Hero
C# Coder
posted March 30, 2019 11:32 AM

Change Towns Line-Up

Hey!

I was wondering if any of you know if there is a tutorial available to change the towns lineup ?

I'm aware that there is one tutorial that shows you how to do it, but for one map only.

I want to change the line up permanent.

Thanks in advance,

Cronex.
____________
Treat others the way you want to
be treated.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Macron1
Macron1


Supreme Hero
posted March 30, 2019 11:53 AM

cronex said:
Hey!

I was wondering if any of you know if there is a tutorial available to change the towns lineup ?

I'm aware that there is one tutorial that shows you how to do it, but for one map only.

I want to change the line up permanent.

Thanks in advance,

Cronex.

In vcmi you can do it easily.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
cronex
cronex


Hired Hero
C# Coder
posted March 30, 2019 11:55 AM

All right, you mind explain?
____________
Treat others the way you want to
be treated.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Macron1
Macron1


Supreme Hero
posted March 30, 2019 02:36 PM

cronex said:
All right, you mind explain?



https://wiki.vcmi.eu/Town_Format

Look for block "creatures".

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
cronex
cronex


Hired Hero
C# Coder
posted April 02, 2019 12:09 PM

There we go. Cheers mate.
____________
Treat others the way you want to
be treated.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
dj
dj


Promising
Supreme Hero
Always loyal to HC
posted April 03, 2019 04:48 AM
Edited by dj at 05:57, 03 Apr 2019.

If we are still at it....




// List of creatures available on each tier. Number of creatures on each tier
// is not hardcoded but it should match with number of dwelling for each level.
// For example structure below would need buildings with these id's:
// first tier: 30 and 37, second tier: 31, third tier: 32, 39, 46
"creatures" :
[
       ["centaur", "captainCentaur"],
["dwarf"],
["elf", "grandElf", "sharpshooter"],
...
],





Does this mean that the sharpshooter is the 3rd upgrade?
can alternative creatures be represented somehow like this or does it need core scripting?

        [
               ["centaur", "captainCentaur"],
               ["dwarf"],
               [ ["elf", "grandElf", "sharpshooter"], ["x", "y", "z"] ]
...
],

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
fiorin
fiorin


Promising
Famous Hero
☠️
posted April 03, 2019 08:44 PM
Edited by fiorin at 20:46, 03 Apr 2019.

dj said:
If we are still at it....
Does this mean that the sharpshooter is the 3rd upgrade?
can alternative creatures be represented somehow like this or does it need core scripting?

        [
               ["centaur", "captainCentaur"],
               ["dwarf"],
               [ ["elf", "grandElf", "sharpshooter"], ["x", "y", "z"] ]
...
],



That doesnt mean Sharpshooter is 3rd upgraded. Just if on Grand Elf have the upgraded reference. If not, the sharpshooter works like an alternative one on same building.

That way, you can have a bunch of creatures on same building, but not related. Something like a golem factory.

Ps: Of course im talking about VCMI's json. If the question was on Wog script language, just ignore my answer

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
AncientDruids
AncientDruids


Famous Hero
(Andruids for short)
posted April 04, 2019 02:44 AM
Edited by AncientDruids at 02:56, 04 Apr 2019.

dj said:
Does this mean that the sharpshooter is the 3rd upgrade?


That's a start, but only a fraction of what you'll have to do. There are also three other things to make the building appear correctly in a town and townhall screens:
- add a building information with certain id in the buildings node (often separate json) of the town json (for 3rd level's second upgrade the id would be 46), or else you won't have an upgraded building to buy Sharpshooters or upgrade Grand Elves.
- add a new def and information about its location in the structures node (often separate json) of the town json, or else your new building won't show on the town screen (but maybe you're ok with that)
- add a new bitmap in the townhall building icons def as a certain frame (same as its id, which would be 46th for 3rd level's second upgrade building) or else you'll get a black rectangle in the townhall building menu. As before, if you're OK with unmodified Upg. Homestead, just copy its frame so that it's 46th in order of frames. If you don't plan to add 2nd upgrades for Centaurs and Dwarfs, just paste whatever in frames 44th and 45th (even Upg. Homestead Icon).

If that sounds too confusing, download one of the town mods that have 2nd upgrades (Abyss and Underworld Castle from the top of my head) and see the sctructure for yourself.

Making alternative creatures in VCMI is somewhat trickier and it essentially requires making 2nd and 3rd upgrades of according levels and making them recruitable in a new dwelling. It's hard to explain, so download one of Ruins' earlier builds with alternative unit to see how it's done.
dj said:
[ ["elf", "grandElf", "sharpshooter"], ["x", "y", "z"] ]

- this is definitely not going to work.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
bloodsucker
bloodsucker


Legendary Hero
posted April 05, 2019 01:17 AM

cronex said:
I was wondering if any of you know if there is a tutorial available to change the towns lineup ?


I used the script to turn Conflux into a neutral town (cames in the Wog scripts) and I didn't need anything else but the list of creature Id's that is in the help files.
____________

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread »
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0432 seconds