I need help with global variables because they don't work.
I get no errors with the code but it still doesn't work.
Skript Version: 2.5.3
I also have tried many other versions and more updated ones,
even dev ones and they still don't work.
Addons: Skungee, SkQuery, Ersatz, SkMorkaz, TuSKe, and SkRayFall
Just so you know I did check everywhere to solve this and I couldn't find any code that works.
My code for my first server:
This is supposed to set the global variable.
My code for my second server:
This is supposed to get the variable after its set.
Whenever I try this it comes out with <none>.
I get no console errors in my Proxy, or 2 Spigot Servers.
Please help me, and thank you.
[doublepost=1617420386,1616371343][/doublepost]I actually figured it out with LimeGlass' help. So I'm going to put this on Solved. If you want to know why this didn't work is because apparently ALPHA v2.0.0 of Skungee works with global variables.
I get no errors with the code but it still doesn't work.
Skript Version: 2.5.3
I also have tried many other versions and more updated ones,
even dev ones and they still don't work.
Addons: Skungee, SkQuery, Ersatz, SkMorkaz, TuSKe, and SkRayFall
Just so you know I did check everywhere to solve this and I couldn't find any code that works.
My code for my first server:
This is supposed to set the global variable.
Code:
command /setgv [<text>]:
trigger:
set network variable {nv::%player%} to "%arg-1%"
send "&aGlobal variable has been set to &e%arg-1%&a!"
My code for my second server:
This is supposed to get the variable after its set.
Code:
command /getgv:
trigger:
set {_nv} to network variable {nv::%player%}
send "&aThe global variable returns with &e%{_nv}%&a."
Whenever I try this it comes out with <none>.
I get no console errors in my Proxy, or 2 Spigot Servers.
Please help me, and thank you.
[doublepost=1617420386,1616371343][/doublepost]I actually figured it out with LimeGlass' help. So I'm going to put this on Solved. If you want to know why this didn't work is because apparently ALPHA v2.0.0 of Skungee works with global variables.
Last edited: