#why.

1 messages · Page 1 of 1 (latest)

shadow surge
#
command /testss:
  trigger:
    set {_test} to "0|0|100,1|0|100,2|0|100,2|1|100,2|2|100"
    set {_sections::*} to {_test} split at ","
    loop size of {_sections::*} times:
      set {_sections2::%loop-value%::*} to {_sections::%loop-value%} split at "|"
    loop size of {_sections::*} times:
      send {_sections2::%loop-value%::%-2 + 3%}
      send {_sections2::%loop-value%::%-1 + 3%}
      send {_sections2::%loop-value%::3}
      n({_sections2::%loop-value%::%-2 + 3%} , {_sections2::%loop-value%::%-1 + 3%})
      send "n(%{_sections2::%loop-value%::%-2 + 3%}% , %{_sections2::%loop-value%::%-1 + 3%}%)" to player
      wait "%{_sections2::%loop-value%::3}% ticks" parsed as timespan

function n(l1: number , l2: number):
  spawn slime at location {_l1} - 272.5, {_l2} - 27, -580 in world "world"
  set yaw of last spawned entity to 0
  add nbt from "{NoAI:1}" to nbt of last spawned entity
  add nbt from "{Size:1}" to nbt of last spawned entity
#

so, the right values are being sent

#

from ```vb
send "n(%{_sections2::%loop-value%::%-2 + 3%}% , %{_sections2::%loop-value%::%-1 + 3%}%)" to player

#

the only thing not working really is the function

#

even tho apparently it should work

#

i do not see why it shouldnt work

#

please someone HELP ME

obsidian lark
shadow surge
#

uh

#

the send line sends the right vlalues

#

but when the function does function things+

#

it spawns the slimes

#

at bottom left

#

bc the integers

#

arent set apparently

#

so it says <none>

obsidian lark
#

why use "%-2 + 3%" instead of just "1"

#

also, use the location function and debug inside the fuction

shadow surge
shadow surge
shadow surge
#

I dont get it

#

I know the issue, yet i dont understand the issue

#

The previously output output isnt putting out anymore

#

What

#

The

#

Fuck

#

Im seriously tweaking

obsidian lark
#

show me the debugs

shadow surge
#

I mean like i said, i know the reason y it doesnt work, its cuz the variables arent set inside the functions and they output <none>

#

which i really dont know why it does that

shadow surge
shadow surge
obsidian lark
#

are they integers? strings?

shadow surge
#

I think

#

Fuck

#

Wait

#

U might be onto smth

shadow surge
#

This should work

#

It makes sense

#

If not you i wouldve never come to this conclusion