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

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Gwaethiel
Beginner


Joined: 23 Feb 2011
Posts: 13

PostPosted: 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?
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Gwaethiel
Beginner


Joined: 23 Feb 2011
Posts: 13

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
Gwaethiel
Beginner


Joined: 23 Feb 2011
Posts: 13

PostPosted: 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.
Reply with quote
shalimar
GURU


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

PostPosted: 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
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD 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