Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new Dialogue() {
- @Override
- public DialogueType type() {
- return DialogueType.PLAYER_STATEMENT; // or DialogueType.NPC_STATEMENT
- }
- @Override
- public DialogueExpression animation() {
- return DialogueExpression.NORMAL;
- }
- @Override
- public String[] dialogue() {
- return new String[]{"Hello npc", "This is line 2 of the player", "This is line 3 of the player", "This is line 4 of the player"};
- }
- public Dialogue nextDialogue() {
- new Dialogue() {
- @Override
- public DialogueType type() {
- return DialogueType.NPC_STATEMENT;
- }
- @Override
- public DialogueExpression animation() {
- return DialogueExpression.NORMAL;
- }
- @Override
- public int npcId() {
- return npcidhere; // the npc id
- }
- @Override
- public String[] dialogue() {
- return new String[]{"Hello PLAYER i am the npc", "This is line 2 of the npc", "This is line 3 of the npc", "This is line 4 of the npc"};
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement