Skip to content

Scripts for beginners.

User Avatar
#386
Auto-translated
AngryTapok1337, I fixed the code there, try it. What is the console complaining about? Maybe the error appears in a different line. Or are you not getting an error, but the function simply isn't working?

Added 25 minutes ago
I tested it, and it works. However, there is one error: the destination point for delivery to the city should not be the point where the city is located, but the entrance point to the city, i.e., where the heroes stand when they visit the city. Although, even without this fix, the caravan spawned and was filled with creatures. It just didn't move and stood at the spawn point, daily producing the standard error of caravans being unable to move as if it were blocked by something or the city garrison doesn't have any slots. Thus, my initial script version (without the addition with the check for a completed quest) works.

Всякое/карты:

Добавление недостающей музыки гномам