Skip to content
User Avatar
#1
Auto-translated
I don't know if you've encountered this problem, but in general: I copied some scripts from other forums and single-player missions and pasted them into the editor, but nothing happened when testing (For example: creature animations, disabling AI (so that the enemy hero doesn't move)

Here are the scripts from the map:
---THE LORD OF THE RINGS: THE FELLOWSHIP OF THE RING (1 - The Way to Bree)---
EnableHeroAI("Necros", nil)

function new_day()
local day = GetDate(DAY)
if day == 1 then
DeployReserveHero("Necros", x, y, 0)
end
end

Trigger(NEW_DAY_TRIGGER, 'new_day')



Trigger(REGION_ENTER_AND_STOP_TRIGGER, "Idle", "hire1")
----------------------HOBBITS--------------------------
PlayObjectAnimation("Hobbit1_work","attack00",IDLE)
PlayObjectAnimation("Hobbit2_work","attack00",IDLE)
----------------------RESOURCES--------------------------
SetPlayerStartResources(1,0,0,0,0,0,0,0) ;

Statistics

Welcome our newest member: Фёдор Фёдорович