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


Joined: 24 May 2006
Posts: 1

PostPosted: Wed May 24, 2006 8:25 pm   

A quick question...
 
I got this spell that I want to repeat when its used but it does cast 4 times but I only want it to repear once...let me show you...

I cast chain lightning and it will show:

Your lightning <<< PLUNGES INTO THE MARROW >>> of A Cow!
A lightning bolt leaps from your hand and arcs to A Cow.
Your lightning <<< PLUNGES INTO THE MARROW >>> of A Cow!
A lightning bolt leaps from your hand and arcs to A Cow.
Your lightning <<< PLUNGES INTO THE MARROW >>> of A Cow!
A lightning bolt leaps from your hand and arcs to A Cow.
Your lightning <<< PLUNGES INTO THE MARROW >>> of A Cow!

however I wanr it only to cast ONE time chain lightning so I can't trigger on the words there cause then it will cast it 4 times and basically lag me out..

thanx for any help :)
Reply with quote
Iceclaw
Apprentice


Joined: 11 Sep 2005
Posts: 124

PostPosted: Wed May 24, 2006 9:33 pm   
 
#var chain 0
#tri {^Your lighting} {#if @chain<4 {chain=@chain+1} {@chain=0;cast 'chain'} }
All code written off the top of my head, but that should help.
Reply with quote
Guinn
Wizard


Joined: 03 Mar 2001
Posts: 1127
Location: London

PostPosted: Wed May 24, 2006 10:03 pm   
 
That'd cause it to go 5 times before recasting I think. Would think it might treat @chain as a string too. If it doesn't work, try

#TRIGGER {^Your lightning} {#if (@chain < 3) {#add chain (1)} {chain = 0;cast 'chain'}}
_________________
CMUD Pro, Windows Vista x64
Core2 Q6600, 4GB RAM, GeForce 8800GT
Because you need it for text... ;)
Reply with quote
Iceclaw
Apprentice


Joined: 11 Sep 2005
Posts: 124

PostPosted: Thu May 25, 2006 1:51 am   
 
that last chain should definately be without the @.
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