Skip to content

Scripts for beginners.

User Avatar
#128
Auto-translated
By the way, this is in the Editor folder.
I only see *.xdb files in the Editor folder, and they are text files. In Total Commander, if pressing F3 opens something meaningful (text or an image), it means that the file can be edited. Most files in data.pak are like that.
How long did it take you to create the "Path of the Hero" map?
Almost two years, considering that I already had some experience with scripts. I learned it bit by bit over time, starting back when the map editor was first released.
I see that a lot of libraries are used, without which the scripts simply won't work?
I wrote all of this myself; it's just divided into many files. After all, a library is essentially a set of code snippets that are repeated more than once in the program's text and are therefore placed in separate functions for efficiency. (The exception is the lualib.lua library by RedHeavenHero; I used its random number generation in combat mode).
Why doesn't the RemoveObject(nameObject) script work for me?
In the editor, each object has a property called IsRemovable; it needs to be set to true to allow the object to be deleted. And I'm not sure if it's possible to delete buildings.