Editing
Template Editor
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Treasure Generation === Zone treasures are generated as groups of objects. All objects of a group are adjacent, and share the same protection (if any). Each group falls into one of the three treasure categories that you can specify in zone settings. Each category is defined by a value range and a frequency. Value range control the value of the object group (defined as the sum of individual object values), and frequency controls the amount of object groups that will be generated (the amount of object groups is proportional to the frequency, but it also depends on zone size). Each group is generated as follows. A random number '''total_value''' is generated within the value range of the group's treasure category. Then, an object with a value between '''total_value / 4''' and '''total_value''' is randomly selected among valid objects for this zone. The probability for an object to be selected is proportional to its frequency. Then, as long as the value sum '''group_value''' of already generated objects meets one of the conditions '''total_value - group_value >= 1500''' or '''group_value < total_value / 2''', another object with a value between '''0.25*(total_value - group_value)''' and '''1.25*(total_value - group_value)''' is randomly selected and added to the group. This process is repeated until none of the 2 conditions are met, or no valid object can be found within the requested value range. Object groups can be made of a single object. In HotA strength of treasure object guards that can block the road is limited to one third of zone maximum treasure value (possible bug - it looks like right now the limit is rather ~42,25% instead of 33%. Also take into an account, that number of creatures will always be lower than final value, f.e. if max value in zone is 10000, then max road block is ~4225. However, 76 pixies * 55 = 4180 < 4225, so pixies will block the road).
Summary:
Please note that all contributions to Heroes 3 wiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information