Skip to content

Scripts for beginners.

User Avatar
#413
Auto-translated
FataLisT

 

p3heroname = GetPlayerHeroes(3)[0];
print(p3heroname);
SetHeroCombatScript(p1heroname, "/Maps/Multiplayer/Grand_Duel/DragonCombat.xdb#xpointer(/Script)");
StartCombat(p1heroname, "Inagost", 1, 84, 10, nil, nil, nil, nil);

 

The first two lines are related to p3heroname, but the combat script is assigned and the combat is started for a hero named p1heroname. Does the hero p1heroname actually exist?

Update: I opened your map, checked the script, and p1heroname is not mentioned anywhere. So, the question from our (somehow silent in this case) script is: "Who is this p1heroname?!"

Всякое/карты:

Добавление недостающей музыки гномам