Twine Version: 2.3.16
Story Format: Sugarcube
Hello, ya boy is back with another probably simple question that my dumbass can’t seem to figure out. Is there a way to print a random roll’s results in another passage?
<<if [$playerhit + random(1,5) >= $enemyevasion + random(1,5)]>>
<<set $enemyHP to $enemyMaxHP -= $playerweapondamage + random(1,$playerStrength)>>
<<print '$name connects with a powerful swing! $enemyname takes $playerweapondamage + strengthroll 1-$playerStrength damage!'>>
<<else>>
<<print '$name misses!'>>
<</if>>
I want to be able to show the player the results of the equation, specifically the total number that comes up when adding the weapon damage, random roll, and player strength together. Would I have to set it as its own variable?