Mixed Guards Explained


This is how the guards alrogithem works :

First is drawn how many guards in the guarding stack , This is the chance for each number of units in a mixed guard from 1 unit to 7 units : 40%, 25% , 16% , 8% , 4% , 4% , 3%

So a mixed guard with 7 units will have 3% chance to show up.

After that the Value of the guarding unit is splitted randomly for the number of units in the mixed guard For example letz take 2 units drawn and value guard of 7000 then any combination is possible 200-6900 , 3000-4000 ,ect ect . (The drawn number initial value is always bigger then the lowest level 1 value )

after the value is drawn for example 2000 out of 7000 the next thing to be determined is the level of the guard , A special Weight chance table is prepared based on these values : First factor is the avarage value for each level (taken from the fan manual ) These are the values :

          112 ,  level 1 *75 = 8400
          201 ,  level 2 *75 = 15075
          335 ,  level 3 *75 = 25125
          651 ,  level 4 *75 = 48825
          1221 , level 5 *75 = 91575
          2346 , level 6 *75 =175950
          5551 , level 7 *75 =416325

You can also see an example value of 75 units for each level ..

Next factor is if the value can fit inside the level for example a value of 700 can’t produce level 5 or higher units because it won’t fit the 1221 minimum for level 5.

The final factor is the number of units per stack that is best suited for the game , for example what is better usually - 65 level 1 (lets say 65 imps ) or 14 level 2 (lets say blood sisters ) The value i set is 65 as the best match for units per stack.

So each level is given a chance based on the farness number of units for that stack for that value from 65. Example : 12000 in value will make : 107 lvl 1 , 59 lvl 2 , 35 lvl 3 , 18 lvl 4 ,9 lvl 5 ,5 lvl 6 and 2 lvl 7 That means that lvl 2 has the highest chances to be selected , But ANY level here has some chance to be selected..

Last thing after a random level is drawn is a constant addition to level based on strength set in zone by template , These are the values for each strength :

      Weak = -1 ,        
      Avarage = 0 ,
      Strong = 1 ,
      Scary  = 2, 
      Impossible = 3

So if 2 was selected before on a weak settings a level 1 would be picked And if 2 was selected on a scary level then a level 4 would be picked

And as last phase a random monster at selected level is picked and the amount of units for that monster is set by dividing the value drawn with the value of the monster , There is a minimum of 1 unit if the result is below 1.0 .

Also after the monsters are drawn these 2 steps are taken (Very important to know ):

Random mood : a compltly random mood is set to the monster out of the possible values ( Friendly,Aggresive,Hostile,Wild)

Random Courage : The default courage is always fight but there is a chance of 0.05% to change the courage - Either to always join or to can flee join , So basically a random stack can potentially join , To balance that out the maximum strength of joiners are 30000 in value , This balance out the silent stalker skill which can be very usefull now .

random_map_generator_by_idan/mixed_guards.txt · Last modified: 2008/06/08 15:57 (external edit)
Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0