edited August 2014 in ORK Scripting
I've created a new game variable in the "Editor" tab. But when I use

ORK.Game.Variables.Set(PC1Job1, Jlist[JlistEntry].ToString());

I get: Assets/Scripts/Hhhhdfs.cs(386,48): error CS0103: The name `PC1Job1' does

not exist in the current context
Post edited by Kashrlyyk on
  • edited August 2014
    Problem solved: You have to use this:

    ORK.Game.Variables.Set("PC1Job1", Jlist[JlistEntry].text.ToString());
    Post edited by Kashrlyyk on
  • Because the variable name is a string parameter :)
    Just on a side note, you don't need to add game variables in the editor tab - that's just a convenience feature to define some variable keys for the popup list in variable fields, but you can also scan events, settings and scenes for used variables to populate the list.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.