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


Joined: 15 Dec 2001
Posts: 2

PostPosted: Sat Dec 15, 2001 10:34 pm   

Need help with trigger I can't figure out.
 
Hmm, I need a trigger to basically kill mobs when I scan. I am new at this and need a little help to start me in the right direction.

When I scan, I'll see something like:

2 East from here you see:
(Golden Aura) Somemob

I want it to trigger to the value:

shoot east somemob

But as the inputs from the mud are in 2 separate lines of text, I cannot figure out a way to set the trigger.

Also, I am trying to figure out how do I get the trigger to ignore mobs with (Red Aura) instead. So if I scan and see:

3 East from here you see:
(Red Aura) Somemob1
(Golden Aura) Somemob2

My value for it will hopefully be:

shoot e somemob2

Will someone out there help me with this? As long as I get started on this, I think I'll be able to figure the rest out. I juz need some advice now.

Thanks.
Reply with quote
wetahdid
Beginner


Joined: 06 Dec 2001
Posts: 22

PostPosted: Sat Dec 15, 2001 11:13 pm   
 
hehe they're gunna tell you to read the help files just like me
Reply with quote
wetahdid
Beginner


Joined: 06 Dec 2001
Posts: 22

PostPosted: Sat Dec 15, 2001 11:24 pm   
 
heh see my previos post... very similar...
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Sun Dec 16, 2001 12:52 am   
 
Do you want to shoot at every mob in any direction that doesn't have a red aura?

For example:

1 East from here you see:
(Golden Aura) Somemob1

2 East from here you see:
(Golden Aura) Somemob2

2 West from here you see:
(Golden Aura) Somemob3
(Re Aura) Somemob4



You want to shoot at all the mobs that don't have a red aura?

Iljhar
Reply with quote
seishin69
Newbie


Joined: 15 Dec 2001
Posts: 2

PostPosted: Sun Dec 16, 2001 4:02 pm   
 
Nod... It's for multiple mobs... But i'll be happy if i can figure out how to shoot in one direction already...

And, it would be good if i could toggle it to shoot (Red Aura) or (Golden Aura)
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sun Dec 16, 2001 7:39 pm   
 
Heres your start, and the general advice...read the help until you understand everything this does, and why it doesn't work perfectly.

#ALIAS Scan {~scan;Mobs="";#T+ Scanning}
#CLASS Scanning {"disable"}
#VAR Direction ""
#VAR GotMob 0
#VAR Mobs ""
#VAR DontShoot "Red|Black"
#TRIGGER {%d (%w) from here you see:$} {Direction="%1"}
#TRIGGER {~((%w) Aura~) (*)$} {#IF (%ismember("%1",@DontShoot)) {#ADDITEM Mobs "%2";#ADDITEM Mobs @Direction};GotMob=1}
#TRIGGER {^(*)$} {#IF "%1"!="") {#IF (@GotMob=0} {#ADDITEM Mobs "%1";#ADDITEM Mobs @Direction};GobMob=0}} {Direction="";#ALARM {+1} {#IF (@Direction="") {ShootEm;#T- Scanning}}}}
#ALIAS ShootEm {#SHOW You have to write this part.}
#CLASS 0

I left a bunch of things to change in there. Hopefully I didn't forget too many little things.
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