#Make different entity dialogues
9 messages · Page 1 of 1 (latest)
A dialogue's page can be changed with /dialogue open on a button. Be sure to target the player using @initiator, so that it only affects the player who clicked the button.
Yeah that makes sense. is there also any way to make a text random whenever you click an npc?
what do you mean make a text random?
Whenever you open up the npc dialogue it should be a random what he ia saying
create many dialogues scenes and use
/scoreboard players random @initiator randomTalk 1 3
/dialogue open @initiator[scores={randomTalk=1}] dialogue1
/dialogue open @initiator[scores={randomTalk=2}] dialogue2
/dialogue open @initiator[scores={randomTalk=3}] dialogue3
something like that
I didn't know that there is a random selector in bedrock
There is a randomize function for scoreboards—you would need to create the randomTalk scoreboard objective for this to work:
/scoreboard objectives add randomTalk dummy
Yeah I already made it work, you can't just do this in java like this so I didn't know it was a thing in bedrock of course