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 > Library of Enlightenment > Thread: Where are treasure values?
Thread: Where are treasure values?
Pollo2002
Pollo2002


Famous Hero
posted October 26, 2015 09:29 AM

Where are treasure values?

To determinate treasure placement, the RMG uses treasure value of objects. I want to modify those values, but donīt know where they are.
____________

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


Known Hero
professional ERM™ scripter
posted October 26, 2015 09:54 AM
Edited by potmdehex at 10:34, 26 Oct 2015.

As an alternative to Salamandre's easier answer below you would be achieving more fine-tunable results if implementing post-processing for generated maps using already available h3m parsing/writing/handling code.

EDIT: Removed part obsolete by Salamandre's answer.

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


Admirable
Omnipresent Hero
Wog refugee
posted October 26, 2015 10:24 AM

Open rmg.txt in text editor (don't use notepad), then scroll right until you find Treasure column. There should be 3 of them, one for starting area, the other two for zones in-between. Then you can play with values, knowing that if higher than 90000 there will be no change, from what I recall.
____________
Era II mods and utilities

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


Known Hero
posted October 26, 2015 11:11 AM

I think he wants to change base value of, say, pile of gems from its default 3000 to a different value.

I have no idea where to find them exactly.

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


Known Hero
professional ERM™ scripter
posted October 26, 2015 11:33 AM

Kicferk said:
I think he wants to change base value of, say, pile of gems from its default 3000 to a different value.

I have no idea where to find them exactly.

Sounds to me like what OP wants to do is change the inherent value assigned to objects determining their worth.

For example, the RMG won't put what it considers one of the greatest artifacts in the game behind a really weak monster whereas it would gladly place a weak artifact there instead. This is because of the artifacts' "treasure value"s.

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


Admirable
Omnipresent Hero
Wog refugee
posted October 26, 2015 11:41 AM

potmdehex said:
For example, the RMG won't put what it considers one of the greatest artifacts in the game behind a really weak monster whereas it would gladly place a weak artifact there instead. This is because of the artifacts' "treasure value"s.


Been a long time I didn't mess with the rmg, but I think values for monsters then "goodies" (artifacts, resources) are different. If you modify monsters to low, then you will indeed get relics guarded by weak monsters. Of course the original rmg wont do that because the values inside are accorded.

But one can change them.


____________
Era II mods and utilities

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


Promising
Legendary Hero
fallen artist
posted October 26, 2015 01:01 PM
Edited by Warmonger at 13:02, 26 Oct 2015.

They are hardcoded. Sav reversed all of RMG objects and put them here. You can try to ask him how did he do it.
____________
The future of Heroes 3 is here!

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


Famous Hero
posted October 26, 2015 07:08 PM

Thanks for the reply, I guess if they are hardcoded, there is no way i can modify them
____________

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


Legendary Hero
posted October 26, 2015 09:15 PM

Of course there is, the RMG templates are txt files that can be opened as sheets, I guess everyone else thought you already knew that.

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


Famous Hero
posted October 26, 2015 09:22 PM

bloodsucker said:
Of course there is, the RMG templates are txt files that can be opened as sheets, I guess everyone else thought you already knew that.


No, Kicferk is right, I donīt want to change the templates, I want to change the treasure values, And Warmonger claims they are hardcoded.
____________

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