Is it possible to create an opposing paired statistic with three statistics?

I want to have three characters’ relationships reliant on one another and I want to show this by having them be opposing paired statistics in the stats screen, i.e. they share a percentage bar and depending on your choices the other two go down while one goes up. I don’t want to have them function like an opposed pair(/trio??) behind the scenes because they’ll all be pre-existing statistics so I don’t think it will work like that. Is there a way to present them like this? Thank you in advance!!

2 Likes

I don’t think you can put three different stats on a single stat screen bar.

Closest I can think of is to have three separate bars for each character, and adjust all three values when a choice is made. So if you do something, one relationship bar goes up and two relationship bars go down. Or something like that.

4 Likes

I’m a bit confused by what you’re asking. Do you want something that the player can see? Or something that’s tracked in the background? If it’s in the background, then you can just use some math and make ratios/percentages.

*set Person1Percentages (Person1Stat / ((Person1Stat + Person2Stat) + Player3Stat)) * 100
*set Person2Percentages (Person2Stat / ((Person1Stat + Person2Stat) + Player3Stat)) * 100
*set Person3Percentages (Person3Stat / ((Person1Stat + Person2Stat) + Player3Stat)) * 100

This will show you how much one has over the others as they all continue to grow in value.

3 Likes

Hello, sorry for the confusion!! I don’t mind doing the manual stuff myself (though thank you for the equations anyway haha I’ll be sure to use them next time) it was moreso the appearance of these statistics as one statistic on the stats menu (e.g. one bar showing A20% + B30% + C50% at once) but as I’ve been told this isn’t possible. Thank you a lot though!!

2 Likes

While it’s not possible to do it using standard UI element, you could always work around it by presenting it through a custom widget. E.g. picture a fixed length string (say, 20 chars) with each char representing 5% of the stat on the relationship bar. For a 20%/30%/50% spread it’d then look something like:
AAAABBBBBBCCCCCCCCCC
though you’d probably want to use symbols other than basic letters for each of the characters. There’s plenty prettier options in the unicode.

2 Likes

Only way I could visualise this is with a pie chart, and a pie chart is for sure not a default option in choicescript.

Best option, as others have said, is three bars that collectively add up to 100.

*stat_chart
  *percent Anne
  *percent Bob
  *percent Carol

and whenever you increase one, use parameters to reduce the other two by half of the total you’ve increased the first one (plus some extra math just to verify they add up to 100 total, if you can work it out). Parameters are a bit more complex so I’m not gonna provide an example, but if you hunt down some guides on this forum you’ll be able to muddle through it.

4 Likes

This topic was automatically closed 24 hours after the last reply. If you want to reopen your WiP, contact the moderators.