Patrefans
rinari from patreon
rinari patreon

Gameplay Poll: Fairmath

🕑 Added 2021-11-02 00:44:02 +0000 UTC

Comments

Lena Nguyen

I actually really like your suggestion of mixing the two methods too! It wouldn't really be possible in ChoiceScript (not without requiring insane consistency on my part) but is for Twine; I do like the idea of not relying on fairmath for things like relationships but maybe using it for stats and skills! Thank you so much for your suggestion!

Lena Nguyen

Oh my gosh, thank you SO much for pointing me towards this, it is such a huge help! I was vaguely aware of the Math.clamp function, but the way you outlined it in ShoH terms really helped me understand its usefulness--thank you so much for taking the time!!! <3 I'm definitely going to employ everything you said moving forward! <3

Hime

Oh, I wanted to ask if it wasn’t possible to use both methods (like, fairmath for stats and straight numbers for relationships or special events), but infinite analemma’s suggestions sounds more straightforward! (I _think_ something similar is also possible on ChoiseScript, btw! At least the code from the WIP “Mind Blind” sounds a lot like that. But I’m not familiar with coding so please take my word with a grain of salt-)

infinite analemma

Coding post ahead! (Edited because it ate my code. I'll put {{ in for the double less than and }} for the double greater than) For what it's worth, since you're thinking about Twine: in Twine you can use the Math.clamp function, which allows you to set a maximum stat that won't go over. You can also re-set the maximum whenever. So, for example, say you want Blade's maximum approval points to be no higher than 20 in chapter 1. You'd put something like {{set $BladeApproval to Math.clamp(0,0,20)}} in your passage. That equates to 0 points to start, minimum 0, maximum 20. When you put in approval gains, you'd change it to something like {{set $BladeApproval to Math.clamp($BladeApproval + 5, 0, 20)}} Later, in Chapter 2, you can re-set the maximum, say 40. You'd put {{set $BladeApproval to Math.clamp($BladeApproval, 0, 40)}} That would set $BladeApproval to the already clamped number it was in Chapter 1, with a minimum of 0 and a new maximum of 40. P.S. - this would be with Twine's SugarCube coding, not Harlowe, which would look more like (set: $BladeApproval to Math.clamp(0, 0, 20)) Also, you can still create a fairmath type system by doing something like {{set $BladeApproval to Math.clamp($BladeApproval + (100-$BladeApproval)*0.1, 0, 100)}} So if Blade's approval is at 20, it would be 20 + 8. There's also a plugin you can download to do it automatically, if you search for Twine fairmath. Hope that helps!


More Creators