Class SayTextAction

java.lang.Object
games.stendhal.server.entity.npc.action.SayTextAction
All Implemented Interfaces:
ChatAction, PostTransitionAction

@Dev(category=CHAT, label="\"...\"") public class SayTextAction extends Object implements ChatAction
says the specified text, it works just like the normal parameter of add. But in addition it add support for [variables]. Most notable [name] will be replaced by the players name. And [quest.slotname:1] will be replaced by the value stored in the questslot "slotname" at index 1.
  • Constructor Details

    • SayTextAction

      public SayTextAction(String text)
      Creates a new SayTextAction.
      Parameters:
      text - text to say
    • SayTextAction

      public SayTextAction(Iterable<String> texts)
      Creates a new SayTextAction.
      Parameters:
      texts - list of texts from which a random one is said
    • SayTextAction

      public SayTextAction(String[] texts)
      Creates a new SayTextAction.
      Parameters:
      texts - array of texts from which a random one is said
  • Method Details