Skip to content
User Avatar
#817
Auto-translated
And by the way, this script doesn't work for me!:smile29:
if GetDifficulty () = 0 then
AddHeroCreatures ('Isabell', 2, 100);
AddHeroCreatures ('Isabell', 4, 50);
AddHeroCreatures ('Isabell', 6, 30);
print ('Generated army for hero Изабель: 100 Militia, 50 Archers, 30 Plate Mail, 10 Royal Griffins');
end;
if GetDifficulty () = 1 then
AddHeroCreatures ('Isabell', 2, 150);
AddHeroCreatures ('Isabell', 4, 100);
AddHeroCreatures ('Isabell', 6, 50);
AddHeroCreatures ('Isabell', 8, 10);
print ('Generated army for hero Изабель: 150 Militia, 100 Archers, 50 Plate Mail, 20 Royal Griffins');
end;
if GetDifficulty () = 2 then
AddHeroCreatures ('Isabell', 2, 200);
AddHeroCreatures ('Isabell', 4, 120);
AddHeroCreatures ('Isabell', 6, 70);
AddHeroCreatures ('Isabell', 8, 20);
print ('Generated army for hero Изабель: 200 Militia, 120 Archers, 70 Plate Mail, 30 Royal Griffins');
end;
if GetDifficulty () = 3 then
AddHeroCreatures ('Isabell', 2, 250);
AddHeroCreatures ('Isabell', 4, 150);
AddHeroCreatures ('Isabell', 6, 100);
AddHeroCreatures ('Isabell', 8, 40);
print ('Generated army for hero Изабель: 250 Militia, 150 Archers, 100 Plate Mail, 50 Royal Griffins');
end;
The console is complaining:
(Script) ERROR: 'then' expected;
last token read: `0' at line 10 has string 'DoString script'
Script failed, unknown error

I'm completely fed up! :smile33: What should I do :smile45:
502 Bad Gateway
__________________________________
nginx/0.8.54