objective
Vars | |
completed | If the objective has been completed. |
---|---|
explanation_text | What the owner is supposed to do to complete the objective. |
martyr_compatible | If the objective is compatible with martyr objective, i.e. if you can still do it while dead. |
name | Proper name of the objective. Not player facing, only shown to admins when adding objectives. Leave as null (or override to null) if you don't want admins to see that objective as a viable one to add (such as the mindslave objective). |
needs_target | If the objective should have find_target() called for it. |
owner | Owner of the objective.
Note that it's fine to set this directly, but when needing to check completion of the objective or otherwise check conditions on the owner of the objective,
always use get_owners() , and check against ALL the owners. get_owners() accounts for objectives that may be team based and therefore have multiple owners. |
target | The target of the objective. |
target_amount | If they are focused on a particular number. Steal objectives have their own counter. |
team | The team the objective belongs to, if any. |
Procs | |
establish_signals | This is for objectives that need to register signals, so place them in here. |
get_owners | Get all owners of the objective, including ones from the objective's team, if it has one. |
on_target_cryo | Called when the objective's target goes to cryo. |
post_target_cryo | Called a tick after when the objective's target goes to cryo. |
update_explanation_text | This is for objectives that have reason to update their text, such as target changes. |
Var Details
completed
If the objective has been completed.
explanation_text
What the owner is supposed to do to complete the objective.
martyr_compatible
If the objective is compatible with martyr objective, i.e. if you can still do it while dead.
name
Proper name of the objective. Not player facing, only shown to admins when adding objectives. Leave as null (or override to null) if you don't want admins to see that objective as a viable one to add (such as the mindslave objective).
needs_target
If the objective should have find_target()
called for it.
owner
Owner of the objective.
Note that it's fine to set this directly, but when needing to check completion of the objective or otherwise check conditions on the owner of the objective,
always use get_owners()
, and check against ALL the owners. get_owners()
accounts for objectives that may be team based and therefore have multiple owners.
target
The target of the objective.
target_amount
If they are focused on a particular number. Steal objectives have their own counter.
team
The team the objective belongs to, if any.
Proc Details
establish_signals
This is for objectives that need to register signals, so place them in here.
get_owners
Get all owners of the objective, including ones from the objective's team, if it has one.
Use this over directly referencing owner
in most cases.
on_target_cryo
Called when the objective's target goes to cryo.
post_target_cryo
Called a tick after when the objective's target goes to cryo.
update_explanation_text
This is for objectives that have reason to update their text, such as target changes.