Examples of TriggerInListCondition


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

    yesnotriggers.addAll(ConversationPhrases.NO_MESSAGES);
   
    npc.add(
        ConversationStates.INFORMATION_1,
        "",
        new NotCondition(new TriggerInListCondition(yesnotriggers)),
        ConversationStates.INFORMATION_1,
        "I asked you a 'yes or no' question: I can offer a few tips on socializing, would you like to hear them?",
        null);

    // he puts 'like this' into blue and so many people try that first
View Full Code Here

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

        "Bye.", null);

    // player says something which isn't the dwarf's name.
    npc.add(ConversationStates.QUESTION_1,
        "",
        new NotCondition(new TriggerInListCondition(NAME.toLowerCase())),
        ConversationStates.QUESTION_1,
        "Hm, you better check who it's really for.",
        null);
  }
View Full Code Here

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

            player.setQuest(QUEST_SLOT, "" + System.currentTimeMillis());
          }
        });

    fisherman.addMatching(ConversationStates.QUESTION_1, Expression.JOKER, new JokerExprMatcher(),
        new NotCondition(new TriggerInListCondition(ConversationPhrases.GOODBYE_MESSAGES)),
        ConversationStates.ATTENDING, null,
        new ChatAction() {
          public void fire(final Player player, final Sentence sentence, final EventRaiser npc) {
            String species = getCurrentSpecies();
            String obj = sentence.getObjectName();
View Full Code Here

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

    // player says something which isn't in the needed spirits list.
    npc.add(
      ConversationStates.QUESTION_1,
      "",
      new NotCondition(new TriggerInListCondition(NEEDED_SPIRITS)),
      ConversationStates.QUESTION_1,
      "Sorry, I don't understand you. What name are you trying to say?",
      null);

    npc.add(
View Full Code Here

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

      }
    });

    // player says something which isn't in the needed food list.
    npc.add(ConversationStates.QUESTION_1, "",
      new NotCondition(new TriggerInListCondition(NEEDED_FOOD)),
      ConversationStates.QUESTION_1,
      "I won't put that in your soup.", null);

    // allow to say goodbye while Helena is listening for food names
    npc.add(ConversationStates.QUESTION_1, ConversationPhrases.GOODBYE_MESSAGES, null,
View Full Code Here

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

        add(ConversationStates.ATTENDING, "creature", null,
            ConversationStates.QUESTION_1,
            "Which creature you would like to hear more about?", null);

        add(ConversationStates.QUESTION_1, "",
            new NotCondition(new TriggerInListCondition(ConversationPhrases.GOODBYE_MESSAGES)),
            ConversationStates.ATTENDING, null,
            new ChatAction() {
          public void fire(final Player player, final Sentence sentence, final EventRaiser speakerNPC) {
            final String creatureName = sentence.getTriggerExpression().getNormalized();
            final DefaultCreature creature = SingletonRepository.getEntityManager().getDefaultCreature(creatureName);
View Full Code Here

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

    // player says something which isn't in the needed kids list.
    npc.add(
        ConversationStates.QUESTION_1,
        "",
        new NotCondition(new TriggerInListCondition(NEEDED_KIDS)),
        ConversationStates.QUESTION_1,
        "Sorry, I don't understand you. What name are you trying to say?",
        null);

    npc.add(
View Full Code Here

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

    /**
     * player tries to offer an unwanted item
    */
    protected void offerNotNeededItem() {
  concreteQuest.getNPC().add(ConversationStates.QUESTION_1, "",  
           new NotCondition(new TriggerInListCondition(concreteQuest.getNeededItems())),
           ConversationStates.QUESTION_1,
           concreteQuest.respondToOfferOfNotNeededItem(),
           null);
    }
View Full Code Here

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

      }
    });

    // player says something which isn't in the needed food list.
    npc.add(ConversationStates.QUESTION_1, "",
      new NotCondition(new TriggerInListCondition(NEEDED_FOOD)),
      ConversationStates.QUESTION_1,
      "I won't put that in your fish soup.", null);

    // allow to say goodbye while Florence is listening for food names
    npc.add(ConversationStates.QUESTION_1, ConversationPhrases.GOODBYE_MESSAGES, null,
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.