This means the player doesn't have the required script name that you wrote in the script.
Yes, the script name and regions are correct; I checked the manual, and everything seems to be right, but the scripts still don't work on these idiots.
New here? I'm Roha — want a quick tour?
This means the player doesn't have the required script name that you wrote in the script.
Then I don't know, download the HOMM5 Scripts Editor program; it shows in which line the errors are and what they are.
I need the script to reset after the hero completes the task.
The script is as follows: SetRegionBlocked("Region", true, 1);
function new_day()
local day = GetDate(day)
if day == 1 then
DeployReserveHero("Necromancer", 29, 60, 1)
end
end
Trigger(NEW_DAY_TRIGGER, 'new_day')
DeployReserveHero("Necromancer", 29, 60, 1)
Everything you want to execute at the start of a map can simply be written in the code without any functions:DeployReserveHero("Necromancer", 29, 60, 1)
hero Effig is not in reserve player 6
Thank you.
Added 1 minute ago
And another question, how do I prevent creatures from increasing in number over the weeks? Or is this not done with scripts?
For the "retrieve from reserve" function to work, you need to first place the corresponding hero in the reserve. This is done in the editor in the properties menu, I think on the players tab.
I clicked on ReserveHeroes and a menu appeared with an AdvMapHero tab.
If you need a standard hero, there's a more convenient dialog in "Map Properties" (not in "Map Properties Tree," where you're looking). If the hero is completely custom, then I don't know how to do it.