Heya, in this guide i will not be covering how to spawn npc/entity. This guide will help you create(send) random NPC dialogue, let's get started.
Raw code-
Player event( Chat msg.) -> If player name equals( Your ign) -> If player msg equals( @Generate-Arrays) -> Create Array( NPC-Dialogue, add...