Trigger event

From Blood Wiki
Revision as of 01:15, 3 July 2012 by VorteX (Talk | contribs)

Jump to: navigation, search

Contents

CALL EVENT BASICS

Call event is most useful event.

It happens when trigger get touched, on monster dies, each object can have it's own behavior and launch call even under it's own circumstances.

But structure of event is same all the time.

Call event takes input:

  • activator entity - who lets event go
  • call entity - entity call is being processed on
  • call parameters - instructions for call event, fetched from "targetparm" field of call entity.

Call parameters rules:

  • ';' is the separator between instructions
  • If call parameters instructions string not begins with "select", "SELECT TARGETS;" is automatically added
  • NOCALL instruction breaks call event
  • Empty instructions defaults to "SELECT TARGETS;CALL"

INSTRUCTIONS

SELECT / ADD

Starts and expands selection of entities, which will be called.

  • SELECT TARGETS - select entity to which i'm targeted
  • SELECT TARGETERS - select entities which are targeted to me
  • SELECT BYID id1 id2 id3 ... idX - select entities by their save id's
  • SELECT BYTARGETNAME targetname1 targetname2 ... targetnameX - select entities by their save id's

INFOPORTION

Manipulate infoportions on activator.

  • INFOPORTION SET infoportion - adds/update infoportion
  • INFOPORTION DEL infoportion - delete infoportion
  • INFOPORTION INC infoportion [increase_by] - increase infoportion value by 1 or by custom value (of presented)
  • INFOPORTION DEC infoportion [decrease_by] - increase infoportion value by 1 or by custom value (of presented)

[mask:]action

Call all selected entities with parameter.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox