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
saryon
Beginner


Joined: 27 Nov 2003
Posts: 13
Location: USA

PostPosted: Fri Nov 28, 2003 8:03 am   

Summoning Alias/Trigger combo
 
What I am wanting to do is summon up to 50 of a certain mob.

Now I know it would be extremly easy to do an alias with
summon 1.<mob>; summon 2.<mob>

But what I am trying to do is a form of error checking at the same time.

So what I have done is set up triggers for the arrival of that mob via summon, to invrement variable @anoi.

What I have so far

Alias - summonanoi : c 'summon' <@anoi>.anoi
trigger - An anointed : #math anoi (@anoi+1)

What I would like is for me to be able to type summonanoi, and it loop through until @anoi reaches 50. Can you guys help of suggest a command to look at for doing this??

Thanks

Matt
Reply with quote
saryon
Beginner


Joined: 27 Nov 2003
Posts: 13
Location: USA

PostPosted: Fri Nov 28, 2003 8:13 am   
 
Another thing I forgot to mention is that if a summon fails (You lost your concentration) I would it to pick that up. Almost as if a whole "program" was running that watched for just this part, but I really dont understand how to do this.

I appreciate your help guys.

Matt
Reply with quote
Danlo
Magician


Joined: 28 Nov 2003
Posts: 313
Location: Australia

PostPosted: Fri Nov 28, 2003 12:05 pm   
 
Try this:

#alias summonanoi {#var anoi {1};#var summonvictim {%1};c 'summon' <@anoi>.<@summonvictim>;#T+ resummon}
#trigger {An anointed} {#IF (@anoi<50) {#add anoi {1};c 'summon' <@anoi>.<@summonvictim>} {#T- resummon}} resummon
#trigger {{You sizzle with energy, but then you forget the thing you wanted to cast!|Impossible, your concentration left you, as a fly crawled in your ear!|Blue sparks fly from your fingers, hitting you in the face! ~*Ouch~*|Your mind is drifting away as you start uttering the words!|Your brain vanishes, as you try to cast!| Wait a little bit, maybe it reappears.|Segmentation violation, mana dumped.|A small blue light irritates you. Your concentration is gone!|Someone snaps his fingers in front of you, and you lose your concentration!|You can't concentrate as a small frog jumps around you, croaking annoying!|You lost your concentration! Stupid thing, silly git.|You make the heaven green, but you feel that's not the thing you wanted to do!|As you start to concentrate, Someone tickles you - HE HE HE !|Concentration is not your strongest side. It leaves you NOW!|As you start to concentrate, a small lightning hits you! ~*Ouch~*|You make your thoughts disappear! What did you want to cast?|Mother Mary comes to you, speaking words of wisdom: 'Let it be!'|A pink elephant appears in front of you, that's confusing!}} {c 'summon' <@anoi>.<@summonvictim>} resummon

In that last trigger, they are the failed-spell messages from my particular mud. If they are different in your MuD, you'll need to create your own list of failed spell messages.
To use: type summonanoi <mob to summon>
Enjoy, Danlo
Reply with quote
saryon
Beginner


Joined: 27 Nov 2003
Posts: 13
Location: USA

PostPosted: Fri Nov 28, 2003 4:30 pm   
 
Reply thanks alot. This does exactly what I wanted :). I was at least on the right track with what I had done so far. I'm happy with that.

Thanks again.

Matt
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