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


Joined: 16 Mar 2005
Posts: 5

PostPosted: Wed Mar 16, 2005 3:55 pm   

Double trouble....
 
Heres the thing I got a problem with....
I use a weave(spell) that I want to repeat the next time however the spell/weave does cast twice each round but I only need it to be repeated once...

My idea currently is this...
#TRIGGER {Your arm makes a rising motion and a piece of earth} {spi}

spi being the alias for cast 'spitting earth'

however since every round it does that twice I get spammed a lot and only need it done once...can someone help me out?

Thank you
Reply with quote
Spartacus
Wanderer


Joined: 23 Apr 2001
Posts: 53
Location: USA

PostPosted: Wed Mar 16, 2005 4:07 pm   
 
Try this:

Code:

#TR {Your arm makes a rising motion and a piece of earth} {
#if @SPIRepeat=1 {
  #var SPIRepeat {0}
  spi
  } {
  #var SPIRepeat {1}
  }
}


This should repeat it once when you do it manually or from another trigger but not repeat it when it is fired by this trigger.
_________________
Spartacus
rm -rf .*

Last edited by Spartacus on Wed Mar 16, 2005 5:04 pm; edited 1 time in total
Reply with quote
soearhawk1969
Newbie


Joined: 16 Mar 2005
Posts: 5

PostPosted: Wed Mar 16, 2005 4:42 pm   
 
It comes back ith {#IF
and still each round...

a bracket missing?
Reply with quote
Spartacus
Wanderer


Joined: 23 Apr 2001
Posts: 53
Location: USA

PostPosted: Wed Mar 16, 2005 4:46 pm   
 
Whoops! Somebody (that'd be me) forgot to close the }... try this:

Code:

#TR {Your arm makes a rising motion and a piece of earth} {
#if @SPIRepeat=1 {
  #var SPIRepeat {0}
  spi
  } {
  #var SPIRepeat {1}
  }
}
_________________
Spartacus
rm -rf .*

Last edited by Spartacus on Wed Mar 16, 2005 5:04 pm; edited 1 time in total
Reply with quote
soearhawk1969
Newbie


Joined: 16 Mar 2005
Posts: 5

PostPosted: Wed Mar 16, 2005 4:50 pm   
 
Still does only get an {#If

I tried remaking it a little and got....
#if @SPIRepeat=1 {#var SPIRepeat=0 spi} {#var SPIRepeat=1}

but that returns that SPIrepeat is not defined...
Reply with quote
Spartacus
Wanderer


Joined: 23 Apr 2001
Posts: 53
Location: USA

PostPosted: Wed Mar 16, 2005 4:57 pm   
 
Alright - it appears that my brain is not quite in full operations yet. This should help:

Code:

#TR {Your arm makes a rising motion and a piece of earth} {
#if @SPIRepeat=1 {
  #var SPIRepeat {0}
  spi
  } {
  #var SPIRepeat {1}
  }
}


If you try to stack this on a single command line, it should look like this:

#TR {Your arm makes a rising motion and a piece of earth} {#if @SPIRepeat=1 {#var SPIRepeat {0};spi} {#var SPIRepeat {1}}}
_________________
Spartacus
rm -rf .*
Reply with quote
soearhawk1969
Newbie


Joined: 16 Mar 2005
Posts: 5

PostPosted: Wed Mar 16, 2005 5:22 pm   
 
That did it...thanx :) Cool
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