Skip to content

Scripts for beginners.

User Avatar
#405
Auto-translated

I tested it, and in the map settings within Mapscript, if I set it to DragonScript, it displays the print statement I entered for testing in the game console, confirming that it's accessing the script file. However, as soon as I change it and try to use a command to load the desired combat script to see if the game can access and execute it, it doesn't work.
The lines I'm changing in the map settings are:
Script:Maps\Multiplayer\Grand_Duel\MapScript
Script:Maps\Multiplayer\Grand_Duel\DragonCombat
Therefore, I conclude that DragonCombat.xdb correctly recognizes its *.lua file. But, for some reason that I don't understand yet, it refuses to access the specified script under normal conditions, even though the address seems correct. Otherwise, the corresponding commands would complain about an incorrect parameter.

I need help from an expert).

I also have a couple more questions:
1) I reviewed the instructions for pop-up messages and searched the forum. I couldn't find information on how to create a custom title instead of the "Message" text. I suspect there's an additional argument needed.

2) At the very beginning, when I was dividing the map, I made a mistake and placed wall objects outside the area. I can't select them in any way to delete them. They're just sitting there as a silent reproach). Is there a way to remove these extra objects without having to redo the entire map? I simply moved the current map layout within the visible area and marked everything with convenient squares from the arena object menu.

As soon as a solution is found for correctly accessing the combat script file, I will continue working on creating my own battle scene. Because the thematic element on the map really requires me to bring it to perfection and make the reference to the battle arena on the narrow bridge in the dungeon complete).

Attachments 1
1 file attached • Total size: 39.1 KB
Ещё только учусь =)