Skip to content

Between the hammer and the anvil.

User Avatar
#60
Auto-translated
The map is unplayable on the "Hero" difficulty level due to a script error. The error occurs in this line: AddHeroCreatures(Hero2, 159, (4-diff)*100); On the "Hero" difficulty, diff=4, and attempting to add 0 creatures results in: (Script) ERROR: Quantity cannot be negative Consequently, the script crashes, no triggers are activated, quests are not updated, demon cities are not destroyed upon capture, and it is impossible to pass through the dwarf garrison. I completed the first part of the map. It is quite interesting. I did not reach the second part due to this error. UPD. Since the map author has not been active here for over a year, I am taking the liberty of posting a corrected version. Two minor changes have been made to the script: an if diff < 4 condition has been added to prevent the script from crashing on the "Hero" difficulty, and a break statement has been added to the obj2_end function to terminate the thread, so that the cutscene does not repeat after capturing the second demon castle. Unfortunately, old saves on the "Hero" difficulty will not work; you will have to start over. Even using the console will not help, as the saves store the complete state of the Lua virtual machine, and there is no way to fix a crashed script.
Attachments 1
1 file attached • Total size: 317.4 KB