Thank you. Yes, you can add any logic underneath the comment and it works with multiple pages in the NPC event.
Here, for example, you can see I have a plugin command and two pages for the NPC. The only thing to note is that the comment should be on the first page.
