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 5 - Modders Workshop > Thread: Start with artifacts
Thread: Start with artifacts
Jaylo
Jaylo

Tavern Dweller
posted December 06, 2023 03:09 PM
Edited by Jaylo at 15:17, 06 Dec 2023.

Start with artifacts

Is there code that can be put into the campaign heroes .xdb files that can have them start with an artifact or does this have to be done by script?
I noticed in the actual scenerio map .xdb for the start characters have this single entry "<artifactIDs/>".

Will this add artifacts to the start hero? If so what is the correct syntax?

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


Admirable
Omnipresent Hero
Endless Revival
posted December 07, 2023 08:41 AM

I have never tried but I would guess..

<artifactIDs>
[artifact name]
</artifactIDs>

You can find the internal artifact names in artifacts.xdb in RefTables folder in Data. Or the Editor Documentation folder in the game's directory I would imagine.

Take that with a grain of salt as I cannot check if this works atm.
____________
H5 is still alive and kicking, join us in the Duel Map discord server!
Map also hosted on Moddb

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

Tavern Dweller
posted December 07, 2023 10:15 AM
Edited by whereaslibrary at 10:17, 07 Dec 2023.

Jaylo said:
Is there code that can be put into the campaign heroes .xdb files that can have them start with an artifact or does this have to be done by script?
I noticed in the actual scenerio map .xdb for the start characters have this single entry "<artifactIDs/>".

Will this add artifacts to the start hero? If so what is the correct syntax?


Granted, it's hard to figure out what the code is.

____________

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


Admirable
Omnipresent Hero
Endless Revival
posted December 07, 2023 11:09 AM

This is a little unrelated but I kinda wish I had edited my campaign heroes like you plan to. I hate when you get wm and a mission has no town or wm factory nor do your warmachines carry over between missions.
____________
H5 is still alive and kicking, join us in the Duel Map discord server!
Map also hosted on Moddb

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

Tavern Dweller
posted December 07, 2023 05:14 PM

I added the section below to the <Editable> part of Isabell's xdb and outside of the editable section and it didn't work.

<artifactIDs>
<Item>ARTIFACT_RING_OF_LIFE</Item>
</artifactIDs>

I then tried replacing the code line <artifactIDs/> found in Isabell's section in C1M1.xdb with the same code above and that didn't work either.
As a test i changed her starting squires to ten which did change so i have the right map file.


 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.0189 seconds