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


Joined: 01 Dec 2014
Posts: 1

PostPosted: Mon Dec 01, 2014 5:51 pm   

New to useing triggers, need trigger for simple pattern
 
Hello

I need a trigger example to get just the "hobgoblin" from these two patterns
and then assign that monsters name to a variable or something and then attack it.
useing only 1 trigger instead of a trigger for every different monster.

A female hobgoblin enters the arena.

A hobgoblin enters the arena.
Reply with quote
hogarius
Adept


Joined: 29 Jan 2003
Posts: 221
Location: islands.genesismuds.org

PostPosted: Tue Dec 02, 2014 10:50 pm   
 
Something like the following (untested) should work...

Pattern:
Code:
^* (%w) enters the arena.


Script:
Code:
target = %1
attack @target


You'll probably need to tweak this to make it work for you.
Reply with quote
sarakhan
Newbie


Joined: 16 Dec 2014
Posts: 1
Location: fsda

PostPosted: Tue Dec 16, 2014 11:27 pm   
 
I want to be able to make a few of those names 2 or 3 lets say John Adam and Dan to be calculated as they rise/fall. so that when i see the list again it would say something like
__________________________
sara
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