Skip to content
#4283
Auto-translated
&T&T&Twreqnd
I entered this into the demon:
AddHeroCreatures("Nikolai", 3, 20);
function Heroes()
Trigger(OBJECT_TOUCH_TRIGGER, "Devil", nil);
MessageBox("/Maps/SingleMissions/Opolchenie/Devil.txt");
PlayObjectAnimation("Devil", "happy", ONESHOT_STILL);
end;
Trigger(OBJECT_TOUCH_TRIGGER, "Devil", "Heroes");
SetObjectEnabled("Devil",nil);
but when I enter the map, nothing happens; they just join the squad.



function Heroes()
Trigger(OBJECT_TOUCH_TRIGGER, "Devil", nil);
AddHeroCreatures("Nikolai", 3, 20);
MessageBox("/Maps/SingleMissions/Opolchenie/Devil.txt");
PlayObjectAnimation("Devil", "happy", ONESHOT_STILL);
end;
Trigger(OBJECT_TOUCH_TRIGGER, "Devil", "Heroes");
SetObjectEnabled("Devil",nil);

There are two possibilities here: either you didn't name the creature correctly, or the script name of the Hero is not what it should be. Try this.

Statistics

Welcome our newest member: Emil