Trigger event

From Blood Wiki
(Difference between revisions)
Jump to: navigation, search
Line 7: Line 7:
 
But structure of event is same all the time.
 
But structure of event is same all the time.
  
'''Call event takes input:'''
+
'''Call event input:'''
  
 
* self - entity call is being processed on
 
* self - entity call is being processed on
Line 17: Line 17:
 
* Instructions are case insensative
 
* 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
 
* Empty instructions defaults to "SELECT TARGETS;CALL"
 
* Empty instructions defaults to "SELECT TARGETS;CALL"
  
Line 28: Line 28:
 
* SELECT TARGETS - select entity to which i'm targeted
 
* SELECT TARGETS - select entity to which i'm targeted
 
* SELECT TARGETERS - select entities which are targeted to me
 
* SELECT TARGETERS - select entities which are targeted to me
* 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 ==
+
== INFOPORTION <OPERATOR> ==
  
 
Manipulate [[Infoportion | infoportions]] on activator.
 
Manipulate [[Infoportion | infoportions]] on activator.
Line 40: Line 40:
 
* 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)
  
== [CLASSNAME:]CALL ==
+
== [CLASSNAME:]CALL / [CLASSNAME:]<CUSTOMACTION> ==
  
This calls all selected entities with their default action.
+
This calls all selected entities with their default action (call) or custom action supported by it's class.
  
Can filter this event by classname, if it's presented, only selected entities matching classname will be processed.
+
Can filter this event by classname, in this case only selected entities matching classname will be processed.
  
Example: select targets;effect_light:call
+
Example: select targets;effect_light:call
  
== [CLASSNAME:]SOMEACTION ==
+
== BREAK or NOCALL ==
  
This calls all selected entities with custom action. Action should be selected from object's definition.
+
Immediately exit call event.
 
+
== BREAK ==
+
 
+
Immediately exits call event.
+

Revision as of 01:34, 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 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
  • 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 <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)

[CLASSNAME:]CALL / [CLASSNAME:]<CUSTOMACTION>

This calls all selected entities with their default action (call) or custom action supported by it's class.

Can filter this event by classname, in this case only selected entities matching classname will be processed.

Example: select targets;effect_light:call

BREAK or NOCALL

Immediately exit call event.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox