-
-
Notifications
You must be signed in to change notification settings - Fork 374
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
Local list "refresh" issue #1649
Comments
I couldn't understand your issue, probably your first code works just as it should. But, i see a problem with the second code, it will broadcast only set {_addons::*} and {_addonscheck::*} to "skUtilities", "skript-yaml" and "skript-mirror" You would think this will do the same with set {_addons::*} to "skUtilities", "skript-yaml" and "skript-mirror"
set {_addonscheck::*} to "skUtilities", "skript-yaml" and "skript-mirror" but unfortunately no, it works like this: {_addons::*} = skUtilities
{_addonscheck::*} = skript-yaml More details:on load:
set {_a::*}, {_b::*} and {_c::*} to 1, 2 and 3
broadcast "%{_a::*}%"
broadcast "%{_b::*}%"
broadcast "%{_c::*}%" Output:
Works the same way with 1 or 2 lists, but if amount of the lists is greater than amount of the change values ( on load:
set {_a::*}, {_b::*}, {_c::*} and {_d::*} to 1, 2 and 3
broadcast "%{_a::*}%"
broadcast "%{_b::*}%"
broadcast "%{_c::*}%"
broadcast "%{_d::*}%" Output:
When i try the same way with non-list variables: Spoileron load:
set {_a}, {_b} and {_c} to 1, 2 and 3
broadcast "%{_a}%"
broadcast "%{_b}%"
broadcast "%{_c}%" On 1.12.2 with Skript 2.2-dev37c it says on load:
set {_a} and {_b} to 1 and 2 Parsed in 7 seconds on 2.3-beta1 but instant on 2.2-dev37c. |
Marked as high since it could potentially crash the server, even if setting multiple values at once isn't used as much as for worrying about it. |
@Snow-Pyon sorry, I tried without addons and it appears to be addon issue with skript-mirror and MundoSK, but only on Skript 2.3-beta1. Note to addon devs: @TlatoaniHJ @btk5h tried with MundoSK 1.8.6-BETA.55 - skript-mirror 0.19.1 But still the setting multiple variables (list or single) to a list doesn't work as excepted ^^ |
If that's the case, I'm lowering the priority, gotta find out what could addons make for this to happen. |
Would be nice to know what causes this, indeed. |
Description:
When a list is "refresh", the data inside is not well taken into account, and some values remain.
Code to reproduce:
The code below will not work, because when you broadcast
"&aYEP! (%{_addons::*}%)"
SkUtilities will remain:But in this code, I "refresh" the var at the beginning, and it will tell me correctly "none" at the end (and "SkUtilities" will not remain):
Skript: tested with dev37c and 2.3-beta1
Addons: skript-yaml, skUtilities and skript-mirror (latest of each)
Server: git-Spigot-2cf50f0-2b93d83 (MC: 1.12.2) and git-Spigot-2440e18-4228a56 (MC: 1.13.1)
The text was updated successfully, but these errors were encountered: