Auto-translated
However, it is technically more refined, as it does not contain endless loops that overload the computer.
New here? I'm Roha — want a quick tour?
Encountered a strange issue. A script adds creatures based on the difficulty level. But for some reason, it was outputting incorrect numbers, not the ones I intended. I wrote "print(diff)", and for some reason, it always outputted "2" regardless of the difficulty. I checked in other maps – the same thing happened. Either something is broken in the game, or in the map... I decided to replace "DIFFICULTY_EASY" etc. with numbers (4 - "Recruit", 1 - "Hero"). It seems to be working now. But I'm surprised by this, as everything was normal before.
However, it is technically more refined because it doesn't contain infinite loops that overload the computer.
But in this part of the script, the loop starts upon contact and ends as soon as the monster or hero ceases to exist (usually, the loop only triggers once). The only thing that could ruin the effect is Break() in the combat script.
Please compress the screenshot.
From the manual, which is located in the game folder:
Is it impossible to translate the names of the tools (my editor is in Russian)?
how do I make something like this???