Template talk:SoL stattest

From Wiki of Loathing
Jump to navigation Jump to search

I feel like it'd be easier to use the template if it simply took the base stat requirement directly as its single argument. (Especially since I'm seeing stat tests in the game that don't fit the easy/regular/hard trichotomy, like tests of 6, 7, 8, 9, and 10 in region 5.) Would it be all right if I made this change and updated its uses? —LucyG42 (talk) (c) ♥ 21:11, 20 October 2023 (UTC)

  • Hmm. Is that due to some change in the base test threshold (eg from a recent patch) or is that due to the mode in which you play the game? It's admittedly been a while since I looked at it, but (IIRC) the base for every stat test is region+2. Individual tests in the code are then modified by an internal easy/regular/hard designation, which subtracts 1, does nothing, or adds 1. On top of that, your choice of doing the game in easy, relaxed, normal, hard, or eleven mode adds another -2, -1, 0, 1, or 2 to that. (And there's there's a perk that further modifies it too). So an internally-hard test in region 5 would mean a threshold of 5+2+1=8 in a normal play, but could get up to 10 when you play in eleven mode. Is that what you're seeing? The player's choice of easy, relaxed, hard, or eleven mode can't really be incorporated into the displayed value, so the template just displays the base region+2+(-1,0,1) due to the internal easy/normal/hard tag. I haven't looked at updates in over a year though, so not sure if the way it's calculated maybe changed at some point. --Fig bucket (talk) 23:25, 20 October 2023 (UTC)
    • (changed again that is---I see the internally-hard mode used to be +2, but you changed it to +1.) --Fig bucket (talk) 23:32, 20 October 2023 (UTC)
  • I am playing in normal difficulty, without the shadows perk. Let's wander around again.... I get all of these stat tests in wandering events, all on day 5, all in Gray County:
    • 7 Muscle - crude oil boulder wander event; truck trap wander event
    • 8 Moxie - crows wander event
    • 9 Muscle - feral hogs wander event
    • 10 Mysticality - bees wander event
    • 10 Muscle - bull in a pharmacy wander event
That's an unbroken chain of wandering, with difficulty on Normal. —LucyG42 (talk) (c) ♥ 23:50, 20 October 2023 (UTC)
  • Wandering again, now in Easy mode. It seems some of these aren't affected by difficulty: the "abandoned its front garden to squalor" event is still 9 Myst, and "horse whisperer" still asks for 10 Moxie. Hmmm. —LucyG42 (talk) (c) ♥ 00:15, 21 October 2023 (UTC)
    • That is weird, but I looked at the code again and I think I see what is going on. The template doesn't work for the random encounter stat-checks, as they are apparently processed separately from other events that may involve stat checks. For random stat-check encounters, the events are classified as tier1, tier2, or tier3 (so there's only 9 such events in each region, one of each for each stat). TierX events result in a threshold of region+X+1, which is further incremented by 1 if the region is > 3. There is no modification due to player difficulty. You're in gray county (region 5), so the test threshold would be 5+X+1+1.
      • crows: tier1, so threshold is 8
      • feral hogs: tier2, so threshold is 9
      • bees: tier3, so threshold is 10
      • bull in pharmacy: tier3, so threshold is 10
    • The crude oil and the truck trap, however, I don't see in the list of stat-check events for region 5. I assume the crude oil boulder event is the one described by the text "A rolling boulder of sticky crude oil is coming down the hill at a terrifyingly slow speed. If you don't get out of the way in the next three to four hours, you're truck food.". If so that is a random encounter fight event, not one of the simpler stat-checks. It follows the generic stat checking logic in this template: region 5, medium internal-difficulty, and normal player difficulty gives a threshold of 7. (And horse whisperer and the front garden squalor events are also region 5 stat-check events (tier 3 and 2 respectively)) --Fig bucket (talk) 12:44, 21 October 2023 (UTC)
    • Okay, I see! Testing also reveals these tiered checks aren't affected by Suffusion of Shadow (region 5 abandoned house = 9 Myst), so on the wiki I guess we'll keep their stat requirement as a flat number. Continuing to use this template where it applies by region number + low/normal/high. —LucyG42 (talk) (c) ♥ 15:51, 22 October 2023 (UTC)

SoL armortest?

Feels like we could use a template for the various elemental (and occasionally physical) armor challenges, too. I don't know the formula tho. —LucyG42 (talk) (c) ♥ 02:31, 27 October 2023 (UTC)

  • For armor tests it's based on the game difficulty setting, the region, and an easy/medium/hard tag for each test:
    difficulty==0: 1,1,2,2,3,3 (based on region 1,2,3,4,5,6)
    difficulty==1: 2,2,3,3,4,5
    difficulty==2: 3,4,5,6,7,7
    difficulty==3: 4,5,6,7,8,9
    difficulty==4: 5,6,7,8,9,10
    if an easy test then -1, if hard then +1
    Occlusion of Shadow: -3
    min of 1.
    --Fig bucket (talk) 12:54, 27 October 2023 (UTC)
  • Made a draft: {{SoL armortest}}. --Fig bucket (talk) 20:46, 27 October 2023 (UTC)