Skip to content

Current questions and answers regarding the map editor.

#4717
Auto-translated
Well, that's what I'm saying – it probably won't work. I think your idea is to make the enemy hero go and dig up the Tear.

Added 1 minute ago
Or, you could give the Tear to a hero, and they would stand there with it from the beginning, and then you could make them go to the Castle.

Added 19 hours 7 minutes ago
I need help with a rather complex script:
function halk()
QuestionBox("Maps\SingleMissions\Revenge of the\tsrhsad.txt", "Transform")
end
function Transform()
local gold, wood, ore, mercury, crystal, sulfur, gem = GetPlayerResource(1, GOLD, WOOD, ORE, MERCURY, CRYSTAL, SULFUR, GEM)
if gold >= 15000 then
if wood >= 5 then
if ore >= 5 then
if mercury >= 5 then
if crystal >= 5 then
if sulfur >= 25 then
if gem >= 5 then
SetPlayerResource(1, GOLD, gold - 15000, WOOD, wood - 5, ORE, ore - 5, MERCURY, mercury - 5, CRYSTAL, crystal - 5, SULFUR, sulfur - 25, GEM, gem - 5)

RazeTown("tone1")
else
MessageBox("Maps\SingleMissions\Revenge of the\xfh.txt")
end
end
end
end
end
end
end
Trigger(OBJECT_TOUCH_TRIGGER, "tone1", "halk")
This is the main part of the script. The question is, where do I set IsRemovable? Do I need to click on the town and then in the left part of the screen, or somewhere else? As I understand it, this is what controls whether the town is removed. So, the next question is: how do I place a ruined Human town in the same spot? I think there are people who know. Thanks in advance!

Statistics

Welcome our newest member: leyu