There is probably a very easy and obvious solution I am missing, so I am hoping you can help me out
I'm looking to implement an alignment system into my game, based on the DnD Alignment system of Good/Evil and Lawfull/Chaotic.
To show the player where they currently stand, the idea is to have a small image shown on a graph (very basic example below).
I'm tracking Good/Evil (Altruism/Selfishness; AltSelf) with one variable, and Lawfull/Chaotic (LawChao) in another.
Both will range from 0 - 500, with 250 thus being the middle point. Of course this is easily adjustable, if that will help with drawing the small image at the right position.
If possible, I'd like the LawChao value to determine the xpos of the small image, and AltSelf to determine the ypos.
Could someone please enlighten me on how to do this?
What I have right now is very basic, but it shows all the elements. So it feels as if I just need a way to adjust the xpos and ypos based on the variable.
Thank you for your time!
Code: Select all
show image "gui/alignment/alignment_bg.png"
show image "gui/alignment/dot.png" at Position (xpos=100, ypos=100, xanchor=0, yanchor=0)
Code: Select all
$ AltSelf = 250
$ LawChao = 250
$ AltSelf_max = 500
$ LawChao_max = 500
$ AltSelf_min = 0
$ LawChao_min = 0