Auto-translated
HeroOfDestiny, what is the console complaining about?
New here? I'm Roha — want a quick tour?
Function MakeHeroes not defined, line 13
That's what happened, I don't know what it is.
SetPlayerStartResources(1, 0, 0, 0, 0, 0, 0, 0);
function Bitwa()
StartCombat("Ottar", nil, 2, 29, 1000, 29, 1005, nil, nil, nil);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "bitva", nil);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "bitva", "Bitwa");
function MakeHeroes()
DeployReserveHero("Itil", 127, 74, 0);
ChangeHeroStat("Itil", 0, 90000);
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "geroy", "MakeHeroes")
As I understand it, you're talking about this.
These are all the scripts that are available.
That’s strange; it works for me. Please send a screenshot of the error from the console.
spawn_angels = 0
function DefenderCreatureDeath()
local boss_creatures = GetDefenderCreatures();
if (length(boss_creatures) == 0) and stage == 1 then
if spawn_angels == 0 then
spawn_angels = 1
SummonCreature(DEFENDER, CREATURE_ANGEL, 250, 12, 2);
end
end
end
Aha, I definitely didn't do that.
But how? Can you give me a hint?
In Map Properties, go to the Players Properties section, select the player you need, and add a hero to the Reserve Heroes List using the Add button. Your scripted hero is Ilfina.
Thank you! Everything works for me now! You are the best!
Is it okay if I come here often? I'm a newbie when it comes to scripting in the editor, and I'll need help.
BlueHeavenHero, try this:spawn_angels = 0 function DefenderCreatureDeath() local boss_creatures = GetDefenderCreatures(); if (length(boss_creatures) == 0) and stage == 1 then if spawn_angels == 0 then spawn_angels = 1 SummonCreature(DEFENDER, CREATURE_ANGEL, 250, 12, 2); end end end
Added 1 minute ago
HeroOfDestiny, did you add Ilfin to the reserve for the desired player?
By the way... How do you attach a combat script to a town?
And another question - how do you make it so that at the beginning, the knight-defender of the castle casts a prayer?
How do you make it so that after the video plays, some function is executed?