#DeluxeMenus - change an item according to a state change of a placeholder?
1 messages · Page 1 of 1 (latest)
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? 
You can use priorities:
Put 2 items in the same slot.
'Book':
material: BOOK
slot: 0
priority: 100
'Banner':
material: BANNER
slot: 0
priority: 99
view_requirement:
requirements:
type:
expression:
For completed test set a higher priority (the lower the number, the higher the priority)
And use view requirement so that the completed status shows after the quest is completed
Please provide me some placeholders so I could explain further
Thank you so much for the help!
Here's the placeholder we've created and using for monitoring the status:
%betonquest_placeholder:objective.quest_status.tutorial%
What is the output that shows up when the quest is completed
"Completed"
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
Didn't get you
And hey, thanks alot for the help on this! I'll try this asap and will let you know if it works
here
so sting/string?
String
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
Nice
even if status isn't "Completed" anymore
i dont have
the placeholder as completed
in my user data
and i still see the item
Output is to have no color tho
Beton quest is a plugin I didn't use
So I might need to do research
Also
I mean, it shouldn't affect
since their placeholders behaves the same as any other PAPI one
The output has to be without chatcolor and a valid output
Yes
why is that
The output should be valid too
I don't think the placeholder shows any color
So it will look for a color and if it doesn't find, it will result negative
regardless
this is the first item
Yes
Dude
Run command
/papi parse me %betonquest_placeholder:objective.quest_status.tutorial%
And send me a screenshot
What does it say???
@iron shale
Ehm, 3 minutes and running
What does it say?
uhh
checking
nothing still
guessing you had to leave? 😭 @chilly grove
I'll see you soon then, thanks again 🙏 ❤️
Oh, I went to eat 🙂
Which version is your server?