Vous n'êtes pas identifié(e). Pour pouvoir écrire ou répondre à un message, vous devez vous connecter ou vous créer un compte sur JAWA.

#1 20-10-2018 11:08:29

spook1
Membre
Inscription : 12-02-2018

variable in text?

Can I show a text-message with a variable in it. It would nice to display the score that way.

Hors ligne

#2 21-10-2018 18:49:37

jawa
Admin

Re : variable in text?

Hi

yes, variables values can be embeded in any text effect parameters
for example you can show the SCORE variable value inside a message with the effect

message:the score is  : {{SCORE}}

You can do the same with the dialogue effect.

dialogue:<character_id>:Hello {{PLAYER_NAME}}, your score is {{SCORE}} points.


if you want to show a score on the screen outside an interaction display effect  you can create a TEXT object and change it's label with update object effect, on the name parameter

update:<id of text object>:name:{{SCORE}}

Does it answer your question ?

Z

Pied de page des forums