#DeluxeMenus - change an item according to a state change of a placeholder?

1 messages · Page 1 of 1 (latest)

iron shale
#

Is it possible to change the item in a GUI if it's status has been changed according to a certain placeholder?

#

For example, we have a placeholder that we've created that follows a quest state, and been wanting to create a quest journal for our server quests.

#

We do have a status that changes in the item, but we would like to change the item type if the status changes to "Complete"

#

example:

#

currently the item is a book

#

once the status changes to "completed" we would like the item to change alongside it

#

Would that be be possible in any way? thinkRoll

cobalt grove
#

you can use 2 items at the same slot

#

or changeoutput expansion

chilly grove
#

Please provide me some placeholders so I could explain further

iron shale
#

Here's the placeholder we've created and using for monitoring the status:

#

%betonquest_placeholder:objective.quest_status.tutorial%

chilly grove
#

What is the output that shows up when the quest is completed

iron shale
#

"Completed"

chilly grove
#

Ok

#

So it will be

#

  'Banner':
    material: BANNER
    slot: 0
    priority: 99
    view_requirement:
      requirements:
        type: sting equals
        input: '%betonquest_placeholder:objective.quest_status.tutorial%'
        output: 'Completed'
#

This should work

iron shale
#

sting should be - string

#

no?

chilly grove
#

Didn't get you

iron shale
#

And hey, thanks alot for the help on this! I'll try this asap and will let you know if it works

#

here

iron shale
chilly grove
#

Ok

#

Yes

iron shale
#

so sting/string?

chilly grove
#

String

iron shale
#

👌

#

thought so

#

Will give it a shot

chilly grove
#

Ok

#

Worked?

iron shale
#

Didn't work im afraid @chilly grove

#
    material: BOOK
    display_name: '&3A Journey Begins'
    priority: 100
    lore:
      - '&8Location: &7160 -47 -10'
      - ''
      - '&8Required Level: &71'
      - '&8Starting NPC: &7Waykeeper'
      - '&8Status: %betonquest_placeholder:objective.quest_status.tutorial%'
    slot: 0```
#

first item

#
    material: BANNER
    slot: 0
    priority: 99
    view_requirement:
      requirements:
        type: string equals
        input: '%betonquest_placeholder:objective.quest_status.tutorial%'
        output: '&aCompleted'```
#

second item

chilly grove
#

Oh shet

#

Replace banner with GREEN_DYE

#

I forgot banner doesn't show up

#

And also

iron shale
#

now it works but

#

overlaps the other one

chilly grove
#

Nice

iron shale
#

even if status isn't "Completed" anymore

chilly grove
#

Wym?

#

Like even if the quest isn't completed it shows up?

iron shale
#

i dont have

#

the placeholder as completed

#

in my user data

#

and i still see the item

chilly grove
#

Output is to have no color tho

#

Beton quest is a plugin I didn't use

#

So I might need to do research

#

Also

iron shale
#

I mean, it shouldn't affect

#

since their placeholders behaves the same as any other PAPI one

chilly grove
#

The output has to be without chatcolor and a valid output

iron shale
#

oh no chat color on output?

chilly grove
#

Yes

iron shale
#

why is that

chilly grove
#

The output should be valid too

chilly grove
#

So it will look for a color and if it doesn't find, it will result negative

iron shale
#

huh

#

well im not sure how this works

#

xD

iron shale
#

this is the first item

chilly grove
#

Yes

#

Dude

#

Run command
/papi parse me %betonquest_placeholder:objective.quest_status.tutorial%

#

And send me a screenshot

#

What does it say???

#

@iron shale

iron shale
#

trying 1 sec

#

parsed it

chilly grove
iron shale
#

returned nothing

chilly grove
#

What does it say?

iron shale
#

literally nothing

#

no value

chilly grove
#

And check menu

#

What item does it show

iron shale
#

uhh

#

checking

#

nothing still

#

guessing you had to leave? 😭 @chilly grove

#

I'll see you soon then, thanks again 🙏 ❤️

chilly grove
#

Which version is your server?