Will that work?
Added 44 minutes ago
Hmm... And what should be the path to the standard icon in the corner?
And how do I determine the hero who activated all this and will receive the reward in the final function?
Added 2 minutes ago
I have it like this now:
function SkullEndFinal(player, answer)
if answer == 1 then
Trigger(OBJECT_TOUCH_TRIGGER, "HutSkullQuest", "SkullPusty")
MessageBox (path.."endend.txt")
sleep(2)
RemoveArtefact(???, 83)
ChangeResource(6, 60000, ???)
ChangeResource(2, 50, ???)
sleep(2)
SetObjectiveState("SkullQuest", OBJECTIVE_COMPLETED)
elseif answer == 2 then
Trigger(OBJECT_TOUCH_TRIGGER, "HutSkullQuest", "SkullPusty")
MessageBox (path.."endend.txt")
sleep(2)
RemoveArtefact(???, 83)
ChangeHeroState(???, 4, 5)
sleep(2)
SetObjectiveState("SkullQuest", OBJECTIVE_COMPLETED)
elseif answer == 3 then
Trigger(OBJECT_TOUCH_TRIGGER, "HutSkullQuest", "SkullPusty")
MessageBox (path.."endend.txt")
sleep(2)
RemoveArtefact(???, 83)
AddHeroCreatures(???, CREATURE_DEMILICH, 45)
sleep(2)
SetObjectiveState("SkullQuest", OBJECTIVE_COMPLETED)
end
Added 1 hour 18 minutes ago
GetAttackerCreatures returns the creatures of the attacking side... but how exactly do I use this to refer to a specific stack?