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


Joined: 25 Feb 2005
Posts: 10
Location: Fort Wayne, IN

PostPosted: Sun Jun 26, 2005 4:50 am   

Trigger help please
 
In the mud I play at, Jedimud, there is a spell called "sanctuary" that runs out every 8 tics (about 75 seconds to a tic). I can't figure out how to make it work so that when sanctuary falls on the person tanking, it will re-sanc the tank if not in combat, or wait for the end of combat to re-sanc the tank. @tank is my tank's name.

I'm completely baffled by this one since all my attempts have failed. Any help would be appreciated. I'm bad with #IF commands, so that's what's hurting with the noncombat/combat problem. The 8 tics I can make it wait, but it tends to block other spells for that duration with the #wa command so that's a no-go. :-)
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Jun 26, 2005 8:58 am   
 
First of all, is there a specific text that indicates that a person is fighting? Second of all, WAIT commands tend to do just that - WAIT. It's better to use ALARM in triggers. And there's an easy way to set that up, too. But, I need more information. What you've given me is what you want, but without actual MUD example, I'm at a loss. However, I will do what I can from your information. Read thouroughly before implementing, though.

#ALIAS sanc {cast sanc on @tank;#ALARM +600 {#SAY Sanc ran out}}
#TRIGGER {^Sanc ran out} {look;#IF (@tankfighting = no) {sanc}}
#TRIGGER {@tank is FIGHTING!} {#var tankfighting {yes}}
#TRIGGER {@tank the warrior %*} {#var tankfighting {no}}

This is untested. Also, this would only work in the following situation:

Combat:
Charneus is FIGHTING a sandworm!

Non-Combat:
Charneus the warrior is resting here.

If you could post some actual MUD text, it'd be greatly appreciated.

Charneus
Reply with quote
demoneyoungblood
Apprentice


Joined: 16 Dec 2002
Posts: 114
Location: USA

PostPosted: Sun Jun 26, 2005 11:25 pm   
 
lol, charneus ya putz :-D (and thats said in a teasing manner)

Quote:

#TRIGGER {@tank is FIGHTING!} {#var tankfighting {yes}}
This is untested. Also, this would only work in the following situation:

Combat:
Charneus is FIGHTING a sandworm!


That would not work anyway ;)

Charneus is FIGHTING! a sandworm
would work, as it is matched by the trigger.

Either way, as charneus said, if you can give us some actual text, we can give you a much more complete triggerset to keep whomever sanced :)
_________________
-Demone YoungBlood
Reply with quote
charneus
Wizard


Joined: 19 Jun 2005
Posts: 1876
Location: California

PostPosted: Sun Jun 26, 2005 11:47 pm   
 
Whoops... thanks for pointing out my error. Hmmm. I was half asleep when I posted that. Hahaha. I had already fixed one error. Heh. Go me. :P
Reply with quote
DaHart85
Beginner


Joined: 25 Feb 2005
Posts: 10
Location: Fort Wayne, IN

PostPosted: Mon Jun 27, 2005 12:37 am   
 
Well, I think I can get it from your post just with modifying it for personal use, thanks for the help and I'll see if I can get it to work from there. Thanks a lot. :-)

-David
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