Yes, it is possible to capture the Star Trail drop mechanic in your Google Sheets calculation using only built-in functions (no scripts or add-ons required). Google Sheets supports a variety of mathematical, logical, and statistical functions that can handle the step-by-step logic for calculating the number of Star Trail drops, the individual probabilities, and the combined probability. However, since Sheets doesn't have a built-in solver for optimization, you'll need to use formulas to compute the probabilities for a given number of stones and then manually iterate or use helper cells to find the exact stones needed for a 95% chance.
I'll walk you through how to set this up in Google Sheets, step by step, with example formulas. This assumes you're building on your existing formula for the pity system and incorporating the Star Trail mechanics.
Step 1: Set Up Your Input Cells
Create a sheet with the following inputs in a dedicated row (e.g., Row 1):
- A1: Total stones spent (e.g., 23135). This is the variable you'll adjust.
- B1: B2 (e.g., 0.85, the probability for the first nine pulls).
- C1: B3 (e.g., 0.95, the probability for the tenth pull).
Step 2: Calculate the Number of Star Trail Drops (N)
The Star Trail drops occur at 10,000 stones and every 5,000 thereafter. So:
- If S (total stones) >= 10,000, then N = FLOOR((S - 10,000) / 5,000) + 1.
- Otherwise, N = 0.
In cell D1, enter the formula for N:
=IF(A1 >= 10000, FLOOR((A1 - 10000) / 5000, 1) + 1, 0)
- This will output the number of drops (e.g., for 23,135 stones, D1 = 3).
Step 3: Calculate the Star Trail Probability
Each Star Trail drop has a 10% chance of success (for the rate-up character and its styles/forms), so the probability of failure per drop is 90% (0.90). For N drops, the probability of success (getting the character at least once) is:
- StarTrailProbability = 1 - (0.90)^N
In cell E1, enter:
=1 - (0.9 ^ D1)
- This gives the overall Star Trail success probability (e.g., for N=3, E1 ≈ 0.271 or 27.1%).
Step 4: Calculate the Pity System Probability
Using your original formula, the pity system probability for S stones is:
- PitySystemProbability = 1 - EXP(-((S - 1000) / 1000) * ABS(9 * LN(1 - B2/100) + LN(1 - B3/100)))
In cell F1, enter:
=1 - EXP(-((A1 - 1000) / 1000) * ABS(9 * LN(1 - B1/100) + LN(1 - C1/100)))
- This computes the pity system probability based on the current S (e.g., for S=23135, B2=0.85, B3=0.95, F1 ≈ 0.852 or 85.2%).