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


Joined: 07 Dec 2003
Posts: 7
Location: USA

PostPosted: Sun Dec 07, 2003 5:57 am   

Trying to write autopractice scripts
 
[B)]
I am having a lot of problems with autopractice scripts. I am trying to parse in text, but having no luck getting that to work. I have not even been able to script outside triggers as that is all I can find for reference. Any suggestions on where to look. I found the references on this site too short for me to glean a good start and the help files give syntax pointers but no good directions.

Any suggestions would be useful. Using a trigger to sleep/wake, etc is not the most efficent way I do not think.

Thx
Drider
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Sun Dec 07, 2003 9:56 am   
 
Simply put:
#trigger {you are sleepy} {sleep}
#trigger {you want to wake up} {wake}

or how about nesting it with a wait command
#trigger {you are sleepy} {sleep;#wa 60000;wake}

or how about an Narcoliptic attack when your magic gets low
#trigger {^(%d)HP (%d)MA} {#if %2<20 {sleep;#wa 60000;Am I rested enough yet} {#if %2>100 {Wake}}}

You won't find everything you want under triggers in the help files
The only way to do that is to read the whole help files, which i suggest doing.

The is a printable copy ont the download page of this forum, all the way near the bottom.
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