Skip to content
User Avatar
#2846
Auto-translated
I encountered such a problem... There is an enemy hero (mobile). His death leads to victory in the scenario... but if this hero dies during the AI's turn (he runs into the player), then after the video and other things are played, instead of victory, the game displays a console error "No player!", and the turn change freezes. If the player attacks the hero himself, then everything works correctly. Does anyone know how to fix this? Please help! Here is the function itself: Trigger(PLAYER_REMOVE_HERO_TRIGGER, 2, "TheEnd") function TheEnd(hero) if hero == "RedHeavenHero05" then StartDialogScene(path.."DialogScenes/DialogFinal/DialogScene.xdb#xpointer(/DialogScene)") sleep(5) SetObjectiveState("Final", OBJECTIVE_COMPLETED) SetObjectiveState("NecroTown", OBJECTIVE_COMPLETED) SetObjectiveState("ArantirLive", OBJECTIVE_COMPLETED) sleep(10) Win() end end
Карты для героев 5

"Плата за любовь"
"Путь некроманта"
"Темные грани"
"Рок Гримхейма"

Statistics

Welcome our newest member: artem

Users Online 2 users 1553 guests