Capturing MOB name

Scripts and support for your favorite MUD client.
Thylor
Sojourner
Posts: 32
Joined: Thu Mar 29, 2001 6:01 am
Location: Carlsbad, NM, USA
Contact:

Capturing MOB name

Postby Thylor » Fri Apr 27, 2001 1:40 pm

I am trying to capture a MOB name in a variable named @MOB. Here's some instances where I need to capture the name.

The sedawi mother is incapacitated ... blah blah

I want to capture nothing but mother.

Any idea's?

Many thanks!
silvea
Sojourner
Posts: 213
Joined: Mon Apr 23, 2001 5:01 am
Location: Holland

Postby silvea » Fri Apr 27, 2001 1:57 pm

This is prity imposible becouse it is never on the same position, for example:

the giant red dragon is lying here.
(you want dragon, 4th word)

a boy is walking here.
(you want buy, 2nd word)

serpants are crawling here
(you want 1st word now)

You can't capture it by position, or name, or something else.

I don't see a selution, sorry,

Silvea
Gindipple
Sojourner
Posts: 676
Joined: Fri Jan 26, 2001 6:01 am
Location: O' Fallon, MO. USA
Contact:

Postby Gindipple » Fri Apr 27, 2001 2:01 pm

#TR {(%w) is incapacitated} {kill %1} TrigName
#TR {(%w) is lying here.} {kill %1} TrigName

etc...
Thylor
Sojourner
Posts: 32
Joined: Thu Mar 29, 2001 6:01 am
Location: Carlsbad, NM, USA
Contact:

Postby Thylor » Fri Apr 27, 2001 2:05 pm

Actually, I want to capture name of MOB after leaving it mortally wounded/incapacitated.

capture only the word before mortally or the word before incapacitated. Then storing it into a variable.

Then I will create an alias of BM with

backstab @MOB...
Thylor
Sojourner
Posts: 32
Joined: Thu Mar 29, 2001 6:01 am
Location: Carlsbad, NM, USA
Contact:

Postby Thylor » Fri Apr 27, 2001 2:10 pm

I know it's possible.

#TR {(A|the) (%1) is mortally wounded} {@MOB = %1}

Something like this, but only capturing the word before 'is mortally'

There must be some combination or something with %trim %left... something.
Thylor
Sojourner
Posts: 32
Joined: Thu Mar 29, 2001 6:01 am
Location: Carlsbad, NM, USA
Contact:

Postby Thylor » Fri Apr 27, 2001 2:44 pm

THANKS NEDESA!

Here's the trick:

#TR {(*) (%w) is mortally wounded} {@MOB = %2}
Rausrh
Sojourner
Posts: 409
Joined: Fri Feb 09, 2001 6:01 am
Location: Madison,WI
Contact:

Postby Rausrh » Fri Apr 27, 2001 3:06 pm

Why not try to capture the mobs name while in combat and store it in@MOB, then when you see the incap. line trigger your backstab.


Rausrh licks you.
Tilandal
Sojourner
Posts: 393
Joined: Fri Jan 26, 2001 6:01 am

Postby Tilandal » Fri Apr 27, 2001 4:24 pm

Yeah, It would be easier just to capture it off the enemy line in combat.
Guest

Postby Guest » Fri Apr 27, 2001 4:25 pm

Alternatively, you might be able to take it from your prompt.

<T: Thylor TC: excellent E: mother EC: awful>

--D2
Thylor
Sojourner
Posts: 32
Joined: Thu Mar 29, 2001 6:01 am
Location: Carlsbad, NM, USA
Contact:

Postby Thylor » Fri Apr 27, 2001 6:16 pm

All great idea's! Thank you.

Return to “MUD Client Help”

Who is online

Users browsing this forum: No registered users and 22 guests