#regions + skript i hate em
1 messages · Page 1 of 1 (latest)
Did you debug it?
Can you tell us what you mean by âdoesnt workâ? What goes wrong? Where? When?
This is an excellent start to answering those
you havent provided any clarification there.
- Tell us what you actually want this to do
- tell us what it does instead
- debug to find the part where tings go wrong
- and maybe fix it yourself
I mean its suppose to sell.
also, you could absolutely use loops and pull some things out to make this much neater
Ik
set {_q} to amount of loop-value in p's inv
set {_$} to {_q} * (multiplier) * 5^(loop-iteration)```
5^loop??
never learned dat
Oh
loop-iteration is just how many times the loop has run (in this case, equivalent to the tier)
I see
â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
so basically i want to make it so it sells
when player enters the region
like it doesnt sell the stuff
it suppose to get the stuff and give the money
but it doesnt do that
Okay
Which lines fail
Which condition
If none itâs probably not getting the region correctly. Maybe 
no line fail
region is fine though.
do u know about anything?
Then it should work perfectly
add broadcasts and sends
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"