Trigger objective

Trigger_objective

(PoP Only)

Classname: trigger_objective
Purpose: Setting an objective that player can consult
H2 Code: triggers.hc
fields reqired: frags, targetname, spawnflags
When triggered, adds the message indicated in the frags field to the player's objectives screen. Unfortunately, only the numbers from 0 thru 63 seem to be available for numbering the objectives (if you try 64, it gives you objective # 32).

Fields

targetname Value is a name, when triggered, objective designated by frags is added to the objectives screen. Required
frags Value is a number between 0 and 63, coding the objective to be displayed as shown in the objectives list. Required
target Value is a name, triggered when fired (targets a trigger_deactivate in tibet1).
spawnflags There are two, whose use is described as follows:
  • 1 - FORCE_ON: On no matter what
  • 2 - FORCE_OFF: Off no matter what
Every trigger_objective occurs with one or the other of these, but I haven't tried to figure out what they do (I suspect it has to do with controlling the accumulation of multiple objectives on the screen, but haven't experimented with it yet).

Back to the list.