Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.01 KB | None | 0 0
  1. new Dialogue() {
  2.  
  3.             @Override
  4.             public DialogueType type() {
  5.                 return DialogueType.PLAYER_STATEMENT; // or DialogueType.NPC_STATEMENT
  6.             }
  7.  
  8.             @Override
  9.             public DialogueExpression animation() {
  10.                 return DialogueExpression.NORMAL;
  11.             }
  12.  
  13.             @Override
  14.             public String[] dialogue() {
  15.                 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"};
  16.             }
  17.            
  18.             public Dialogue nextDialogue() {
  19.                 new Dialogue() {
  20.             @Override
  21.             public DialogueType type() {
  22.                 return DialogueType.NPC_STATEMENT;
  23.             }
  24.  
  25.             @Override
  26.             public DialogueExpression animation() {
  27.                 return DialogueExpression.NORMAL;
  28.             }
  29.  
  30.             @Override
  31.             public int npcId() {
  32.                 return npcidhere; // the npc id
  33.             }
  34.  
  35.             @Override
  36.             public String[] dialogue() {
  37.                 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"};
  38.                     }
  39.                 }
  40.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement