Examples of NakedCondition


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

    final SpeakerNPC npc = npcs.get("Ketteh Wehoh");

    npc.add(ConversationStates.IDLE,
        ConversationPhrases.GREETING_MESSAGES,
        new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
            new NakedCondition()),
        ConversationStates.ATTENDING,
        "Who are you? Aiiieeeee!!! You're naked! Quickly, right-click on yourself and choose SET OUTFIT!\nIt's lucky you met me as I teach good #manners. My next lesson for you is that if anyone says a word in #blue it is polite to repeat it back to them. So, repeat after me: #manners.",
        new SetQuestAction(QUEST_SLOT, "seen_naked"));

   
    npc.add(ConversationStates.IDLE,
        ConversationPhrases.GREETING_MESSAGES,
        new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
            new NotCondition(new NakedCondition()),
            new QuestInStateCondition(QUEST_SLOT, "seen_naked")),
        ConversationStates.ATTENDING,
        null,
        new MultipleActions(
            new SayTextWithPlayerNameAction("Hi again, [name]. I'm so glad you have some clothes on now."),
            new SetQuestAction(QUEST_SLOT, "done")));

    npc.add(ConversationStates.IDLE,
        ConversationPhrases.GREETING_MESSAGES,
        new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
            new NotCondition(new NakedCondition()),
            new QuestNotStartedCondition(QUEST_SLOT)),
        ConversationStates.ATTENDING,
        null,
        new MultipleActions(
            new SayTextWithPlayerNameAction("Hi [name], nice to meet you. You know, we have something in common - good #manners. Did you know that if someone says something in #blue it is polite to repeat it back to them? So, repeat after me: #manners."),
            new SetQuestAction(QUEST_SLOT, "seen")));
   
    npc.add(ConversationStates.IDLE,
        ConversationPhrases.GREETING_MESSAGES,
        new AndCondition(new GreetingMatchesNameCondition(npc.getName()),
            new NotCondition(new NakedCondition()),
            new QuestStartedCondition(QUEST_SLOT),
            new QuestNotInStateCondition(QUEST_SLOT, "seen_naked")),
        ConversationStates.ATTENDING,
        null,
        new SayTextWithPlayerNameAction("Hi again, [name]."));

    npc.add(ConversationStates.ATTENDING, ConversationPhrases.NO_MESSAGES, new NakedCondition(),
        ConversationStates.IDLE,
        "If you don't put on some clothes and leave, I shall scream!",
        null);

    npc.add(ConversationStates.ATTENDING, "manners",
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.