Posts from Scripts
Auto-translated
and essentially, you can add print(""); to the function to make sure it's actually being called by the script.
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
; you need to put it after each completed line)
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
KioM, I suspect that all these transfers of static objects in the fifth game were implemented rather carelessly. For example, I had a case where a campfire within one level could be moved normally, but if I tried to move it from the underground to the surface, strange bugs started to occur. Considering that the bridge affects the surface geometry, Nival might not have implemented the change in geometry when transferring it and creating it using CreateStatic(). Perhaps, even when the bridge is moved, there is still a possibility to walk through the place where it was originally?
Maybe there is a way to make the hero pass through the created bridge using a script? To force it, so to speak.
Multiplayer: Господство, Извечное противостояние, Война за Магию, Торговая империя, Анатомия войны, Эксперимент
SingleScenario: Последний Рубеж, Трон, Элиралис, Вернуться домой!, Лабиринты разума
Campaign: Колонизация
The heroes themselves seem to be automatically positioned according to their z-coordinate, so they might end up intersecting with the background. If it even works at all.
I have a question: what is the correct command to change the type of a building that recruits creatures on the map (the ones that increase recruitment)? I need to change all 4 Dwarf buildings, including the outpost, to the corresponding Necropolis buildings.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Added 1 minute later
There's no script error, and no effect. The script continues to run normally, but the buildings don't change.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Added 4 minutes later
Trigger(OBJECT_CAPTURE_TRIGGER, "PlayerTown", "CaptureStraker")
function CaptureStraker()
if ( GetObjectOwner ("PlayerTown") == PLAYER_4 ) then
Trigger(OBJECT_CAPTURE_TRIGGER, "PlayerTown", nil)
sleep(5)
TransformTown("PlayerTown", TOWN_NECROMANCY)
ChangeHeroStat("Straker", 7, -999999999999999)
sleep(5)
SetAIPlayerAttractor("PlayerTown", 4, 1)
ReplaceDwelling("Dwell1", TOWN_NECROMANCY)
SetObjectOwner("Dwell1", 4)
ReplaceDwelling("Dwell2", TOWN_NECROMANCY)
SetObjectOwner("Dwell2", 4)
ReplaceDwelling("Dwell3", TOWN_NECROMANCY)
SetObjectOwner("Dwell3", 4)
ReplaceDwelling("Dwell4", TOWN_NECROMANCY)
SetObjectOwner("Dwell4", 4)
end
end
Added 1 minute later
ChangeHeroStat("Straker", 7, -999999999999999) was intended to remove all movement points and prevent the hero from committing suicide during the castle transformation, but he still manages to enter it and die.
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4
Одиночные: Завеса срывается, Посол, Последний рывок, Эхо Пустоты
Кампания: Империя Единорога
Существа NCF
Орден Порядка: 1
Нейтралы: 1 2 3 4