• Guides
  • Navigation
  • Table Editor

Table Editor

The Table Editor is a data management tool provided by CliCli Editor, where you can save data in a table and perform rapid debugging. Through the table, you can jump out of the limitations of the editor to create data in a flexible form.

For example, any unit can have currency, strength, and even tool belts and task lists. The specific meanings and rules of these properties can be constructed completely in a digital form.


One-dimensional Table and Multi-dimensional Table

The table editor involves One-dimensional Tables and Multi-dimensional Tables.


One-dimensional Table

Assume that a project named Six Rooms. There are six rooms in the project, two of which are to generate experience and another two of which are to generate gold coins. In the project, monsters are refreshed from 12:00 to 14:00 in the game.

The values set for the project theme are important as they relate to the economic output of the project. If you want to adjust these values quickly, you can save them in a One-dimensional Table as shown in the figure below.


The first row in the table indicates the title of the content in each column.

The first column indicates the names of Key data, which can be used to retrieve the values in the third column in a trigger.

The second column indicates the Type of data. If the data type is incorrect, you cannot obtain the correct value as expected.

The third column indicates the Value of the corresponding data.

The fourth column indicates Descriptions, which can be used to show the purpose of the data in each row. It is useful in team development.

Multi-dimensional Table

Assume you are working on a project named Tower Defense. You may need to define "wave", which can be described in words as follow:

In Wave 1, a total of 30 monsters in the type of devil attack the player and the player needs to destroy them within 60 seconds.

You can see that the object "wave" has four key attributes: Key, Number Of Monsters, Monster Type, and Extinction Time. So we can describe the object "wave" in a Multi-dimensional Table as shown in the following figure.


The first row in the table indicates the attribute names of the data object, i.e. Key, Number Of Monsters, Monster Type, and ExtinctionTime in the table above.

The second row in the table indicates the data type of this attribute. If you select the wrong data type, you may not be able to obtain the data you want through a Trigger.

You can define the attributes of your data in the third or subsequent rows of the table. Then use a Trigger to call the data you have defined in the Table Editor.

Trigger Instruction

The Table Editor displays tables and data in it. If you want to apply tables and data in the project, you have to use Trigger. The following are Trigger commands used to modify a table.


Application of Trigger in One-dimensional Table

The following is an attempt to use Trigger commands to adjust the number of rooms and the duration to kill monsters in the Six Rooms project.


Application of Trigger in Multi-dimensional Table

The following is an attempt to implement the Tower Defense project, making the number of monsters to be linked with the number of players, and more players be required to destroy more monsters whereas the time remains unchanged.