Skip to content
User Avatar
#2071
Auto-translated
Jack_of_shadows
Knight of the Abyss, if you have it, please refer to the script guide. The last parameter of triggers is the name of the function that should be called when the trigger is activated. To disable it, you need to insert "nil" instead of the name:
setting:
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"reg_1","Question");
deleting:
Trigger(REGION_ENTER_AND_STOP_TRIGGER,"reg_1",nil);

A similar error in your first example with the message box.

Thank you for pointing out the errors, I will take them into account. Apparently, either I wasn't reading carefully enough, or the trigger manual didn't catch my eye... I didn't know.

But in the second case, the trigger still doesn't want to be disabled; it constantly demands money when passed. I've tried everything, inserting Trigger(REGION_ENTER_AND_STOP_TRIGGER,"reg_1",nil); after QuestionBox, at the end of the "yes" function, and even tried creating a separate OBJECT_CAPTURE_TRIGGER so that when "gar1" is transferred to the first player, Trigger(REGION_ENTER_AND_STOP_TRIGGER,"reg_1",nil); would be executed along with this OBJECT_CAPTURE_TRIGGER, but nothing helps...

Added 6 minutes later
Of course, there is an option to press "cancel" and calmly continue without paying, but this trigger that cannot be disabled is still very annoying...

Statistics

Welcome our newest member: wayal