Skip to content

Scripts for beginners.

User Avatar
#410
Auto-translated

Jack_of_shadows
FataLisT, have you tried placing the combat script in the root directory of the map? It works for me that way, but I don't remember why it was done like that.
Jack_of_shadows, if I understand correctly, are you talking about this arrangement? (Attached a screenshot) Currently, both the *.xdb and *.lua files are located in the root folder, as they were originally created. I only moved a bunch of text files into a folder today for testing purposes. And I also rewrote some functions, reducing the number of lines.

Essentially, it doesn't work in this form. I tried enclosing the path in both " and ' quotes. It still won't access the combat script. Again, when I replaced MapScript with DragonCombat, the *.lua script ran from the script when launching the map. The connection within it is properly defined, so that seems to be the issue).

I've attached the current version of the map just in case. Maybe I missed something in the additional settings. At first glance, everything is set up the same way as in other messages I found here.

Attachments 2
2 files attached • Total size: 595.5 KB
Ещё только учусь =)