How do I use variables on "Set text" and get the action

0 favourites
  • 2 posts
From the Asset Store
Color Variable
$4.50 USD
10% off
Easily store, modify, read and manipulate colors with Color Variables!
  • Sorry for the tittle, but with my english i don't know how explain it :S .

    I'm triying to do some actions more readable so i tried to use Global Variables but i have a problem in one that i have to set a text.

    In this case i have Four variables: Language&dialog&line&end

    This is what above variables out: xml.StringValue("/en_lang"&"/dogdialog/line1")

    If on "Set text" action i put: xml.StringValue("/en_lang"&"/dogdialog/line1"). Correct, in the game appears the first dialog.

    But if on "set text" i put the "Language&dialog&line&end" the text is: xml.StringValue("/en_lang"&"/dogdialog/line1.

    Is there any way to put in the "set text" my variables and get the first dialog instead the "xml.stringvalue,etc..." ?

    The line on "set text", will be more bigger and hard to read, so my idea is use variables to be more short and readable but seems is not possible?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • what are you trying to do in first place ? cause from my point of view you seek for very complicated way to do something but i don't really know what.

    Sometimes it's just the name of the variable witch is used by another things and made some conflict. also why not using dictionnary or array to store your dialog ?

    Sorry if i don't understand your problem.

    Ps: i love your blog !

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)