#(mramnesia8) Need some assistance with my mini-game!

14 messages · Page 1 of 1 (latest)

lethal marten
#

Main script - https://paste.denizenscript.com/View/123950
Initialize holes/start - https://paste.denizenscript.com/View/123951

So, I'm currently making a discgolf minigame for minecraft, and I've got the basics down and it is surprisingly working quite great.
Now, however, I've ran into an issue. Not an error or something that needs to be debuged, but something I need help with resolving because I'm not sure what's the best way to tackle it.

and before you start, yes I am using raw locations for the initialize script, I will change that later when I feel more comfortable making notes, but right now I'm sticking with it, because it works and I'm perfectly content with it.

So, the issue at hand:
My "test" map has three holes. when you hit an arrow on hole 1 basket (which right now is a barrier) you get teleported to hole 2 starting position and need to hit the hole 2 basket. However, that's where the issue comes in. because I have no way to check IF the user is hitting hole 2 basket. Right now, if a player is on Hole 2, they can just hit the hole 1 basket and get teleported to hole 3 and continue. I do not want that. How can I make a sort of "check" for the barrier blocks that I've placed, that they can only move the player forward a hole/continue with the script, IF they are on the correct hole to begin with when they are shooting at the basket for that hole?

Thanks

ruby pineBOT
#

(mramnesia8) Need some assistance with my mini-game!

ruby pineBOT
#

Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.

craggy holly
#

This can actually be solved by making these holes notable and not raw locations..

#

!t location.note_name

zealous arrowBOT
craggy holly
#

Flag the player for what hole they are on or expected to get and check against the holes note_name to see if it matches

lethal marten
#

hmmm, that does sound like what I'll need. I test it out

next hornet
#

I will also add this one here ...

#

!itworks

zealous arrowBOT
# next hornet !itworks
Info: itworks

Many newer scripters tend to not realize the important difference between "it works" and "it is correct". Just because a script works does not mean everything's fine.

Helpers are encouraged to refuse to continue helping a user with the "if it works it's good enough" mindset until they fix all the things that are wrong (but seem to work) in their script.

Read a longer writeup explaining this idea on the forum here: https://forum.denizenscript.com/threads/public-information-writeup-the-it-works-fallacy.265/

lethal marten
#

but thanks nonetheless