#(lloyd_159) check if player enters cuboid area

40 messages · Page 1 of 1 (latest)

tender trellis
#

I tried to make a world script which triggers when a player enters an cuboid-shaped area, but I am kinda stupid and don't understand how it works, so can anybody tell me what I am doing wrong?

playerEntersCuboid_world:
    type: world
    events:
        after player enters area:
            - note world,21,64,166,25,70,180 as:cuboid
            - if (context.area matches cuboid):
                - narrate "Area entered"
river wraithBOT
#

(lloyd_159) check if player enters cuboid area

river wraithBOT
#

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.

tawdry ether
#

Well there are several things.

#

You probably shouldn't note an area as cuboid for a name.
That raw location you tried to provide is actually an elementtag and might not be recognized.
The event player enters area is generally for existing noted areaobjects.

#

If you wish to easily make a noted area of your choice, consider using...

tender trellis
#

I noted the a cuboid and updated my code:

playerEntersDandelionCuboid_World:
    type: world
    events:
        after player enters dandelionQuestNote:
            - narrate "Dandelion touched"

I used /denizen reload -a but it still doesn't work :/

tawdry ether
#

Don't use denizen reload

#

Just use ex reload

#

If I'm right you're losing information that isn't saved when using denizen reload -a

tender trellis
#

k

#

I get an error

tawdry ether
#

!debug

gusty spearBOT
# tawdry ether !debug
Info: debug

If you need help with a script issue, one of the most powerful tools Denizen has to offer is full debug output. This is displaying in your console whenever scripts are running until you turn debug off. To share a debug log quickly and easily with helpers, simply run the command /denizen debug -r in-game to begin recording, then run through the part of the script you need help with, then run the command /denizen submit. This will give you a link to a paste of the debug log, which you can then copy/paste back to us!

tender trellis
tawdry ether
#

I specified to use ex reload

#

Stop using denizen reload -a

#

Oh wait are you trying to do ex reload -a? There is no need for that.

#

ex reload will reload all current scripts.

tender trellis
#

oh, okay

#

without the -a it worked

#

thank you, now it's working properly

tawdry ether
tender trellis
#

I actually don't know, I only read through the tutorial. Either it's somewhere there, or (probably) I just tried using /denizen and saw that there is reload so I started using it.

#

well next time I will look it up first before using a random command ig

tawdry ether
#

I believe the guide says to use ex reload but you know now so.

fervent steeple
#

probably something old

#

should go with the guide, no tutorials that you find somewhere else

#

so you can make sure you're working with up 2 date info

#

!guide

gusty spearBOT
halcyon runeBOT
#

@tender trellis

Thread Close Blocked

Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.

#
Resolved

Thread closed as resolved.

storm grotto
halcyon runeBOT
#
Thread Reopened

Thread was manually reopened by @storm grotto.

tender trellis
#

as a tool to define cuboids and other areas

storm grotto
#

ahh thanks