|
Illusion25 Newbie
Joined: 29 May 2018 Posts: 4
|
Posted: 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 !!! |
|
|
|
Illusion25 Newbie
Joined: 29 May 2018 Posts: 4
|
Posted: 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
} |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4662 Location: Pensacola, FL, USA
|
Posted: 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. |
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|