Skip to content

Triggers

Mence edited this page Jul 12, 2022 · 16 revisions
- WARNING: WIKI UNDER HEAVY CONSTRUCTION - UPDATES DONE WEEKLY

Triggers Manual

MANUAL

This is the manual for map maker containing ALL available triggers to be used on the game and scripts for run-time testing.

CONTACT

boltcraftgame@gmail.com

VERSION 1.00

Keywords

stats

health health-max health-regeneration health-regeneration-per-level missing-health energy energy-max energy-regeneration energy-regeneration-per-level missing-energy shield shield-max shield-regeneration physical-armor magical-armor tenacity movement-speed-bonus attribute

value-condition

equal greater greater-or-equal lower lower-or-equal

== > >= < <=

player-id

1 - Player 2 - Enemy

game-event

0 = Menu 1 = Stage 2 = Loading 4 = Cinematic

alliance

ally enemy neutral

add

If [add] == true then the status value will be sum to the stat current value. Otherwise the value will be SET, overwriting the current value.

attribute

if [attribute] == true then all the incoming [stats] will become attributes name instead of stats.

menu-name

main menu pause game-over credits loading intro

shapes

shape-rectangle shape-circle

Events


"event": "initialization"

Description: Triggers at the stage start.


"event": "unit-kill", "unitName": "[target]"

Description: Triggers when the [target] dies.


"event": "unit-cast-ability"

Description: Triggers when any unit casts an ability and load the unit data in the memory for further use.


"event": "unit-use-item"

Description: Triggers when any unit uses an active ITEM and load the unit data in the memory for further use.


"event": "region-between-units", "floatValue": [range], "unitName": "[target]"

Description: Triggers when someone approaches from the [target], the distance between the units must be lower or equal to [range].


"event": "distance-between-units", "floatValue": [range], "unitName": "[target]"

Description: Triggers when someone gets far away from the [target], the distance between the units must be greater or equal to [range].


"event": "dialog-box-close"

Description: Triggers when an option of dialog box is chosen, it doesn't work with dialog box without any option.

Conditions


"condition": "game-event-check", "integerValue": [game-event]

Keywords: game-event

Description: Check the current game event.

Clone this wiki locally