Articy Forum


https://www.articy.com:443/forum/

Displaying variable value on screen, somehow.

https://www.articy.com:443/forum/viewtopic.php?f=4&t=18159

Page 1 of 1

Displaying variable value on screen, somehow.

Posted: Tue 11. Apr 2017, 14:05
by szczypiorofix
Hello,
I'm new here and I'm just discovering this great tool.
I just wonder is it possible (somehow) to display value of a variable?
I'm creating a character creation sheet, where player has a 3 stats (variables) and a few points to add to each stats from the pool of points. Is it possible to display available points (it's also a variable) in simulation mode?

Re: Displaying variable value on screen, somehow.

Posted: Wed 12. Apr 2017, 08:26
by [Articy] Karsten Feyerabend
Hello szczypiorofix,

You can display variable states during simulation mode with the property inspector.

Click and drag at the right side of the screen to split the view (or create a new window, if you work with two monitors).

1_2017-04-12_092806.jpg
1_2017-04-12_092806.jpg (218.53 KiB) Viewed 13528 times


Double click the Property Inspector icon to start it.

2_2017-04-12_092747.jpg
2_2017-04-12_092747.jpg (197.58 KiB) Viewed 13528 times


Start your simulation at the desired spot, then select the “Variable state” tab in the Property Inspector.

3_2017-04-12_093616.jpg
3_2017-04-12_093616.jpg (150.36 KiB) Viewed 13528 times


Now, you can see how your variables change during the simulation.

4_2017-04-12_093647.jpg
4_2017-04-12_093647.jpg (142.96 KiB) Viewed 13527 times



Best regards,
Karsten

Re: Displaying variable value on screen, somehow.

Posted: Wed 12. Apr 2017, 09:59
by szczypiorofix
Thanks!
That's not exactly what I was looking for but was helpful :) .

I thought it's possible to print/draw a value of a variable somewhere in instructions, flow fragments etc. eg "print( getProp( getObj("Chr_Manfred")), "DisplayName"), but I suppose it's impossible in Articy Draft but e.g. Unity.

Re: Displaying variable value on screen, somehow.

Posted: Wed 12. Apr 2017, 10:46
by [Articy] Karsten Feyerabend
Hi,

If you use print(), the result will be visible in the Log tab. It is only usable in instructions and output-pins, though.

E.g. print(Skills.SkillSword) to display the variable value.


Best regards,
Karsten

All times are UTC
Page 1 of 1