Log in

View Full Version : Adding to a wraith script



TheRoseLady
08-16-2005, 07:22 PM
I took a wraith hunting script here and with the immense help of Latrin got it to work.

The thing is that it hangs on wraith talons. I need a way to either get them, or ignore them and have it restart where it was. Any helpers?

This is the script:

save look
a:
match crypt [Graveyard, Crypt]
match start1 [Minion Quarters]
put look
matchwait

crypt:
put stance off
put stand
pause 1
put stance def
put go arch
put search
put go crack
nextroom
move e
move e
move e
move e
move e
move e
put go tunnel
nextroom
move n
move e
move e
put turn torch
waitfor As you turn the flickering torch the wall slowly moves apart to reveal a darkened stairway!
put go stair
nextroom
move w
move w
move w
put go door
nextroom
move s
move s
move s
start1:
put search
put go stair

start:
COUNTER ADD 1
pause 1
put %s
match charcheck wraith
match goon You can't go there
match stand P>
match path%c Obvious
matchwait

charcheck:
match path%c disk
match path%c Also here:
match headcheck Obvious
match stand P>
matchwait

headcheck:
put exp
match kill Your mind is
match path%c You must rest!
match stand P>
matchwait

stand:
match stand You struggle
match goon You stand
put stand
matchwait

kill:
match kill Geez
match goon you search
match goon what were you
match stand P>
put stance off
put attack wra
pause 6
put search wra
matchwait

goon:
COUNTER SUBTRACT 1
put stance def
waitfor You are now
save look
goto start
path1:
path2:
path15:
path16:
save w
goto start

path3:
path4:
path5:
path6:
save s
goto start

path7:
path8:
path9:
path10:
save e
goto start

path11:
path12:
path13:
path14:
save n
goto start

path17:
match leave you must
match restart your mind is
put exp
matchwait

leave:
move sw
move sw
move se
put go crack
nextroom
move s
move s
move s
move s
move n
move n
move nw
move ne
move w
move w
put go crack
put go arch
put sit
exit

restart:
COUNTER SET 0
save look
goto start

Electrawn
08-16-2005, 07:36 PM
match charcheck wraith

with

match charcheck a wraith.
match charcheck a wraith,
match charcheck a wraith and
match charcheck a wraith that is lying down

If its a mist wraith like Vaalor...

match charcheck a mist wraith,

etc.

If you use Stormfront, I can come up with some matchre's as well.

-Electrawn

Bobmuhthol
08-16-2005, 07:40 PM
Out of morbid curiosity, what will that do to make the script better, Electrawn?

TheRoseLady
08-16-2005, 07:51 PM
Now it ignores the wraiths

You also see a wraith and a flickering torch.

Electrawn
08-16-2005, 08:05 PM
You have to be careful cutting and pasting from the boards...it adds extra spaces at the end of the line, which screws up match.


start:
COUNTER ADD 1
pause 1
put %s
match charcheck a wraith.
match charcheck a wraith,
match charcheck a wraith and
match charcheck a wraith that is lying down
match goon You can't go there
match stand P>
match path%c Obvious
matchwait

To Bob:

We are trying to match wraiths the critter but ignore "wraith talon" on the ground

The original script form here would see a wraith talon on the ground and think its a wraith.

Bobmuhthol
08-16-2005, 08:06 PM
Ah, okay. I should pay more attention.

hectomaner
08-17-2005, 12:45 AM
start:
COUNTER ADD 1
pause 1
put %s
match path%c wraith talon
match charcheck wraith
match goon You can't go there
match stand P>
match path%c Obvious
matchwait

ftw

TheRoseLady
08-17-2005, 07:05 AM
Thanks all, I'll try again when I get home from work.

Shaelun
08-17-2005, 02:52 PM
Just a quick FYI, Electrawn's suggestion is great, but if you get an "A wraith just arrived," it won't match, will it? ... it's been so long I can't even remember if Wizard scripts are case sensitive. Anyway, if you aren't at the 32 match limit, just add in a quick match for whatever message that critter gives when it spawns too.

hectomaner
08-17-2005, 03:53 PM
actually, i was wrong


start:
COUNTER ADD 1
pause 1
put %s
match charcheck a wraith.
match charcheck a wraith,
match charcheck a wraith and
match path%c wraith talon
match goon You can't go there
match stand P>
match path%c Obvious
matchwait

Latrinsorm
08-17-2005, 05:06 PM
Alternatively, you could change the kill label to:

kill:
match kill Geez
match goon you search
match moveon what were you
match stand P>
put stance off
put attack wra
pause 6
put search wra
matchwait

moveon:
put stance def
waitfor You are now
goto path%c