Skip to content

Current questions and answers regarding the map editor.

#4714
Auto-translated
Yes, the idea is that when entering a specific location, the AI should receive a Pelt or its building. Are there any other ways to give the AI this item?

Added 3 minutes ago
Godric's Hollow
Why this trigger specifically? Or was it intended that entering a certain region would grant a Pelt?

Added 1 minute ago
Please provide the complete function; there might be an error somewhere.

The script only doesn't work with the Pelt and only with the AI. With other artifacts, and if the hero is controlled by the player, everything works fine.
function AshaTest()
GiveArtefact("Pelt", 53);
GiveArtefact("Pelt", 47);
MessageBox(GetMapDataPath().."AshaText.txt");
end;

function AshaTest2()
GiveArtefact("Eruina", 53);
GiveArtefact("Eruina", 48);
end;

Trigger(REGION_ENTER_AND_STOP_TRIGGER, "GiveArtTestReg", "AshaTest");
Trigger(REGION_ENTER_AND_STOP_TRIGGER, "test1", "AshaTest2");

Statistics

Welcome our newest member: artem

Users Online 3 users 1431 guests