Template:Spell probability table: Difference between revisions
Jump to navigation
Jump to search
Simplify table coding and add more details |
mNo edit summary |
||
| Line 5: | Line 5: | ||
=== Mage Guild Probabilities === | === Mage Guild Probabilities === | ||
The values in this table are the probabilities of a spell appearing in a given mage guild. | The values in this table are the probabilities of a spell appearing in a given mage guild. These values are not in the game files. | ||
<span class="mw-customtoggle-SpellProbDetails" style="color:blue">'''<big>Details</big>'''</span> | <span class="mw-customtoggle-SpellProbDetails" style="color:blue">'''<big>Details</big>'''</span> | ||
| Line 17: | Line 17: | ||
</div> | </div> | ||
NOTE: The values in this table are based on the simplistic formula. If someone wants to calculate the real values and edit this table, go for it!<br> | NOTE: The values in this table are based on the rough, simplistic formula. The real values will be slightly higher. If someone wants to calculate the real values and edit this table, go for it!<br> | ||
{{sptheader}} | {{sptheader}} | ||
| Line 26: | Line 26: | ||
<div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-SpellSlotProb"> | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-SpellSlotProb"> | ||
=== Spell Slot Probabilities === | === Spell Slot Probabilities === | ||
The values in this table are the probabilities of a single spell slot containing the given spell. | The values in this table are the probabilities of a single spell slot containing the given spell. These values are what is stored in the game files. | ||
{{sptheader}} | {{sptheader}} | ||
Revision as of 14:23, 3 October 2024
Spell probabilities
NOTE: In these tables:
1) Good/Evil/Neutral factions have been colored as sometimes spells are available based on alignment.
2) A "-" means a Mage Guild of that level is not available in this town.
Mage Guild Probabilities
The values in this table are the probabilities of a spell appearing in a given mage guild. These values are not in the game files.
Details
- The formula for % chance for a spell to appear in a given mage guild is close to 1-(1-(x/100))y, where x is the value in the Spell Slot Probabilities table and y is the # of spell slots for the spell level (e.g. 5 for level 1, 2 for level 4, +1 if the town is a Tower containing a library).
- For Example: Magic Arrow has a 30% chance of appearing in a given level 1 spell slot (of which there are 5), so the chance to appear in a given mage guild is 1-(1-30/100)5=1-(0.7)5=1-0.16807 = ~83%
- BUT - this formula assumes that a spell could show up multiple times in a level which it can't. If a different spell is chosen for the first available slot, then the formula for the second available slot would be 1-(1-(x/(100-z))), where z is the value in this table of the chosen spell.
- Every subsequently chosen other spell would modify the formula for the probability of the next slot (e.g. 1-(1-(x/(100-z1-z2-z3...)))
- If a spell could appear multiple times, the formula for every slot would be 1-(1-(x/100)).
NOTE: The values in this table are based on the rough, simplistic formula. The real values will be slightly higher. If someone wants to calculate the real values and edit this table, go for it!
| School | Level | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Water | 1 | 41 | 23 | 23 | 14 | 0 | 14 | 14 | 23 | 23 | 41 | 14 |
Spell Slot Probabilities
Spell Slot Probabilities
The values in this table are the probabilities of a single spell slot containing the given spell. These values are what is stored in the game files.
| School | Level | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Water | 1 | 10 | 5 | 5 | 0 | 0 | 3 | 3 | 5 | 5 | 10 | 3 | |
| Fire | 1 | 0 | 0 | 0 | 10 | 5 | 5 | 10 | 5 | 5 | 5 | 5 | |
| Water | 1 | 10 | 10 | 5 | 5 | 0 | 5 | 5 | 10 | 5 | 5 | 5 | |
| Fire | 1 | 0 | 0 | 3 | 5 | 10 | 5 | 0 | 0 | 0 | 0 | 0 | |
| Water | 1 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | 10 | |
| Air | 1 | 5 | 10 | 5 | 5 | 5 | 10 | 5 | 10 | 10 | 10 | 10 | |
| All | 1 | 30 | 30 | 30 | 30 | 30 | 30 | 30 | 30 | 30 | 30 | 30 | |
| Fire | 1 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | |
| Water | 1 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | |
| Earth | 1 | 10 | 3 | 5 | 3 | 10 | 5 | 5 | 5 | 5 | 3 | 5 | |
| Earth | 1 | 5 | 10 | 10 | 10 | 5 | 5 | 5 | 5 | 10 | 5 | 5 | |
| Earth | 1 | 5 | 5 | 10 | 5 | 10 | 5 | 10 | 5 | 5 | 5 | 10 | |
| Water | 1 | 3 | 5 | 5 | 5 | 3 | 5 | 5 | 3 | 3 | 5 | 5 | |
| Air | 1 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | |
| Earth | 1 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | 3 | |
| Fire | 2 | 4 | 6 | 2 | 12 | 4 | 4 | 4 | 6 | 8 | 0 | 8 | |
| Earth | 2 | 0 | 0 | 0 | 0 | 50 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Air | 2 | 2 | 2 | 2 | 4 | 2 | 2 | 2 | 0 | 2 | 2 | 2 | |
| Air | 2 | 6 | 4 | 6 | 12 | 4 | 6 | 6 | 6 | 8 | 4 | 4 | |
| Fire | 2 | 4 | 4 | 4 | 12 | 4 | 4 | 4 | 4 | 8 | 4 | 4 | |
| Air | 2 | 4 | 6 | 4 | 4 | 2 | 2 | 4 | 4 | 2 | 4 | 2 | |
| Water | 2 | 50 | 50 | 6 | 0 | 6 | 6 | 4 | 50 | 25 | 50 | 4 | |
| Air | 2 | 4 | 4 | 50 | 20 | 6 | 50 | 50 | 4 | 25 | 4 | 50 | |
| Air | 2 | 6 | 6 | 4 | 8 | 2 | 6 | 4 | 4 | 2 | 4 | 6 | |
| Air | 2 | 2 | 2 | 2 | 4 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | |
| Earth | 2 | 4 | 4 | 6 | 4 | 4 | 4 | 6 | 6 | 4 | 4 | 4 | |
| Water | 2 | 4 | 4 | 6 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | |
| Water | 2 | 6 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 8 | 4 | |
| All | 2 | 2 | 2 | 2 | 4 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | |
| Water | 2 | 2 | 2 | 2 | 8 | 4 | 4 | 4 | 4 | 4 | 8 | 4 | |
| Air | 3 | 4 | 8 | 8 | 2 | 4 | 4 | 8 | 4 | 4 | 2 | 8 | |
| Earth | 3 | 0 | 0 | 0 | 0 | 16 | 0 | 0 | 0 | 0 | 0 | 0 | |
| Earth | 3 | 12 | 8 | 8 | 4 | 8 | 8 | 12 | 10 | 12 | 10 | 8 | |
| Air | 3 | 12 | 8 | 8 | 2 | 0 | 4 | 4 | 2 | 4 | 2 | 4 | |
| Earth | 3 | 4 | 8 | 4 | 6 | 4 | 4 | 4 | 50 | 4 | 8 | 8 | |
| Fire | 3 | 8 | 8 | 8 | 50 | 12 | 16 | 12 | 2 | 12 | 2 | 12 | |
| Earth | 3 | 4 | 4 | 8 | 2 | 8 | 8 | 4 | 4 | 8 | 4 | 8 | |
| Water | 3 | 8 | 8 | 4 | 4 | 4 | 4 | 4 | 4 | 8 | 8 | 4 | |
| Water | 3 | 16 | 16 | 16 | 0 | 12 | 12 | 12 | 4 | 12 | 30 | 12 | |
| Air | 3 | 4 | 4 | 8 | 6 | 0 | 8 | 4 | 4 | 12 | 4 | 4 | |
| Fire | 3 | 8 | 8 | 8 | 6 | 8 | 12 | 8 | 2 | 4 | 4 | 8 | |
| Water | 3 | 4 | 4 | 4 | 2 | 4 | 4 | 12 | 2 | 4 | 8 | 4 | |
| Fire | 3 | 4 | 4 | 4 | 6 | 8 | 4 | 4 | 2 | 4 | 4 | 6 | |
| Earth | 3 | 4 | 4 | 4 | 2 | 4 | 4 | 4 | 0 | 4 | 4 | 4 | |
| Water | 3 | 8 | 8 | 8 | 8 | 8 | 8 | 8 | 10 | 8 | 10 | 10 | |
| Fire | 4 | 0 | 0 | 0 | 5 | 5 | 10 | - | - | 0 | 0 | 0 | |
| Fire | 4 | 5 | 5 | 5 | 5 | 10 | 5 | - | - | 5 | 5 | 5 | |
| Air | 4 | 10 | 10 | 10 | 10 | 10 | 10 | - | - | 10 | 10 | 10 | |
| Water | 4 | 5 | 5 | 10 | 5 | 5 | 5 | - | - | 10 | 10 | 5 | |
| Air | 4 | 5 | 10 | 5 | 5 | 5 | 5 | - | - | 5 | 5 | 5 | |
| Fire | 4 | 5 | 5 | 5 | 5 | 5 | 5 | - | - | 5 | 5 | 5 | |
| Fire | 4 | 5 | 5 | 5 | 5 | 5 | 5 | - | - | 5 | 5 | 5 | |
| Fire | 4 | 5 | 5 | 5 | 10 | 5 | 5 | - | - | 10 | 5 | 10 | |
| Earth | 4 | 10 | 10 | 10 | 10 | 10 | 10 | - | - | 10 | 10 | 10 | |
| Water | 4 | 10 | 5 | 5 | 0 | 0 | 0 | - | - | 5 | 10 | 5 | |
| Earth | 4 | 10 | 10 | 10 | 10 | 10 | 10 | - | - | 5 | 5 | 10 | |
| Fire | 4 | 5 | 5 | 5 | 5 | 5 | 5 | - | - | 5 | 5 | 5 | |
| Earth | 4 | 5 | 5 | 5 | 5 | 5 | 5 | - | - | 5 | 5 | 5 | |
| Earth | 4 | 10 | 10 | 10 | 10 | 10 | 10 | - | - | 10 | 10 | 10 | |
| Water | 4 | 10 | 10 | 10 | 10 | 10 | 10 | - | - | 10 | 10 | 10 | |
| Air | 5 | - | 0 | 14 | 0 | 16 | 0 | - | - | 12 | - | 16 | |
| Air | 5 | - | 20 | 14 | 16 | 16 | 16 | - | - | 13 | - | 16 | |
| Earth | 5 | - | 16 | 14 | 16 | 16 | 12 | - | - | 12 | - | 16 | |
| Fire | 5 | - | 0 | 0 | 16 | 0 | 12 | - | - | 12 | - | 0 | |
| Air | 5 | - | 16 | 16 | 16 | 16 | 12 | - | - | 13 | - | 20 | |
| Earth | 5 | - | 16 | 14 | 16 | 20 | 12 | - | - | 13 | - | 16 | |
| Air | 5 | - | 16 | 14 | 0 | 0 | 12 | - | - | 13 | - | 16 | |
| Fire | 5 | - | 0 | 0 | 20 | 16 | 12 | - | - | 0 | - | 0 | |
| Water | 5 | - | 16 | 14 | 0 | 0 | 12 | - | - | 12 | - | 0 |