Random Encounter Frequency

Discussion in 'The Keep on the Borderlands' started by marc1967, Jul 14, 2014.

Remove all ads!
  1. marc1967

    marc1967 Established Member

    Joined:
    Jan 19, 2014
    Messages:
    706
    Likes Received:
    112
    There has been some talk in other threads about random encounters inflating experience points, and I'd like to give my thoughts on the matter. (I do , however, like that many of the random encounters are very interesting and feel like they ARE part of the plot, and not just random monsters.)

    I'm noticing a trend that I am getting too many random encounters in comparison to the real adventuring. Survival doesn't really kick in reliably at early levels, so that my adventure at levels 1 - 3 often seem to go like this:

    1) I head off on an early quest at full strength, and hit a tough random encounter. One character goes unconscious and one is down to 2 hp. Head back to the Keep, sheathe my weapons, sell the looted items, and rest at the Inn for a few days.

    2) repeat 1 above.

    3) Finally make it to the encounter area and have a decent foray, but I get another unconscious guy, and a few more a low hp's, with the cleric healing all used up.

    4) Risk resting for 8 hours to get the cleric recharged, but run into random sleep encounter skeletons, further depleting resources. Oh crap now what ! ?

    5) Cross fingers and head back to the Keep for a full rest, but get another random encounter. Fortunately things go my way and I make it back to the keep, sheathe my weapons, sell the looted items, and rest at the Inn for a few days.

    6) Repeat 1) a few more times...

    7) Repeat 3) ,4) and 5) again...

    8) I then think about the comment that the random adventuring party made from the original game, something to the effect of "at this rate we're never gonna make it to the damn dungeon"

    So basically 75% of my XP's and game action are coming from random encounters, which I think is not the intention of the adventure. I know I could just grab another cleric or two, or REALLY make sure someone has survival maxed out with a high wisdom from the very beginning, or I could just save the game before traveling and reload until I get there uneventfully. But I think this situation should be tweaked a little bit.

    Long story short (too late, God I ramble on), I think this situation is a result of the number of trail "dots" between worldmap locations. In the original game it was about 10 dots to the first few adventures (Moathouse, Decklo Grove), and 20 to the others (Emridy Meadows, Welkwood Bog). In KOTB, it's roughly 40 dots to most of the first few adventure areas (Hermit area, Lizard Man caves, Spider forest, etc.), and 50 dots to the Caves and between many other locations.

    Statistically, assuming a 1 in 20 chance of encounter per dot (if that is still the roll), this results in a random encounter as follows:

    Code:
    TRAIL LENGTH          CHANCE OF ENCOUNTER
    10 dots                       40.1 %
    20 dots                       64.1 %
    30 dots                       78.5 % 
    40 dots                       87.1 %
    50 dots                       92.3 %   
    
    So without survival kicking in, you're going to get an encounter almost every trip to and from the Keep. This has resulted in the scenario I described at the start of this post for the first few levels of play.

    I want to make it clear I am not complaining about the lethality of some of the encounters, but that I'm spending most of my my time with randoms, getting inflated XP's, and not getting to the real adventure. This has resulted in me being level 6 at the start of the Caves, which was a blowout.
     
  2. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    Interesting thread. I don't know that the dots really work that way though. I suspect instead that they're immaterial themselves, and that what determines distances are the worldmap locations themselves (if anything).

    KotB reuses ToEE's worldmap locations, so any distances would likely be inherited from ToEE as well, regardless of where they appear on the worldmap. For example, the Caves use Nulb's worldmap location. Nulb is quite far away from Hommlet in ToEE, and the Caves are similarly far away from the Keep (ToEE's Hommlet worldmap location) in KotB.

    The best way to test this would be to see how much time expires during travel from point A to point B. It's entirely possible that it takes longer to get to the Raider Camp than the Lizardman swamp, for example. We reassigned the worldmap locations with other more pertinent concerns in mind, such as linking quest-centered areas to a location that has its own native logbook tab, etc.

    ed. - To the best of my recollection, random_encounter.py determines the chance of random encounters equally for all worldmap travel, now that I think of it.
     
  3. marc1967

    marc1967 Established Member

    Joined:
    Jan 19, 2014
    Messages:
    706
    Likes Received:
    112
    Even with the locations the same, the path between any two areas are set differently for KOTB in worldmap_ui_paths.bin. So for example, the path between the Keep and Northern Oak Woods (mad hermit area) is only about 10 dots away by the way the crow flies, but in KOTB the path is set in a big counterclockwise circle which heads south, then east, then finally heads north to the Oak Woods. This makes for a very realistic game environment, but provides for an almost certain encounter based on the 1 in 20 range per dot.

    Just for fun, I ran 100 trips between those two places and I got an encounter 84 of the 100 times , which is close to my estimate of 87% above. So I think it is a 1 in 20 per "dot", which I remember reading in a very well presented Random Encounter overview someone wrote up a long time ago. Fourth posting on this thread ----> http://www.co8.org/forum/showthread.php?t=7831&highlight=random_encounter.py

    But getting to technical now. I just wanted to point out the paths are much more winding in KOTB and provide for more chances of getting randoms.


    EDIT: I forgot to check the time passing aspect you mentioned, and after doing so I learned a lot. The time passing in traveling between the two areas above was about 9.5 hours. And after experimenting between different areas, it seems that about 15 minutes passes for each "dot" traveled. So, encounter chances seem unrelated to the "crow flies" distance, but directly related to the number of dots.
     
  4. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    Hm, interesting results. Does the time stay consistent with all the worldmap locations? (e.g. is going to the Caves proportionally longer than going to the north woods? I assume it's more dots there.)

    We did try to make worldmap travel and paths somewhat realistic - using roads wherever possible, crossing rivers at narrow points, etc. (It looks silly if you just go somewhere in a straight line.) To use the Keep to north woods example, the Keep is supposed to be situated on a bluff, so you can't just leave it by going over the edge. You have to follow the road and then head back up through paths in the forest when you get clear.
     
  5. Stasis

    Stasis Member

    Joined:
    Jul 2, 2014
    Messages:
    18
    Likes Received:
    0
    Random encounters, in general, are problematic if they're an endless source of XP.

    I'd love if we could somehow separate quest/unique encounters from other random encounters.
     
  6. marc1967

    marc1967 Established Member

    Joined:
    Jan 19, 2014
    Messages:
    706
    Likes Received:
    112
    Yep, it does, which is cool. The number of dots seems to be directly proportional to the travel time, resulting in a roughly consistent 15 minutes per dot.

    These are the location travel times from the Keep to each other World Map location. The numbers are rounded, as counting the dots as they clicked by was a challenge, heh.

    Code:
                                 Dots    Travel Time
    Keep  to  Northern Woods      40    10 hours
    Keep  to  Raider Camp         30     7 hours
    Keep  to  Deep Swamp          30     7 hours
    Keep  to  Swamp               40    10 hours
    Keep  to  Southern Oak Woods  35     8 hours
    Keep  to  Lizardman Refuge    40    10 hours
    Keep  to  Lord Axer           60    14 hours
    Keep  to  Caves of Chaos      60    14 hours

    That makes complete sense, and gives it a nice feel.

    If it turns out others are concerned about too many randoms, it would be easy to make the random range 1 - 30, or 1 - 40 for each dot instead of 1 - 20 as per the original game.
     
  7. marc1967

    marc1967 Established Member

    Joined:
    Jan 19, 2014
    Messages:
    706
    Likes Received:
    112

    This one was extremely problematic. :dizzy:

    24 Wolves Low-Res.jpg
     
  8. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,627
    Likes Received:
    538
    FYI I tested it back then by incrementing a variable from within encounter_exists and saw the 1:1 correspondence to the dots.

    It's possible to cap the number of dots being counted towards the check via some script_daemon management.
     
  9. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,745
    Likes Received:
    375
    Better to lower the probability per dot, surely? The silly thing is, journeys via the road - the ones that should be safest - will be the longest and thus most likely to trigger an encounter.

    An overhaul of the random encounters (so that they are really tailored to their locale) is planned for 2.0, btw. But if they are occurring too much (and unbalancing the game, as well as making it less fun to play) then yes, we need to fix that immediately.
     
  10. Marceror

    Marceror Established Member

    Joined:
    Apr 19, 2005
    Messages:
    152
    Likes Received:
    0
    Seems like the survival skill would be a good short term solution.
     
  11. crpgnut

    crpgnut Member

    Joined:
    Oct 2, 2003
    Messages:
    21
    Likes Received:
    0
    Okay, I've got a survival skill of 11 on my ranger. In 15 trips to the caves, I had 2 encounters I couldn't avoid. So survival is at least working as intended. Like marc, I get a ton of encounter dings, but with decent survival, I avoid 90%, if I want to. I basically avoid all encounters where the monsters don't have decent loot. If they have loot, then they get to die :)
     
  12. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,745
    Likes Received:
    375
    Hmmmm.... looking at the module, there is no random encounter table: players simply have an x/6 chance of an encounter if they CAMP within 6 squares of a set piece (the raiders, or the hermit, or the spiders, or the Lizardmen), where x is how far within the 6 squares. Good ol' Basic D&D.

    This suggests that the possibility of random encounters while travelling at all should be massively reduced (if not completely eliminated - after all, the Cavalry patrol the roads...). Thoughts?
     
  13. sirchet

    sirchet Force for Goodness Moderator Supporter

    Joined:
    Dec 6, 2003
    Messages:
    3,721
    Likes Received:
    49
    I would think the keep is on the border of civilization and the wild, so random encounters should be an ever present danger.

    I mean, do the cav patrol the forest near the spiders, or the lizardmen areas?
     
  14. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,627
    Likes Received:
    538
    I've modified the odds according to this:

    - Random encounter check will only happen on 11th dots (i.e. if dot is multiple of 11)
    - I have conditioned the probability on the cumulative dot number, with the numbers being:
    - 31% chance for dots < 17
    - 19% chance for dots < 37
    - 7% chance for the rest

    Thus the calculated probailities for journeys are:
    31% for short trips
    54.7% for moderate length journeys (between 23 and 43 dots)
    60.8% for long journeys

    In practice, what this means for popular destinations (going to/from the Keep):

    Code:
    Location	new %	old %,     dots
    
    coc		58%	91.90%	49
    north woods:	44%	80.60%	32
    swamp	        55%	82.50%	34
    southern pine	44%	76.20%	28
    
    This has been accomplished using prime numbers only!!!
     
    Last edited: Jul 16, 2014
  15. Gaear

    Gaear Bastard Maestro Administrator

    Joined:
    Apr 27, 2004
    Messages:
    11,038
    Likes Received:
    42
    That sounds like the sweet spot to me. I agree with sirchet that the danger should not be non-existent, but at the same time we can't have it be a game about and determined by REs.
     
Our Host!