Nice! For setting a 3-way constellation of stats like this, I think a lot of players would like this clickable image idea the best. Is there a way to make this into something a non-programmer could use? Let me look into it… Ok back.
I looked at your code, and wow, your math skills look awesome! Can you explain how you calculate the 3 stats from the (x,y) coordinates? I’d love to know how to do this (and somehow without trig?), just in general, not choicescript-related.
So to turn this into something a non-programmer could use in their own game, I’m thinking there could be a function called threeWayStatBalancer (or some better name. I’m bad at names. LOL.) which takes as arguments information about where the stat triangle is in the image, plus where the user clicked, and from this, it can calculate the three stats’ new values.
I guess ideally, it shouldn’t require rounding them off, just keep that as an option, but for this implementation, you kinda have to because every possible configuration has its own image.
It should be possible, though, to use a PHP-generated image to draw the lines on-the-fly. So then, it shouldn’t be too hard to make a choicescript command like: *3way_stat_image <stat1> <stat2> <stat3> <params for where the triangle is> <path to image>
This could be made to superimpose the triangle onto the background image without having to reload it.
Oh, but I think html now has the ability to draw lines, so this might be better than doing it in php. (Maybe a php version as a fallback?)
Hehee, and yeah @Charles_Parkes , I agree. Totally not fair for someone to be quite this much of a genius. LOL.