What exactly do you mean by get the name? For what purpose? You can use the "trigger" action for pretty much anything involving triggers, and those allow you to select which trigger you want by clicking "value" in the options to choose the trigger.
But if there's some other thing you want to do that I can't think of that requires accessing the trigger.. you can create a Variable of the type Trigger and then assign the trigger you want to that variable.
In WC3 there was a function, name of current trigger. It's really useful for debugging purposes, put it in all my debug messages to know what trigger caused the problem. It's much faster than typing out the names, especially when changing trigger names around.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Is there any way to get the name of a trigger?
@Thalassicus:
What exactly do you mean by get the name? For what purpose? You can use the "trigger" action for pretty much anything involving triggers, and those allow you to select which trigger you want by clicking "value" in the options to choose the trigger.
But if there's some other thing you want to do that I can't think of that requires accessing the trigger.. you can create a Variable of the type Trigger and then assign the trigger you want to that variable.
Does that help?
In WC3 there was a function, name of current trigger. It's really useful for debugging purposes, put it in all my debug messages to know what trigger caused the problem. It's much faster than typing out the names, especially when changing trigger names around.