Skip to content
User Avatar
#1477
Auto-translated
Heroist
Hmm, thank you.

Added 37 minutes ago
here are a couple more questions:

1) What is the error? The script doesn't work at all, it doesn't even try


---transformation (trans)---

trans = 0

function trans()
while 1 do
sleep(1)
if GetObjectOwner ('elftown') == 1 and trans == 0 then
sleep(1)
ShowFlyingSign(GetMapDataPath().."trans1.txt", "Berein", -1, 7);
sleep(5)
TransformTown ('elftown' , 4)
ReplaceDwelling ('elfdwel1' , 4)
ReplaceDwelling ('elfdwel2' , 4)
ReplaceDwelling ('elfdwel3' , 4)
ReplaceDwelling ('elfdwel4' , 4)
trans = 1
end
end
end
startThread (trans)


(Everything is named correctly, as in the editor)

2) Can I immediately destroy the tavern in the town right after the transformation? (I remember asking a similar question, but I didn't quite manage it, or I was just lazy)
It is better to use breaks.
Карты для Героев Меча и Магии 5
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога

Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4

Statistics

Welcome our newest member: leyu