| 1 |
This file describes location event triggers: they will execute some code |
| 2 |
when the player is at a certain location. |
| 3 |
Each trigger has the following field: |
| 4 |
- Name : is a unique name for the trigger. For non silent triggers such |
| 5 |
as teleporters, this is this name that will be displayed on screen. |
| 6 |
- Silent : (1 by default) is a flag that tells the game not to display the |
| 7 |
trigger on screen when the player puts the mouse cursor over it |
| 8 |
- Trigger at label : indicates what map label the event trigger is located at |
| 9 |
- <Luacode> : contains the lua code to execute |
| 10 |
|
| 11 |
There are different kind of triggers: |
| 12 |
|
| 13 |
Map labels: gets triggered when tux walks over it, needs |
| 14 |
Trigger at label="foo" |
| 15 |
|
| 16 |
Optional: |
| 17 |
Teleported=1 makes the label work only if the player is teleported on it. |
| 18 |
Teleported=0 will only only trigger the label if player walks over it |
| 19 |
Silent=1 will hide the label that will show when you hover the map label ingame. |
| 20 |
|
| 21 |
|
| 22 |
Enemy death events: is triggered when a marked character dies, needs |
| 23 |
Trigger on enemy death |
| 24 |
Enemy level=24 |
| 25 |
Enemy dialog name="DeadGuy" |
| 26 |
|
| 27 |
Level triggers: are executed when tux enters/exits, changes to a level, needs |
| 28 |
Trigger changing level |
| 29 |
Exiting level=0 |
| 30 |
|
| 31 |
Note: you can combine Exiting and Entering level to only have a the event trigger |
| 32 |
when tux moves from defined level A to defined level B, e.g.: |
| 33 |
Exiting level=24 |
| 34 |
Entering level=70 |
| 35 |
|
| 36 |
Obstacle triggers: is executed when tux performs an actions with an obstacle |
| 37 |
(opens a chest, beats a barrel, etc), needs: |
| 38 |
Trigger on obstacle |
| 39 |
Obstacle label="tamara-book-1" |
| 40 |
|
| 41 |
.......................................... |
| 42 |
. For more parameters, check src/event.c . |
| 43 |
.......................................... |
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
*** START OF EVENT ACTION AND EVENT TRIGGER FILE *** |
| 48 |
|
| 49 |
** Start of Mission Event Section ** |
| 50 |
|
| 51 |
############## |
| 52 |
## Level 0 ## |
| 53 |
############## |
| 54 |
|
| 55 |
** End of Mission Event Section ** |
| 56 |
*** End of Mission File *** |
| 57 |
(leave the above termination text in the file or we might get a segfault/corrupt file termination) |
| 58 |
*** END OF EVENT ACTION AND EVENT TRIGGER FILE *** LEAVE THIS TERMINATOR IN HERE *** |