...
Depawns the current group.
Arguments: f(Immediately)->
Parameters:
...
If the group does not despawn immediately it will wait until it is idle, e.g. not fighting or fleeing, to despawn.
...
Arguments: f(Immediately)->
Parameters:
[in] | Immediately | 0 or 1, with 1 indicating an immediate despawn |
Code Block |
---|
()despawn(0); // despawn group. ()despawn(1); // immediately despawn the group. |
...
Arguments: f(Threshold),f(user_event_n)->
Parameters:
[in] | Threshold |
...
the HP threshold factor | ||
[in] | user_event_n | the user event to trigger |
Code Block |
---|
()addHpUpTrigger(0.5, 4); // emit user event 4 if a bot increases HP by 50% |
addHpDownTrigger_ff_
Registers a trigger on HP increases. Whenever the HP level of a bot crosses the threshold dowards it will trigger the specified user event. The treshold is a factor of the total HP. Several triggers can be registered on the same group, even with the same threshold and event.
Arguments: f(Threshold),f(user_event_n
...
)->
Parameters:
[in] | Threshold | the HP threshold factor |
[in] | user_event_n | the user event to trigger |
...
Code Block |
---|
()addHpUpTrigger(0.5, 45); // emit user event 45 if a bot increasesdecreases HP by 50% |
delHpUpTrigger_ff_
...