Auto-translated
Oh, I saw everything, but I didn't even notice that it said "Progress" there, thanks.
Added 10 hours and 52 minutes ago
I'm trying to implement a check to see if a hero has a creature. The logs say that GetHeroCreature is an undefined script, so it's being replaced with nil. I haven't seen this script in any of the maps, so it seems like the official guide has an incorrect script for checking for creatures. This raises a legitimate question: what script should I use for the check?
Added 10 hours and 52 minutes ago
I'm trying to implement a check to see if a hero has a creature. The logs say that GetHeroCreature is an undefined script, so it's being replaced with nil. I haven't seen this script in any of the maps, so it seems like the official guide has an incorrect script for checking for creatures. This raises a legitimate question: what script should I use for the check?
zog = GetHeroCreature("Ohtarig", 129)
function func_log ()
if (zog == 1)
then MessageBox("/Maps/SingleMissions/Vayshan0_1/mess_log1.txt");
SetObjectiveState("obj_log", OBJECTIVE_ACTIVE);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg_log", "func_log");
else MessageBox("/Maps/SingleMissions/Vayshan0_1/mess_log.txt");
sleep(1);
StartCombat("Ohtarig", nil, 1, 129, 1, nil,"func_remove_log",nil, not nil);
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg_log", nil);
end;
end;
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "reg_log", "func_log");