function CaptureTown()
RazeTown('your town name')
end
Trigger(OBJECT_CAPTURE_TRIGGER, 'your town name', 'CaptureTown')It's simple: you assign a script name to the town in the map editor, and then you write something like this function in the script editor.
Auto-translated