-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Get value from stringMap by variable #191
Comments
what about using $stingVar in the map bracket? |
It works, thanks |
Can I get the value of variable of another quest in a similar way?
and I want to get value of this someVariable variable from my another script. By default we write:
Is there any way to get value by variable?
|
Quest variables are scoped by itself:
They accept all operators as well |
Yes, but I want to get value of variable from another script by string:
|
I'm not sure what you're asking exactly, all quest variables are scoped like so: If you want to get the value of said quest var by string, you can still stringicize with
If you want to get the value of a quest array variable you can still do that:
|
This is a quest script for MyQuest:
This is an another script:
|
|
What is MyQuest ? Is this a Reference? |
You did
|
Ok. You writed:
|
Quest variables behave like namespaces in other languages (e.g. You can do
|
You can use this GetVariable
|
Is there something similar to this for setting a quest variable? P.S. I think I can use RunScriptLine function. |
I have a stringMap like this:
I can get value of key "keytwo" by command aaaDBTAMArr["keytwo"]. Is there any way to get value of some key by variable?
It doesn't work, neither does aaaDBTAMArr->stingVar.
The text was updated successfully, but these errors were encountered: