Here is the new update, introducing Lua scripting functionality. You can compary this feature to the scripting functionality of Garry's Mod, or SA:MP, or MTA (of course currently not as extensive as there, but we will continuously add new functions and events).
The scripting system offers the following features:
- Notification about different events, e.g. when a player places a block, or a player dies, or changes his position etc.
- You can cancel an event to prevent it's execution. For example, cancel the "place block" event, so the block won't be placed, or cancel the "player die" event, so the player won't die
- Ability to receive all input a player types in the chat beginning with "/" (commands)
- You can split your script into several files (to keep the code clear and good readable)
- You can load as many scripts as you want
- Ability to create custom GUI elements, individually for each player (currently labels and panels are supported)
- Scripts are available in single- and multiplayer
Here is a simple use case of this feature: Imagine you host a multiplayerserver and build a hotel. Now you want to make sure that nobody destroys the building, so you can write a script that protects everything within a specified area from destruction. Maybe you bind this to different groups, so players assigned to a group "admins" still can modify the hotel (just as an example).
Next, players should be able to rent a room in your hotel; they're not allowed to destroy the room (walls etc.), but they're allowed to place their own objects (like furniture) in the room. Sou you define more areas in your script, according to your hotels rooms, and specify that the player who rented a room can place objects, but cannot destroy blocks or constructions for example.
You also find those information in the recent changelog: Forum.concept-game.net
Finally some pictures. It's boring to simply show some code as in the previous announcement, so here some screens of creating different areas:
Here is a selector to define an area. With the command "/createarea Kitchen" we create this area and call it "Kitchen"
Now the area is created, so the selector disappears. When entering this area, you see the areaname in the left bottom (of course you can change size or color of a label):
Here is just an example of displaying all different areas (also done with a command):
An example script is now available: Forum.concept-game.net
Have fun! ;)