Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
myrtlehandel
Newbie


Joined: 19 Dec 2018
Posts: 1

PostPosted: Wed Dec 19, 2018 4:33 am   

reference a trigger's id from within the trigger
 
Is there a way to reference a trigger's ID from within the trigger?

As a cheesy example:

#SAY Trigger %TriggerID just fired.

(There is no predefined function called %TriggerID, but maybe there's something similar and THAT is what I'm searching for :-) )
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Wed Dec 19, 2018 11:33 pm   
 
Triggers with no set ID default to the pattern itself as the ID.
Outside of that, the script debugger sorta does that, it will tell you what all triggers are firing by the pattern in real-time.

Perhaps if you let us know what you need this info for, we could come up with a more elegant solution.
_________________
Discord: Shalimarwildcat
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net