I'm creating an adventure map and need a dialogue system for the NPCs. One simple way I thought of doing this was having a chain of click events in the chat. Unfortunately I'm still new at commands and all the ones I tried either didn't work or gave a result that I wasn't fond of...
Here is the command I tried:
tellraw @p [{"text":"text","color":"green"},{"text":"text","color":"aqua","clickEvent":{"action":"run_command","value":"/say @p"}},{"text":" Click to Continue","clickEvent":{"action":"run_command","value":"/tellraw @p text","color":"aqua"},{"clickEvent":{"action":"run_command","value":"/text"}}]