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


Joined: 07 Jun 2010
Posts: 3
Location: Kansas City, MO USA

PostPosted: Mon Jun 07, 2010 7:01 pm   

Converting from MudMaster 2000 to Zmud 7.21?
 
So I was given a copy of Zmud from a friend who'd upgraded to Cmud and suggested I "get my feet wet" on Zmud beyond the 14 or 30 day eval period. I'm used to using MM2K but there's noone around anymore on the sourceforge discussion groups and I'm wanting to try something else. What I'd like to know is how would I convert the following bit of code and turn it into something Zmud will recognize?

Code:
/action {You break open the capsule, skillfully avoiding the cloud of poison} {/event  {Cappy} {60} {/showme {@Chr(10)@AnsiBold()@ForeRed()Cap again!};/unevent {Cappy}}} {timers}
/action {You hold your dagger firmly and approach your target from behind.} {/event  {Slit} {120} {/showme {@Chr(10)@AnsiBold()@ForeRed()Slit now!};/unevent {Slit}}} {timers}
/action {You hug your bear tightly, wishing the hug to reach} {/event  {Bearhug} {600} {/showme {@Chr(10)@AnsiBold()@ForeRed()Bearhug Now!};/unevent {Bearhug}}} {timers}


Thanks for any help you can give a Znewbie.
Reply with quote
shalimar
GURU


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

PostPosted: Mon Jun 07, 2010 7:14 pm   
 
Might help if i understood MM2K code...

but actions can me made with #ACTION here as well, but mosst people call them triggers.

events are... aliases of a sort?

#TRIGGER {You break open the capsule, skillfully avoiding the cloud of poison} {you do something here}

showme would me #SHOW

#SHOW {%ansi(high,red)Cap again!%ansi(reset)}

and so on
_________________
Discord: Shalimarwildcat
Reply with quote
PlainVanilla
Newbie


Joined: 07 Jun 2010
Posts: 3
Location: Kansas City, MO USA

PostPosted: Mon Jun 07, 2010 7:18 pm   
 
Sorry, should have explained better. This is for the mud Astaria, thief class.
Using the first /action as an example:
Once my char tosses that capsule, then event creates a timer that will show me when I can use that skill again. {Cappy} is both the event name and the group or folder from what I can tell from other topics.

What I'd like to be able to do with Zmud is have multiple timers running like I could on MM2K. I'm just not exactly sure how to get it to work right here.
Reply with quote
shalimar
GURU


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

PostPosted: Mon Jun 07, 2010 7:22 pm   
 
timers work with #ALARM

#ALARM "reCap" +60 {#SHOW {%ansi(high,red)Cap again!%ansi(reset)}} {Cappy}

that would would make an alarm in the Cappy class that will wait a minute and print a message to the screen

This type of alarm doesnt really need a class though, as it deletes itself after fireing once.
Take a look at the help files if you havent already. We are more than willing to help you convert, but they can answer alot.
_________________
Discord: Shalimarwildcat
Reply with quote
PlainVanilla
Newbie


Joined: 07 Jun 2010
Posts: 3
Location: Kansas City, MO USA

PostPosted: Mon Jun 07, 2010 7:34 pm   
 
Well I did read the help files and I've been reading the forums, searching for timers and kept seeing that we should avoid ALARM--at least several people suggest it--so thought I'd post.

So if I wanted to keep all the trigger lines for alarms in one class, I could do it like this then?

Code:
#CLASS {Timers}
#TRIGGER {You break open the capsule, skillfully avoiding the cloud of poison} {#ALARM "reCap" +60 {#SHOW {%ansi(high,red)Cap again!%ansi(reset)}}}
#TRIGGER {You hold your dagger firmly and approach your target from behind.} {#ALARM "reSlit" +120 {#SHOW {%ansi(high,red)Slit now!%ansi(reset)}}}
#TRIGGER {You hug your bear tightly, wishing the hug to reach} {#ALARM "reBear" +600 {#SHOW {%ansi(high,red)Bearhug now!%ansi(reset)}}}
#CLASS 0


I've managed to convert most of my alias, gags, macros and a lot of highlights and other basic triggers over to Zmud, just timers are a pain.

Edit: removed an extra bracket
Reply with quote
Taz
GURU


Joined: 28 Sep 2000
Posts: 1395
Location: United Kingdom

PostPosted: Mon Jun 07, 2010 8:15 pm   
 
In zMUD it is #WAIT that should be avoided if at all possible not #ALARM.

That will create the triggers in the Timers class and when the triggers fire I'm fairly certain that the alarms will be created in the same class if not then just put {Timers} after them in the way that shalimar showed you.
_________________
Taz :)
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