#(baileyc889) question about wild cards

29 messages · Page 1 of 1 (latest)

placid hemlock
#

Trying to update my chest lock script that uses lock signs. Going to use the event “player right clicks”

I want to use the with:item switch. Is there a wild card for NOT TEXT?

So sign would return oak sign, oak hanging sign, etc. is there a wild card function to filter out the “hanging” text? I can use tags, but was just wondering

stark slateBOT
#

(baileyc889) question about wild cards

stark slateBOT
#

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.

gilded perch
#

with:*_sign?

#

a wild card for NOT TEXT? and filter out the “hanging” text confused me

placid hemlock
#

I’ll just spitball here

#

With:*!hanging!_sign

#

So the star will parse the material, but event will not fire if the item contains “hanging”

gilded perch
#

in english you mean, a switch for when it's not a hanging sign or a regular sign?

placid hemlock
#

A switch for when it’s a regular sign, but not a hanging sign

gilded perch
#

have you tried something like with:*_sign|!hanging* or with:!hanging*|*_sign?

#

those are the only two matchers id imagine would work

#

ohh actually we can check

#

!t advanced_matches

wheat basaltBOT
steady irisBOT
#

Tag parse results for <list[oak_sign|stone|hanging_oak_sign].advanced_matches[*_sign|!hanging*]><n><list[oak_sign|stone|hanging_oak_sign].advanced_matches[!hanging*|*_sign]>: https://paste.denizenscript.com/View/119962

true
true
gilded perch
#

oh, maybe not

#

unless im just dumb

steady irisBOT
gilded perch
#

i clearly just dont know how tags and the matcher works, can see if someone finds the answer

muted frigate
#
on player right clicks chest with:!*_hanging*|!*sign:
- determine cancelled passively
- narrate "No hangy sign"```
#

Idk if that's the most practical way lol

#

but that's the only thing that worked for me

glacial gale
#
on player right clicks *sign:
- stop if:<context.location.material.advanced_matches[hanging*]>
- stuff
#

gonna be the easiest way tbh

placid hemlock
#

That’s what I ended up doing