Adventure Queue: Difference between revisions

From A KoL Wiki
imported>Acdr
added queue manipulation guide link
imported>Prestige
Notes: updating to the present
Line 52: Line 52:
==Notes==
==Notes==
*The adventure queue is thought to reset at rollover (although this has not been tested).
*The adventure queue is thought to reset at rollover (although this has not been tested).
*All zones share the same two queues.  If you head to a zone for the first time, or with 5 of each encounter flavor from some other zone, there will initially be zero, then one, ... applicable encounters in the queue.
*The adventure queue can have duplicates.  If you meet 5 dairy goats in a row, the combat queue contains 5 dairy goats and no other encounters.
*The adventure queue can have duplicates.  If you meet 5 dairy goats in a row, the combat queue contains 5 dairy goats and no other encounters.
*This area of game mechanics is not well-understood.  For current investigation, see the work by godskook, eit_brad and others in this [http://forums.jick-nerfed.us/viewtopic.php?p=30330#30330 HCO forum thread on Adventure Outcome] -- the material on this page is derived from that investigation.
*Prior to NS13, all zones shared the same two queues.  If a player entered a zone for the first time, or with 5 of each encounter flavor from some other zone, there would have initially been zero, then one, ... applicable encounters in the queue.
*After NS13, the adventure queue was changed in a way that -- according to Jick -- makes abusing it impossible. One possibility is that each zone now has its own queue, though this has not been proven.
*This area of game mechanics is not well understood.  For past investigation, see the work by godskook, eit_brad and others in this [http://forums.jick-nerfed.us/viewtopic.php?p=30330#30330 HCO forum thread on Adventure Outcome] -- the material on this page is derived from that investigation.
*Choice adventures in zones like the [[The Haunted Bedroom]] count towards the non-combat queue only.
*Choice adventures in zones like the [[The Haunted Bedroom]] count towards the non-combat queue only.
*According to Jick the mechanics behind the Adventure Queue will be changed in a way that will make abusing it impossible.


==Suggested Reading==
==Suggested Reading==

Revision as of 22:41, 29 October 2007

Template:NS13Rewrite

The adventure queue is a feature in the game coding that makes high occurrences of the same adventure in a short period of time less likely. For example, if you head to the goatlet for the first time and fight a dairy goat, dairy goats will be slightly less frequent for the next several adventures.

Choose Your Own Adventure

Specifically, the way an adventure is chosen is

  • (c) If combat: choose a combat encounter.
  • If it's not in the combat queue, that's the encounter.
  • If it is in the combat queue,
  • 25% of the time: accept the encounter.
  • 75% of the time: go to (c) and choose a new combat encounter, subjecting that choice to the combat queue as well.
  • (nc) If non-combat: choose a non-combat encounter.
  • If it's not in the non-combat queue, that's the encounter.
  • If it is in the non-combat queue,
  • 25% of the time: accept the encounter.
  • 75% of the time: go to (nc) and choose a new non-combat encounter, subjecting that choice to the non-combat queue as well.

Note that once you enter the queue-elimination process, you don't reroll for superlikely or the type of encounter: if a non-combat is first selected you only examine non-combats against the non-combat queue, and similarly for combats. Also be aware that the rejection probability, given above as 75%, is not totally nailed down. It could be more or less than that fraction.

Equations for Encounter Frequency

For one type (combat or non-combat) of encounter, with

  • e total encounters in a zone,
  • j fractional chance of rejecting an adventure in the queue (assumed to be 3/4 or 75%), and
  • u unique encounters from this zone in the adventure queue
  • U giving the indexes for the u adventures from this zone in the queue
  • R (elements ri) giving the frequencies of encounters of our type in this zone
  • rinq giving the total base frequency of drawing any of the encounters from this zone that are present in the queue.

For all adventures equally likely, ri=1/e and the chance of drawing an encounter that is present in the queue is (assuming j=3/4)

                    1
 inq(j;e,u)  = -----------
                4 e - 3 u

while the chance of drawing an encounter not present in the queue is

                    4 
 outq(j;e,u) = -----------
                4 e - 3 u

Note that these formulas only hold if the zone's encounters are equally likely.

If the adventures are not equally likely, the chance of drawing an encounter that is present in the queue is (again assuming j=3/4)

                           1 
 inq(j,R,U;i)  = ri ---------------
                     4 - 3 * rinq

The chance of drawing an encounter not present in the queue is

                           4 
 outq(j,R,U;i) = ri ---------------
                     4 - 3 * rinq

The adventure queue is 5 encounters long (it was changed from 3 encounters to 5 encounters in Fall of 2006).

Notes

  • The adventure queue is thought to reset at rollover (although this has not been tested).
  • The adventure queue can have duplicates. If you meet 5 dairy goats in a row, the combat queue contains 5 dairy goats and no other encounters.
  • Prior to NS13, all zones shared the same two queues. If a player entered a zone for the first time, or with 5 of each encounter flavor from some other zone, there would have initially been zero, then one, ... applicable encounters in the queue.
  • After NS13, the adventure queue was changed in a way that -- according to Jick -- makes abusing it impossible. One possibility is that each zone now has its own queue, though this has not been proven.
  • This area of game mechanics is not well understood. For past investigation, see the work by godskook, eit_brad and others in this HCO forum thread on Adventure Outcome -- the material on this page is derived from that investigation.
  • Choice adventures in zones like the The Haunted Bedroom count towards the non-combat queue only.

Suggested Reading

  • acdr wrote a guide, explaining how to use the adventure queue to your advantage, in less technical terms than this page.

Table of Encounter Frequency

For j=75%, among e total encounters of that flavor in the zone (all equally likely), and u unique encounters from the zone already in the queue:

Percent chance to draw each encounter that is in the queue
u \ e 3 enc.
in zone
4 enc.
in zone
5 enc.
in zone
6 enc.
in zone
7 enc.
in zone
8 enc.
in zone
9 enc.
in zone
1 zone enc in queue 11.11% 7.69% 5.88% 4.76% 4.00% 3.45% 3.03%
2 zone enc in queue 16.67% 10.00% 7.14% 5.56% 4.55% 3.85% 3.33%
3 zone enc in queue 33.33% 14.29% 9.09% 6.67% 5.26% 4.35% 3.70%
4 zone enc in queue 25.00% 12.50% 8.33% 6.25% 5.00% 4.17%
5 zone enc in queue 20.00% 11.11% 7.69% 5.88% 4.76%


Percent chance to draw each encounter that is not in the queue
u \ e 3 enc.
in zone
4 enc.
in zone
5 enc.
in zone
6 enc.
in zone
7 enc.
in zone
8 enc.
in zone
9 enc.
in zone
0 zone enc. in queue 33.33% 25.00% 20.00% 16.67% 14.29% 12.50% 11.11%
1 zone enc. in queue 44.44% 30.77% 23.53% 19.05% 16.00% 13.79% 12.12%
2 zone enc. in queue 66.67% 40.00% 28.57% 22.22% 18.18% 15.38% 13.33%
3 zone enc. in queue 57.14% 36.36% 26.67% 21.05% 17.39% 14.81%
4 zone enc. in queue 50.00% 33.33% 25.00% 20.00% 16.67%
5 zone enc. in queue 44.44% 30.77% 23.53% 19.05%