Skip to content
User Avatar
#3766
Auto-translated
Shiroyasha2910

I tried it, but it didn't work. I even removed the slash, as "Dolgy" recommended, but it still doesn't work. The funny thing is that even this command doesn't work, even though, as I mentioned earlier, even a friend said that I did everything correctly:

SetObjectEnabled("dolmen1", false);

The only command that worked for me is:

SetPlayerStartResources(1, 0, 0, 0, 0, 0, 0, 5000);

This is the first script I wrote, and after that, it seems like none of the other scripts I add work.

Okay, let's try again. Open your text file, copy what's in it. Then, open the map files and delete it. Restart the map. Then, place a Signpost object, in the MessageFile on the left, click New, enter the same name as your file, and click Ok. This will open an empty window for that file. Paste your text into it, click Ok, close the map, and test in the game to see if the text appears.

 

If it doesn't work, send me your map ("mapname.h5m" file in the Maps folder).



Added 6 minutes later
Shiroyasha2910
I decided to try something, I went into the editor -> my map -> Map Properties -> Script -> I click the Script button and the editor crashes immediately. But as I understand it, this is a common occurrence for the regular editor.
Don't use that button; pretend it doesn't exist. Write/edit scripts either in a text file in the root of the map files (like I and many others do), or use HoMM5MapScriptsEditor. In general, I recommend writing scripts in it and then transferring them to the text file. However, I don't recommend making notes in Russian in it, because when transferring to the Lua file, the Russian text may be corrupted and become "broken Arabic" The same thing can happen if you copy Russian text from a Lua file of the map and transfer it to ScriptsEditor).

Statistics

Welcome our newest member: artem

Users Online 1 users 1448 guests