Displaying a Variable calling from Alternating Variables.
Posted: Tue Aug 03, 2021 1:17 pm
I need to Display the [Survival Points aka SP] of an Active Character since they can be selected at will. Example "[POV] has [SP] Remaining."
$ VICKY_POV = True
$ LEX_POV = False
$ Vicky_SP = 1
$ Lex_SP = 0
if VICKY_POV == True:
$ POV = "Vicky"
elif LEX_POV == False:
$ POV = "Lex"
else:
pass
################################### The Problem is Below ##############################
This doesn't work obviously, but it illustrates how I was trying to get to work.
if VICKY_POV == True:
SP = $ Vicky_SP
elif LEX_POV == True:
SP = $ Lex_SP
else:
pass
$ VICKY_POV = True
$ LEX_POV = False
$ Vicky_SP = 1
$ Lex_SP = 0
if VICKY_POV == True:
$ POV = "Vicky"
elif LEX_POV == False:
$ POV = "Lex"
else:
pass
################################### The Problem is Below ##############################
This doesn't work obviously, but it illustrates how I was trying to get to work.
if VICKY_POV == True:
SP = $ Vicky_SP
elif LEX_POV == True:
SP = $ Lex_SP
else:
pass