Skip to content

Posts from Castle

No ratings yet — be the first to rate!
User Avatar
5 years ago
Auto-translated
Hello everyone. Can you suggest a script that would transform a castle into the castle of the player who captured it? For example, if an AI Necropolis player captures an Orcish castle, it would become a Necropolis castle.
User Avatar
5 years ago
function TownTransforming(hero,obj)
local race = GetPlayerRace(GetObjectOwner(hero))
sleep(10)
TransformTown(obj, race)
end

Trigger(OBJECT_TOUCH_TRIGGER, 'Имя города', 'TownTransforming')
In reply to }{0TT@6bI4
User Avatar
5 years ago
Auto-translated
O
}{0TT@6bI4
function TownTransforming(hero,obj)
local race = GetPlayerRace(GetObjectOwner(hero))
sleep(10)
TransformTown(obj, race)
end

Trigger(OBJECT_TOUCH_TRIGGER, 'Имя города', 'TownTransforming')
You've come through for me again. Thanks a lot

Statistics

Welcome our newest member: recijeb