Talk:Spawns/@comment-32734921-20170811010229/@comment-2A01:CB08:866E:3000:4404:1B56:AAC1:E759-20170817131939

From strive4power

One thing to note about "spawn weight": the game will check the spawns in order in the script. For example:

[['banditsmedium',10],['slaverseasy',15],['peasant',20],['banditseasy',50],['thugseasy',65],['wolveseasy',100]]

The game will make a first roll to check 'banditsmedium', then another for 'slaverseasy', and so on until it gets a check. This is why the last one is ALWAYS weighted at 100 for a certain roll, and why the weight are ordered from low to bottom. Wouldn't want 100% of battles being against wolves now, would we?

As a sidenote, if you want to add a custom encounter, try to respect the order for these reasons. Encounters can be edited/created in combatdata.gd and the roster of possible encounters in a region in exploration.gd.