Trigger event

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
= CALL EVENT BASICS =
+
= Call event basics =
  
 
Call event is most useful event.
 
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.
+
It happens when trigger get touched, on monster dies, each object can have it's own behavior and launch call event under it's own circumstances.
  
 
But structure of event is same all the time.
 
But structure of event is same all the time.
Line 9: Line 9:
 
'''Call event takes input:'''
 
'''Call event takes input:'''
  
* activator entity - who lets event go
+
* self - entity call is being processed on
* call entity - entity call is being processed on
+
* activator - who lets event go (usually player or monster)
* call parameters - instructions for call event, fetched from "targetparm" field of call entity.
+
* parameters - instructions for call event, fetched from "targetparm" field of self.
  
 
'''Call parameters rules:'''
 
'''Call parameters rules:'''
  
 +
* Instructions are case insensative
 
* ';' is the separator between instructions
 
* ';' is the separator between instructions
 
* If call parameters instructions string not begins with "select", "SELECT TARGETS;" is automatically added
 
* If call parameters instructions string not begins with "select", "SELECT TARGETS;" is automatically added
Line 20: Line 21:
 
* Empty instructions defaults to "SELECT TARGETS;CALL"
 
* Empty instructions defaults to "SELECT TARGETS;CALL"
  
= INSTRUCTIONS =
+
= Instructions =
  
== SELECT / ADD ==
+
== SELECT/ADD ==
  
Starts and expands selection of entities, which will be called.
+
Starts (select) and expands (add) selection of [[Entity | entities]], which will be called.
  
 
* SELECT TARGETS - select entity to which i'm targeted
 
* SELECT TARGETS - select entity to which i'm targeted
Line 33: Line 34:
 
== INFOPORTION ==
 
== INFOPORTION ==
  
Manipulate infoportions on activator.
+
Manipulate [[Infoportion | infoportions]] on activator.
  
 
* INFOPORTION SET ''infoportion'' - adds/update infoportion
 
* INFOPORTION SET ''infoportion'' - adds/update infoportion
Line 40: Line 41:
 
* INFOPORTION DEC ''infoportion'' ''[decrease_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'' ==
+
== [CLASSNAME:]CALL ==
  
Call all selected entities with parameter.
+
This calls all selected entities with their default action.
 +
 
 +
Can filter this event by classname, if it's presented, only selected entities matching classname will be processed.
 +
 
 +
Example: select targets;effect_light:call
 +
 
 +
== [CLASSNAME:]OTHER ACTIONS ==
 +
 
 +
This calls all selected entities with custom action.
 +
 
 +
Classname

Revision as of 01:22, 3 July 2012

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 event under it's own circumstances.

But structure of event is same all the time.

Call event takes input:

  • self - entity call is being processed on
  • activator - who lets event go (usually player or monster)
  • parameters - instructions for call event, fetched from "targetparm" field of self.

Call parameters rules:

  • Instructions are case insensative
  • ';' 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 (select) and expands (add) 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)

[CLASSNAME:]CALL

This calls all selected entities with their default action.

Can filter this event by classname, if it's presented, only selected entities matching classname will be processed.

Example: select targets;effect_light:call

[CLASSNAME:]OTHER ACTIONS

This calls all selected entities with custom action.

Classname

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox