ShowObjectiveEvent
The quest-style banner - a title with a line under it.
The game’s own objective banner (the one that announces “New objective” with the quest’s name and the objective’s
text): title goes where the quest’s name goes, text where the objective’s does, kind is OBJECTIVE_NEW,
OBJECTIVE_DONE or OBJECTIVE_FAILED - the game colors and sounds them its own way. The duel arena announces its
rounds and results with it.
Syntax
Section titled “Syntax”ShowObjectiveEvent(pid, title, text [, kind])| Parameter | Type | |
|---|---|---|
pid |
number | the player (-1 = everyone) |
title |
string | the banner’s title |
text |
string | the line under it |
kind |
number | OBJECTIVE_NEW (the default), OBJECTIVE_DONE or OBJECTIVE_FAILED (optional) |
Returns
Section titled “Returns”boolean
Example
Section titled “Example”ShowObjectiveEvent(pid, "Capture the flag", "Bring the flag to the mill", OBJECTIVE_NEW)ShowObjectiveEvent(pid, "Capture the flag", "The flag is home", OBJECTIVE_DONE)See also
Section titled “See also”ShowObjectiveEventForAll · ShowInfoText · GameText · the GameText and HUD group of the index
