#Skript really does not like my snippet

1 messages · Page 1 of 1 (latest)

rapid gulch
#

if i remove it the tps on reload goes to 20 but when it is added the tps goes down to 17, it brings the reload time up a ton too but i dont see a problem?

  if {_map} = "desert":
    execute console command "/mvclone arena1 arena.%{_arenacode}%"
    wait a tick
    set {_world} to world("arena.%{_arenacode}%")
    set {_loc} to location(x-coord of {reddesert}, y-coord of {reddesert}, z-coord of {reddesert}, {_world})
    set {_loc2} to location(x-coord of {bluedesert}, y-coord of {bluedesert}, z-coord of {bluedesert}, {_world})
  if {_map} = "jungle":
    execute console command "/mvclone arena2 arena.%{_arenacode}%"
    wait a tick
    set {_world} to world("arena.%{_arenacode}%")
    set {_loc} to location(x-coord of {redjungle}, y-coord of {redjungle}, z-coord of {redjungle}, {_world})
    set {_loc2} to location(x-coord of {bluejungle}, y-coord of {bluejungle}, z-coord of {bluejungle}, {_world})
visual ginkgo
#

Please format with tabs correctly and send the whole trigger, including the start

rapid gulch
#

sorry, it is formatted corerctly, but the skript is like 500 lines long, do you want the whole thing?

#

like literally the whole skript?

#

I know which part is having issues, but heres this anyways!

#

i may have just fixed it

#

tps still suffers when reloading this shit

#

yeah thats not normal for this skript (first image is with the map check implemented 2nd one is without)

its quite obvious what is making the skript do this but idk how to fix it.

#

ignore the 8 errors lol

#

im just doing it adiff way thanks anyways

visual ginkgo
#

But whatever I guess if you’re doing it a different way

rapid gulch
#

i am, its an inventory click event so

light isle
#

the integers between expression will return integers, so you cant use them as strings

#

you can use \d as a regex pattern for this though

rapid gulch