 |
Loki27 Newbie
Joined: 15 Mar 2003 Posts: 4
|
Posted: Sat Mar 15, 2003 2:52 am
Help Targeting Person uppon walking into room. |
Zyco the Great Patriarch is here.
A janitor is walking along the street, keeping the area clean.
Baron Orin the Master of all Divinity is here.
Sir Sairen the Avatar of an Immortal is here.
(BLOOD)Alafter the Master of all Magic is here. (invisible)
(HERO)(DH)Kitriel the Assassin Hero is resting here.
Squire Renshal, Elder Blood Guard is here.
(LEGEND)(HERO)Hanovi the Knight Hero is here.
Prince Dorgo Extorcio's Hero is sleeping here.
Hi I am looking for a way to target a player when I walk into a room. The thing is different types of msg apear before his name.The name is in Yellow and i was told that by using color it is possible to set up a system where it captures his name to a variable but it is messy. Can anyone help out on how to do this? |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Mar 15, 2003 5:38 am |
Which one are you going to target? Or are you just going to attack someone at random and hope they aren't big enough to slaughter you? If you already know who you're going to attack, put the name in your trigger. If you don't, it's a reckless thing to do.
LightBulb
Advanced Member |
|
|
 |
Loki27 Newbie
Joined: 15 Mar 2003 Posts: 4
|
Posted: Sat Mar 15, 2003 6:04 am |
Id like to be able to target any of those peeple by having there names set to a variable as i walk into a room. The thin is not all of the name are preceided by the same nr or word. One is (Hero) other Squire, (DH) etc. But there true name appears in yellow as i receive it from the game where all the other text is green. I need a formula to capture those names and store them in a variable.
|
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Mar 15, 2003 6:35 am |
Use an ANSI trigger.
Use the mouse to select (highlight) a sample line
Click the Triggers button
Click New
Go to the Options tab
Select ANSI Trigger
Go back to the Pattern tab
Use CTRL-V to paste the line into the Pattern box with the ANSI codes included
Modify the pattern by removing unneeded portions, changing variable parts to wildcards, and putting parentheses around the parts you want to capture
Put the necessary commands into the Value box
Save
Sample:
Original line:
Sir Sairen the Avatar of an Immortal is here.
Pasted line:
Sir %e[53mSairen%e[0m the Avatar of an Immortal is here.
Pattern:
%e[53m(%w)%e[0m * here.
Value:
#ADDI PeopleHere {%1}
LightBulb
Advanced Member |
|
|
 |
Loki27 Newbie
Joined: 15 Mar 2003 Posts: 4
|
Posted: Sat Mar 15, 2003 5:32 pm |
Nope its not working. When i paste the highlited text its in black and white as opposed to in color in my mud window.
(HERO)Duke Yoji Loving Brother of Yuki is here. |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Mar 15, 2003 7:33 pm |
quote: Pasted line:
Sir %e[53mSairen%e[0m the Avatar of an Immortal is here.
Strange thing. The pasted text is in black-and-white in the example too. Weird, isn't it? Maybe it's supposed to be that way?
LightBulb
Advanced Member |
|
|
 |
Loki27 Newbie
Joined: 15 Mar 2003 Posts: 4
|
Posted: Sat Mar 15, 2003 7:55 pm |
Anyways it pastes in black and white althou i have color on the screen from the mud.
I tried a different approch by #sub the words in front of the name and than thrying to use the %w to reach the name. but nothing.
When I tried to make a trigger on "(" symbol zmud froze and could not start up again. Anyways when subing (Hero) its like 3 words. When i sub Hero for lay Funky i get on my screen (Funky) but i cant get rid of the ().
Any ideas on that? Or maybe there is anothe way to get the players name into a variable uppon walking into a room? |
|
|
 |
LightBulb MASTER
Joined: 28 Nov 2000 Posts: 4817 Location: USA
|
Posted: Sat Mar 15, 2003 8:36 pm |
You're right, it does paste in black-and-white. It's supposed to. The purpose of pasting was to include the ANSI codes, not the colors.
However, actual testing of similar trigger fails to pick up the parameters properly so it won't work anyway. Unless someone else knows a way to make this work, I think you'll have to explore other methods (such as adding the names manually).
LightBulb
Advanced Member |
|
|
 |
|
|