Page 1 of 1

Change [pic] with a boolean variable

Posted: Thu Nov 14, 2019 10:41 am
by ste
Hi,

is there a way to change the character picture according to the state of a boolean variable?

Thank you in advance for your help!

Re: Change [pic] with a boolean variable

Posted: Thu Nov 14, 2019 11:29 am
by Tony Li
Hi,

You can use a Number variable. The [pic] tag can either be a number to use a specific portrait number:

[pic=#]

or a variable name:

[pic=CurrentPlayerPortrait]

The line above assumes you've defined a Number variable named "CurrentPlayerPortrait".

Re: Change [pic] with a boolean variable

Posted: Fri Nov 15, 2019 5:23 am
by ste
Great! Thanks! :)