Help! How do I disable a trigger in xs map?

This is a trigger bound to Aztec big button tech, the trigger sends some units.
After 8 mins the tech is disabled (the player cannot click it in game)


I don’t want the tech to be totally disabled, but instead I only want to disable the trigger after certain time.
And this is what I tried to do, but it seems that the part I marked leads to error.

I have followed these guides and found the triggerData.xml that shows a list of avaiable trigger effects.

https://web.archive.org/web/20100421112530/http://hyenastudios.mugamo.com/aoe3rmstutorial.htm#I


But how do I use the “Disable Trigger” effect correctly?

I don’t know where you got rmGetEventID but it isn’t listed in the guide link and I think it doesn’t exist. Try rmTriggerID instead, as you’re using everywhere else in the code.


Tried the rmTriggerID, it does’t show error anymore, but nothing happens in game apparently…

That last line of code is just overwriting the param to -1, delete it…