Search found 57 matches

by zhenzh
Mon Apr 20, 2020 1:50 pm
Forum: General Forum
Topic: killTrigger do not effect immediately
Replies: 2
Views: 5802

Re: killTrigger do not effect immediately

Well, then disabling the target trigger before it being real deleted is recommanded to get the delete operation accurate.
by zhenzh
Mon Apr 20, 2020 1:31 pm
Forum: General Forum
Topic: killTrigger do not effect immediately
Replies: 2
Views: 5802

killTrigger do not effect immediately

I find the killTrigger function won't delete the specified temp trigger immediately. The kill command is passed to the mudlet but keeps the target trigger active. The exact deletion will not occur until receiving a new line from server, which means there's a chance that the trigger to be deleted fir...
by zhenzh
Mon Apr 20, 2020 1:14 pm
Forum: Help Forum
Topic: resetProfile being loaded multiple times
Replies: 5
Views: 1639

Re: resetProfile being loaded multiple times

you are right, I create tempAlias for all permAlias at the begining of my script as a work around
by zhenzh
Mon Apr 20, 2020 11:22 am
Forum: Help Forum
Topic: resetProfile being loaded multiple times
Replies: 5
Views: 1639

Re: resetProfile being loaded multiple times

I can run the reset by issuing alias, but the new problem is that different from scripts, all aliases wil not be reloaded. So that I have to save one by one to get them reactive
by zhenzh
Mon Apr 20, 2020 8:18 am
Forum: Scripts & Packages
Topic: Wait and Wait Line
Replies: 11
Views: 9147

Re: Wait and Wait Line

Here's the v2 update for improving error reporting and timeout introduced
by zhenzh
Mon Apr 20, 2020 6:57 am
Forum: Help Forum
Topic: resetProfile being loaded multiple times
Replies: 5
Views: 1639

resetProfile being loaded multiple times

I have an issue that each time I run the script containing resetProfile() function, it is executed multiple time for unknown reason.
To isolate the issue, I have tried unstalling all additional script packages but the issue remains.
by zhenzh
Sun Apr 19, 2020 2:19 pm
Forum: Scripts & Packages
Topic: Wait and Wait Line
Replies: 11
Views: 9147

Wait and Wait Line

The script is to implement the result that suspend current function and waiting specified time or pattern coming. It helps combining simple actions to a set of action chain which get your functions modular. As the functions uses coroutine yield/resume, you have to wrap all your implemention in a cor...
by zhenzh
Sun Apr 19, 2020 1:08 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: Can I create a custom event?
Replies: 14
Views: 6352

Re: Can I create a custom event?

Well, I'll share it in script forum with usage :)
by zhenzh
Sun Apr 19, 2020 11:54 am
Forum: Howtos, FAQs and Tips & Tricks
Topic: Can I create a custom event?
Replies: 14
Views: 6352

Re: Can I create a custom event?

Finially I get ride of using event and use a loop instead.
Attached my package.
by zhenzh
Sat Apr 18, 2020 3:21 pm
Forum: Howtos, FAQs and Tips & Tricks
Topic: Can I create a custom event?
Replies: 14
Views: 6352

Re: Can I create a custom event?

I see. But the manually raising event inside function introduces a new issue to be resolved. Invoking raiseEvent() in my case is equal to invoking send() directly (raiseEvent->wait_event->send) Then, the function should look like: function wait_line(pattern, action) thread = coroutin.running() tempT...