Change [pic] with a boolean variable

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
ste
Posts: 15
Joined: Wed Aug 07, 2019 2:45 am

Change [pic] with a boolean variable

Post 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!
User avatar
Tony Li
Posts: 22054
Joined: Thu Jul 18, 2013 1:27 pm

Re: Change [pic] with a boolean variable

Post 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".
ste
Posts: 15
Joined: Wed Aug 07, 2019 2:45 am

Re: Change [pic] with a boolean variable

Post by ste »

Great! Thanks! :)
Post Reply