Events

Events
Events are the actions that the quest takes. A player can define these events beforehand, and the Quest will call them when the time is necessary.

Below are some of the common events found in MineQuest 2.0.0:

Core Events
  • CompleteQuestEvent:a- Complete the quest.
    • a: Execution Delay (In Milliseconds)
  • LockWorldTimeEvent:a:b- Lock the quest world's time.
    • a: Time margin of error (In ticks)
    • b: Time to set to (day/night/ticks)
  • MessageEvent:a:b...- Message the party on the quest.
    • a: Execution Delay (In Milliseconds)
    • b...: Message to send to the party.
  • NameEvent:a- Send a description to the party.
    • a: Description to send to the party. This will appear under the "Current Tasks" header.
  • PartyHealthEvent:a:b- Set the party's health to a certain percentile of the max.
    • a: Execution Delay (In Milliseconds)
    • b: Percentile of Maximum Health to set Party to. (0 <= x <= 1)
  • QuestAvailableEvent:a:b - Give the owner of the quest a new one.
    • a: Execution Delay (In Milliseconds)
    • b: Quest to give.
    • WARNING: In the 2.0.0 Final, this does NOT work as expected. Please use a version > 2.0.0 Milestone 8 for this event to work.
  • RequirementMetEvent:a:b:c - Check for a requirement.
    • a: Requirement to check for (ID)
    • b: Task to execute if Requirement is met.
    • c: Task to execute if Requirement is NOT met.
  • RewardCmdEvent:a:b... - Run a command for each player in the party.
    • a: Task to execute after event runs.
    • b...: Commands to run for the player. Use %p as a placeholder for each player in the party.
Dec 28, 2012