|
chanmanlv Newbie
Joined: 01 Dec 2014 Posts: 1
|
Posted: 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. |
|
|
|
hogarius Adept
Joined: 29 Jan 2003 Posts: 221 Location: islands.genesismuds.org
|
Posted: 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. |
|
|
|
sarakhan Newbie
Joined: 16 Dec 2014 Posts: 1 Location: fsda
|
Posted: 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 |
|
|
|
|
|