Register to post in forums, or Log in to your existing account
 
:
Search found 7 matches for:
Page 1 of 1
Author Message
  Topic: Trigger problem..
int 21h

Replies: 5
Views: 8527

PostForum: zMUD General Discussion   Posted: Sat Jun 15, 2002 12:11 am   Subject: Trigger problem..
Oop, knew I forgot something

---
I can show you the door, but only you can open it.

ArcticMUD (http://mud.arctic.org || telnet://mud.arctic.org:2700)
  Topic: Spell Trigger
int 21h

Replies: 5
Views: 4945

PostForum: zMUD General Discussion   Posted: Fri Jun 14, 2002 9:26 pm   Subject: Spell Trigger
Probably an easier way to do this, and this trigger doesn't exactly demonstrate the best techniques, but it will work... I think.

#TRIGGER {(%*): ########$} {#var shiznit %pos(">",%1); ...
  Topic: Spell Trigger
int 21h

Replies: 5
Views: 4945

PostForum: zMUD General Discussion   Posted: Fri Jun 14, 2002 9:04 pm   Subject: Spell Trigger
^ is the character that specifies to match at the beginning of the line.

Can you give me an example of the entire prompt?

With the ^, you shouldn't need the $, is this text somewhere in the prom ...
  Topic: Trigger problem..
int 21h

Replies: 5
Views: 8527

PostForum: zMUD General Discussion   Posted: Fri Jun 14, 2002 8:48 pm   Subject: Trigger problem..
#trigger {^When you look inside, you see:} {#t+ headcase}
#trigger {^[x(%d)] a bloody head} {#var heads %1;#t- headcase} {headcase}


In cases like this, its easiest just to use some sort of indic ...
  Topic: Spell Trigger
int 21h

Replies: 5
Views: 4945

PostForum: zMUD General Discussion   Posted: Fri Jun 14, 2002 8:41 pm   Subject: Spell Trigger
#TRIGGER {^(%*): ########$} {emote casting in 8 (%1)}

---
I can show you the door, but only you can open it.

ArcticMUD (http://mud.arctic.org || telnet://mud.arctic.org:2700)
  Topic: Storing a different variable.
int 21h

Replies: 3
Views: 3973

PostForum: zMUD General Discussion   Posted: Fri Jun 14, 2002 8:39 pm   Subject: Storing a different variable.
Just change the original trigger that adds items into that list, so that it only captures * (%w).

For example:
If your mud sent this:

You get a bright blue robe from the corpse of Satan.

Ma ...
  Topic: highlight enemies automatically?
int 21h

Replies: 7
Views: 6216

PostForum: zMUD General Discussion   Posted: Fri Jun 14, 2002 8:33 pm   Subject: highlight enemies automatically?
I think the following code will do what you want to do, I make no claims to its functionality however, and it should only be used as pseudo guide to as how you should approach the problem. The aliases ...
 
Page 1 of 1
All times are GMT
© 2009 Zugg Software. Hosted on Wolfpaw.net