Skip to content

Current questions and answers regarding the map editor.

#4705
Auto-translated
Am I correct in understanding that the obelisk cannot be disabled? Here's the script:
function Sleza()
SetObjectEnabled("obel1", nil)
Trigger(OBJECT_TOUCH_TRIGGER, "obel1", "Sleza")
StartCombat("Godric", nil, 4, 85, 30, 85, 20, 85, 40, 85, 35)
Trigger(OBJECT_TOUCH_TRIGGER, "obel1", nil)
sleep(8)
PlayVisualEffect( "/Effects/_(Effect)/Spells/FireballHitEffect.xdb#xpointer(/Effect)", "obel1", "tag2")
sleep(5)
MessageBox("Maps/SingleMissions/Revenge of the/raki.txt")
end
Trigger(OBJECT_TOUCH_TRIGGER, "obel1", "Sleza")
The obelisk functions normally; when triggered, a section of the map activates, followed by a battle, and then the script continues. Unfortunately, it also cannot be removed from the map. The function is working; a similar function is used in Utopia, but it only triggers a scripted battle.

Added 1 minute ago
If anyone knows how to disable it, please let me know. I suspect it's different from other objects.