Examples of TriggerExactlyInListCondition


Examples of games.stendhal.server.entity.npc.condition.TriggerExactlyInListCondition

      ConversationStates.INFORMATION_1,
      "Please repeat:\r\n                        \"A circle is round,\"",
      null);
    npc.add(ConversationStates.INFORMATION_1,
      "",
      new TriggerExactlyInListCondition("A circle is round,", "A circle is round"),
      ConversationStates.INFORMATION_2, "\"it has no end.\"",
      null);
    npc.add(ConversationStates.INFORMATION_2,
      "",
      new TriggerExactlyInListCondition("it has no end.", "it has no end"),
      ConversationStates.INFORMATION_3,
      "\"That's how long,\"", null);
    npc.add(ConversationStates.INFORMATION_3,
      "",
      new TriggerExactlyInListCondition(
        "That's how long,", "That's how long",
        "Thats how long,", "Thats how long"),
      ConversationStates.INFORMATION_4,
      "\"I will be your friend.\"", null);

    ChatAction reward = new MultipleActions(new IncreaseKarmaAction(10), new IncreaseXPAction(25), new SetQuestToYearAction("susi"));
    npc.add(ConversationStates.INFORMATION_4,
      "",
      new TriggerExactlyInListCondition("I will be your friend.", "I will be your friend"),
      ConversationStates.ATTENDING,
      "Yay! We are friends now.",
      reward);
  }
View Full Code Here

Examples of games.stendhal.server.entity.npc.condition.TriggerExactlyInListCondition

        ConversationStates.INFORMATION_5,
        "Please repeat:\r\n                        \"Make new friends,\"",
        null);
    npc.add(ConversationStates.INFORMATION_5,
        "",
        new TriggerExactlyInListCondition("Make new friends,", "Make new friends"),
        ConversationStates.INFORMATION_6, "\"but keep the old.\"",
        null);
    npc.add(ConversationStates.INFORMATION_6, "",
        new TriggerExactlyInListCondition("but keep the old.", "but keep the old"),
        ConversationStates.INFORMATION_7, "\"One is silver,\"",
        null);
    npc.add(ConversationStates.INFORMATION_7, "",
        new TriggerExactlyInListCondition("One is silver,", "One is silver"),
        ConversationStates.INFORMATION_8, "\"And the other gold.\"",
        null);

    // lowercase "and" is ignored, even in full match mode
    ChatAction reward = new MultipleActions(new IncreaseKarmaAction(15), new IncreaseXPAction(50), new SetQuestToYearAction("susi"));
    npc.add(ConversationStates.INFORMATION_8, "",
        new TriggerExactlyInListCondition("And the other gold.", "And the other gold", "the other gold.", "the other gold"),
        ConversationStates.ATTENDING,
        "Yay! We are even better friends now.",
        reward);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.