Difference between revisions of "@CombatDelete"

From SphereWiki
Jump to: navigation, search
(Arguments)
(Arguments)
Line 26: Line 26:
 
| '''Argument''' || '''In/Out''' || '''Description'''
 
| '''Argument''' || '''In/Out''' || '''Description'''
 
|-
 
|-
| ARGN1 || I ||
+
| ARGN1 || I || Shows if the deletion was forced by your scripts (1) or called by Sphere (0)
 +
|-
 +
| ARGN2 || I ||
 
{| cellpadding="4"
 
{| cellpadding="4"
 
| '''Type description''' || '''Values'''
 
| '''Type description''' || '''Values'''

Revision as of 16:06, 27 January 2015

Description

This trigger fires when someone is being deleted from my attacker list.


Fires on:


References

The following object references are explicitly available for this trigger:

Name Description
I Myself.
SRC The character being removed from my list.


Arguments

The following arguments are set for this trigger. If an argument is marked as "In" then a value will be passed in to the trigger, if an argument is marked as "Out" then it can be set to a value to affect Sphere's behaviour:


Argument In/Out Description
ARGN1 I Shows if the deletion was forced by your scripts (1) or called by Sphere (0)
ARGN2 I
Type description Values
Forced (Blocked attack, default uncategorized actions...) 0
Max fight time has reached (Elapsed) 1
Distance/LOS 2
The character is no longer existing 3
Forced via attacker.delete methods (ingame/script) 4

Return Values

The following return values are explicitly defined for this trigger:

Return Value Description
1 Prevents src of leaving my list, however I'll try to delete him as soon as possible.