Can scripts access Global variables?

For questions about using Classic.

Post » Tue Dec 07, 2010 11:58 am

Are global variables broken in python? They work for me. The crash related to text global variables was fixed a few builds ago. I made a typo with the syntax of accessing global variables in my other post. I forgot the "System.".
[code:1gtlnmm4]System.globalvar('ip')[/code:1gtlnmm4]
The name of the variable is case sensitive. Is the name "ip" or "IP" in your cap?
Also globalvar doesn't show in the right bar, it's just not listed.
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Tue Dec 07, 2010 8:23 pm

[quote="R0J0hound":1g5s642u]Are global variables broken in python? They work for me. The crash related to text global variables was fixed a few builds ago. I made a typo with the syntax of accessing global variables in my other post. I forgot the "System.".
[code:1g5s642u]System.globalvar('ip')[/code:1g5s642u]
The name of the variable is case sensitive. Is the name "ip" or "IP" in your cap?
Also globalvar doesn't show in the right bar, it's just not listed.[/quote:1g5s642u]
it was 'IP' and it worked now! thanks alot ;)
B
30
S
6
G
5
Posts: 433
Reputation: 6,061

Previous

Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests