Trigger event

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
(Instructions)
Line 24: Line 24:
 
= Instructions =
 
= Instructions =
  
=== SELECT/ADD ===
+
{| width=100% cellspacing=0 cellpadding=4 style="border-collapse: collapse"
 
+
! width=2% | Order
Starts (select) and expands (add) selection of [[Entity | entities]], which will be called.
+
! width=25% | Syntax
 +
! width=73% | Description
 +
|-
 +
| 1
 +
| SELECT/ADD
 +
| 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 32: Line 37:
 
* SELECT BYID ''<id1> <id2> <id3> ... <idX>'' - select entities by their save id's
 
* 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
 
* SELECT BYTARGETNAME ''<targetname1> <targetname2> ... <targetnameX>'' - select entities by their save id's
 
+
|-
=== INFOPORTION <OPERATOR> ===
+
| 2
 
+
| INFOPORTION <OPERATOR>
Manipulate [[Infoportion | infoportions]] on activator.
+
| Manipulate [[Infoportion | infoportions]] on activator.
  
 
* INFOPORTION SET ''infoportion'' - adds/update infoportion
 
* INFOPORTION SET ''infoportion'' - adds/update infoportion
Line 41: Line 46:
 
* INFOPORTION INC ''infoportion'' ''[increase_by]'' - increase infoportion value by 1 or by custom value (of presented)
 
* 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)
 
* INFOPORTION DEC ''infoportion'' ''[decrease_by]'' - increase infoportion value by 1 or by custom value (of presented)
 
+
|-
=== CALL / <CUSTOM ACTION> ===
+
| 3
 
+
| CALL
This calls all selected entities with their default action (call) or custom action supported by it's class.
+
| This calls all selected entities with their default action.
  
 
Can prefix this instruction with <classname:>. In this case call event will only be processed on entities with matching class name.
 
Can prefix this instruction with <classname:>. In this case call event will only be processed on entities with matching class name.
Line 53: Line 58:
  
 
  select byid 145;call
 
  select byid 145;call
 
+
|-
=== BREAK or NOCALL ===
+
| 4
 
+
| <CUSTOM ACTION>
Immediately exit call event.
+
| This is actually much like call, but action is one of object's supported custom call parameters.
 +
|-
 +
| 4
 +
| BREAK or NOCALL
 +
| Immediately exit call event.
 +
|}

Revision as of 01:54, 3 July 2012

Event basics

Call event is most useful event. It allows interaction between many game aspects.

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 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 instructions not begin with "SELECT ", "SELECT TARGETS;" is automatically added
  • Empty instructions defaults to "SELECT TARGETS;CALL"


Instructions

Order Syntax Description
1 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
2 INFOPORTION <OPERATOR> 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)
3 CALL This calls all selected entities with their default action.

Can prefix this instruction with <classname:>. In this case call event will only be processed on entities with matching class name.

Examples:

select targets;effect_light:call
select byid 145;call
4 <CUSTOM ACTION> This is actually much like call, but action is one of object's supported custom call parameters.
4 BREAK or NOCALL Immediately exit call event.
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox