|
Gwaethiel Beginner
Joined: 23 Feb 2011 Posts: 13
|
Posted: Tue Jul 31, 2012 11:11 pm
Trigger with #alarm and #abort |
Hello!
I have a little problem.
I wrote trigger, which look:
#trigger {Znajdujesz %w} {#alarm %random(100, 700);#abort} {tescik}
But when i got text:
Znajdujesz ostry postrzepiony lisc. 719 / 31954 / 38082
Script don't work. Can you help me? What i have to do, to make this script working? |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Tue Jul 31, 2012 11:43 pm |
You need to give your alarm a code block to execute.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Gwaethiel Beginner
Joined: 23 Feb 2011 Posts: 13
|
Posted: Wed Aug 01, 2012 10:11 am |
I still don't know what to do. I'm not advanced user of zMUD.
Can u write me how that script must look? I was searching some info of code blocks in zMUD help, but i don't found it. |
|
|
|
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Wed Aug 01, 2012 1:11 pm |
Take a look at the alarm and trigger help files. Each one has the full syntax. You are missing part of the syntax for one of them.
|
|
_________________ EDIT: I didn't like my old signature |
|
|
|
Gwaethiel Beginner
Joined: 23 Feb 2011 Posts: 13
|
Posted: Wed Aug 01, 2012 3:52 pm |
So, i read it many times, have many trials and it still don't work.
I even tried make trigger without alarm, and it don't work also.
#TR {Znajdujesz} {#abort} {tescik}
And when i run script, for example:
e
search arrows
#wait 5000
ne
search arrows
#wa 5000
se
search arrows
and i have answer from MUD
Znajdujesz arrows.
MUD wait those 5s and then execute next command instead of abort #wait and execute.
When i send #abort to MUD it works, but no with trigger.
I'm powerless. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4690 Location: Pensacola, FL, USA
|
Posted: Wed Aug 01, 2012 3:57 pm |
since the trigger is outside of the script, you might need to use #ABORT all... but that could have some side effects
|
|
_________________ Discord: Shalimarwildcat |
|
|
|
|
|