#regions + skript i hate em

1 messages · Page 1 of 1 (latest)

winged nova
#

any one can help

#

PLEASE?

#

😉

broken shuttle
#

Did you debug it?

left meadow
#

Can you tell us what you mean by “doesnt work”? What goes wrong? Where? When?

left meadow
winged nova
#

Like the whole skript

#

Dont work

#

Like its not suppose to do

left meadow
#

you havent provided any clarification there.

#
  1. Tell us what you actually want this to do
  2. tell us what it does instead
  3. debug to find the part where tings go wrong
  • and maybe fix it yourself
left meadow
#

also, you could absolutely use loops and pull some things out to make this much neater

winged nova
#

Ik

left meadow
#
  set {_q} to amount of loop-value in p's inv
  set {_$} to {_q} * (multiplier) * 5^(loop-iteration)```
left meadow
#

well

#

each teir of wheat is woth 5x more

#

which is just powers of 5

winged nova
#

Oh

left meadow
#

loop-iteration is just how many times the loop has run (in this case, equivalent to the tier)

winged nova
#

I see

broken shuttle
#

“Whole thing” tells us absolutely nothing

#

We need to know what part of your code doesn’t work

#

Not that the code doesn’t work

winged nova
#

when player enters the region

left meadow
#

Okay

#

Weve got that

#

What doesnt work about it

winged nova
#

it suppose to get the stuff and give the money

#

but it doesnt do that

left meadow
#

Okay

#

Which lines fail

#

Which condition

#

If none it’s probably not getting the region correctly. Maybe waitatick

winged nova
winged nova
left meadow
#

Please dont ping me

#

And weve told you to debug if you dont know what goes wrong

left meadow
broken shuttle
#

Please, just debug it

#

it makes us helping you far easier

winged nova
#

how

#

i never debug a code ever..

broken shuttle
#

add broadcasts and sends

left meadow
#

debugging example:on right-click: broadcast "event fired!" if player's health > 100: broadcast "player has enough health!" give player 1 of diamond broadcast "gave diamond!" else: broadcast "does not have enough health"