Open the dungeon.lua file in the test_dungeon directory with ESB.
Explore it. Check the mechanics. Play the dungeon.
Step 2: Experiment
Do you start from scratch ? or from RTC ?
Try and modify things.
Mechanics in DSB are using a MESSAGE system.
For example: If you walk on a pad, the said pad will send a message to a target.
In ESB, edit the pad you will see the following exvars*: msg=M_ACTIVATE and target=128
Where 128 is the identity number of the target item (it can be any number).
In dungeon.lua, you will see:
Code: Select all
exvar[55]={ msg=M_ACTIVATE, target=128 }
*exvar stands for external variable

Step 3: Get ready
The main mechanics in ESB are the following:
- trigger: ground item that will send a message when it's stepped on by the party / by a monster / by an item
msg_sender: it's a relayer of messages. When it receives a M_ACTIVATE message, it will send a message to its own targets. It can be used as a repeat fire: add the exvar repeat_rate=number, then it will send the message every number ticks (roughly 1/5 of a second). If it receives a M_DEACTIVATE, it will stop doing so.
sequencer: it's like a msg_sender, except that it sends its messages to its targets ONE AT A TIME, every tick. It can be used to make a sequence of events. If you add the exvar send_reverse=true, everytime it sends a message to a target, the previous target will get the opposite message (NB: the opposite compared to what it received on the previous step, not compared to the current message being sent to the new target)
counter it's like a msg_sender, except it will send its message when it's count is zero. You guessed, it has an exvar count=number
qswapper when activated, the qswapper will exchange it's target type of item (for example, a fountain) for another defined type (for example exvar: arch=gorface)
Step 4: Customize
Open the object.lua of the test_dungeon and in base.
Open the startup.lua of the test_dungeon.
See how items are defined by an "archetype": obj.arch = { graphics, properties }
Explore the files to see what's what. Graphics are the easiest to modify.