PDA

View Full Version : NEED HELP: First attempt at making a hunting script



100% Wool
03-04-2004, 02:30 AM
TRIED to make my own hunting script doing it piece by piece first i did the mapping of the area it worked out great [ so proud of myself just making it go in circles ]

I have problem, I added an attacking sequence and when it DOES find the monster it casts it and it works fine,the thing is after the first cast it just stops...i have no clue what i'm doing wrong since its my first time so can someone tell me what i'm doing wrong

------------------



attack:
put stance def
waitfor You
put prep 1106
match WEAPON Your spell is ready.
match RELEASE You already have a spell readied!
matchwait

RELEASE:
put release
match START You feel the magic
match START You don't have a prepared
GOTO ATTACK
matchwait

START:
goto attack

WEAPON:
put stance advance
waitfor You are now in
GOTO CHECK

CHECK:
put disarm sprite
match DEAD is dead
match NOTHERE You want to disarm what?
match CAST You'll have to kill it to disarm it.
matchwait

CAST:
put channel sprite
match GOOD You concentrate
match BAD Cast at what?
matchwait

NOTHERE:
put release
put stance d
waitfor You are
GOTO checkroom

DIED:
put stance d
waitfor You
put release
waitfor You
put look
GOTO checkroom

BAD:
put release
waitfor You feel
put stance d
waitfor You
put look
goto checkroom

GOOD:
match dead dies
match dead dead
match dead motionless
match dead A little bit
match dead collapses heavily into a heap
match dead lifeforce fades
match dead falls to the ground with a dry
match attack only type ahead
match attack Please wait
match attack Warded
match attack stunned
match attack Cast
match lost You are
match attack Roundtime
match attack Wait
match R%c I could not find
matchwait

dead:
pause 2
put search sprite
pause 1
put SIGN OF SHIELDS
waitfor !
put look
goto checkroom
matchwait

---------------------

i tried everything I could to match it so that it would trigger another attack but it just stays there

can someone help me out? Thanks

Drew2
03-04-2004, 02:33 AM
dead:
pause 2
put search sprite
pause 1
put SIGN OF SHIELDS
waitfor !
put look
goto checkroom
matchwait


Both 'put look' and 'matchwait' are unnecessary there.

100% Wool
03-04-2004, 02:52 AM
ah thanks i fixxed the matchwait thing
the LOOK needs to be there cause the look makes the CHECKROOM check to see where I am after its dead

but anyway, it's still not working the script stops moving after the first cast

100% Wool
03-04-2004, 04:12 AM
nevermind folks i got it to work not as i planned...but i got it to work
so far i have the mapping done and the attacking

now to add a search and also a fried go to town/town to back....etc etc
i'll probaly need some help later though =)

[Edited on 3-4-2004 by 100% Wool]

100% Wool
03-04-2004, 12:48 PM
hmm dunno what i did but i fixxed it

[Edited on 3-4-2004 by 100% Wool]