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
Illusion25
Newbie


Joined: 29 May 2018
Posts: 3

PostPosted: Thu Jun 21, 2018 8:11 pm   

Triggers after restarting CMUD client
 
I have a problem if I #KILLALL and apply the scripts the triggers are working as it should, after i close CMUD and open the mud. The trigger stop working.
Example:

#VAR ItemList {item1|item2|item3}

#CLASS TriggerOne
#TRIGGER {^You have (%d) of ({@ItemList})$} {#SHOW %ansi(red)Found %1 of %2 %ansi(reset)}
#CLASS 0
#T- TriggerOne

#ALIAS {CheckItems} {
#T+ TriggerOne
look in bag
#ALARM +3 {#T- TriggerOne}
}

Any idea why triggers with string list stop working when i open and close the CMUD client. Again if i #KILLALL , and reaply the code it works !!!
Reply with quote
Illusion25
Newbie


Joined: 29 May 2018
Posts: 3

PostPosted: Thu Jun 21, 2018 9:13 pm   
 
Okie i did figure something hope i am not missing something.
If i set event onExit to enable the TriggerOne, then after restart triggers are working.

I have a feeling if the trigger or class is disabled the cmud fail to initialize aka bind trigger with stringlist to variable.

example:

#onExit {
#T+ TriggerOne
}
Reply with quote
shalimar
GURU


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

PostPosted: Fri Jun 22, 2018 2:07 am   
 
The fact a stringList is being used would not affect this, I have dozens of such triggers always active.
Sounds more like a possible corruption issue.
Or there was no match on the trigger.
_________________
Windows 10 Home Premium 64-bit
AMD Phenom II x6 1055T 2.8GHz 16GB
CMUD Pro v3.34
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