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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD Beta Forum
gmueller
Apprentice


Joined: 06 Apr 2004
Posts: 173

PostPosted: Wed Aug 29, 2007 10:20 pm   

[2.01] #T-
 
#T- setting_name trigger

doesn't work for me... when setting_name is an #alarm.


I'll try to post an example later...
Reply with quote
gmueller
Apprentice


Joined: 06 Apr 2004
Posts: 173

PostPosted: Thu Aug 30, 2007 12:51 am   
 
Code:
#ALIAS issued_set($param) {
  $temp1 = %concat($param, "_issued")
  $temp2 = %concat($param, "_issued_reset_alarm")
  #ADD %eval($temp1) 1
  #ALARM $temp2 {+@issued_reset_delay} {#SAY VARIABLE $temp1 RESET;issued_reset $param}
}



////////////////////////////////////////////////////////////////////////////////////////////////////////
// usage:
// issued_set <skillname>
// means we have used a skill and is used to temporarily disable commands
//
// issued_reset <skillname>
// used when the text indicating the command was successful is recieved from the mud -or- when the alarm timed out.
//
// Neither of these work
// I tried just putting () instead of %exec() also, and the parser doesn't recognize it.
////////////////////////////////////////////////////////////////////////////////////////////////////////


Code:
#ALIAS issued_reset($param) {
  $temp1 = %concat($param, "_issued")
  $temp2 = %concat($param, "_issued_reset_alarm")
  #VAR %eval($temp1) 0 0
  #T- %eval($temp2) trigger
}


Code:
#ALIAS issued_reset($param) {
  $temp1 = %concat($param, "_issued")
  $temp2 = %concat($param, "_issued_reset_alarm")
  #VAR %eval($temp1) 0 0
  #EXEC %concat("#T- ", $temp2, " trigger")
}


You should be able to type:

issued_set eat_goldenseal;issued_reset eat_goldenseal
and never see the #SAY from the issued_set.
but this isn't the case.
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: Thu Aug 30, 2007 5:29 pm   
 
You didn't specify what value the @issued_reset_delay variable has. I set it to 2 and then ran your test.

It worked fine in a blank session window. I used the first version of your issued_reset alias. And I never got the #say text. When I looked in the settings editor, the alarm was properly shown as disabled.
Reply with quote
gmueller
Apprentice


Joined: 06 Apr 2004
Posts: 173

PostPosted: Thu Aug 30, 2007 5:57 pm   
 
yes that's the right value for that variable, sorry for neglecting it.

It works half of the time, but if you type it twice, it's not guaranteed to work both times. In fact I had it regularly working once, and then failing the second time, working again and then failing.

It was rather odd.
This alias is in all of my skill aliases to make them spam safe during a combat. And I wind up seeing the #SAY message extremely often. when it shouldn't be that way.

I wound up changing it to #UNTRIGGER as a result.
It went completely away after I did that
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD Beta Forum 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