StrayRogue
09-12-2004, 09:43 PM
For some reason, my script is doing something it shouldn't be. The basis of this script is that it hunts in an area inhabitated by two different critters. It kills the creatures via incant, then uses target to find out which critter it was it just killed, so it can then skin/search, then move on. However, it doesn't seem to be working that way:
Heres the kill section of the script:
attack:
pause 2
put incant 1106
match dead dies
match dead dead
match dead motionless
match dead A little bit
match dead in a lifeless mass of flesh and fractured bones.
match dead emits a shriek as he goes still.
match dead emits a shriek as she goes still.
match dead falls to the ground and goes still.
match attack only type ahead
match attack Cast Roundtime
match attack Please wait
match attack Roundtime:
match attack Wait
match checkroom Your spell misfires.
match S%C You gesture into the air.
match S%c Cast at what?
match S%c I could not find
match S%c What were you referring to?
match S%c You currently have no valid target. You will need to specify one.
matchwait
dead:
pause .5
put target
match Critter1 crone.
match Critter2 giant.
Critter1:
put look crone
match skin appears to be dead.
match skin It is dead
match checkroom It is stunned
match checkroom It has
match S%c I could not find
match checkroom It appears to be in good shape
matchwait
Critter2:
put look giant
match skin2 appears to be dead.
match skin2 It is dead
match checkroom It is stunned
match checkroom It has
match S%c I could not find
match checkroom It appears to be in good shape
matchwait
In no other part of my script does is it told to look at the critters. Heres how its running, and the problem:
incant 1106
You focus your thoughts while chanting the mystical phrase for Bone Shatter...
Your spell is ready.
You gesture at a frost giant.
You concentrate intently on a dreadnought raptor, and a pulse of pearlescent energy ripples toward it!
DEATH!!!!
The frost giant shudders with severe convulsions as pearlescent ripples envelop its body.
The frost giant is crushed for 65 points of damage!
The frost giant falls to the ground motionless!
Cast Roundtime 3 Seconds.
[Script]>target
look crone
Usage: TARGET {player|creature}
TARGET RANDOM
TARGET CLEAR
look giant
You are currently targetting a frost giant.
[Script]>I could not find what you were referring to.
Heres the kill section of the script:
attack:
pause 2
put incant 1106
match dead dies
match dead dead
match dead motionless
match dead A little bit
match dead in a lifeless mass of flesh and fractured bones.
match dead emits a shriek as he goes still.
match dead emits a shriek as she goes still.
match dead falls to the ground and goes still.
match attack only type ahead
match attack Cast Roundtime
match attack Please wait
match attack Roundtime:
match attack Wait
match checkroom Your spell misfires.
match S%C You gesture into the air.
match S%c Cast at what?
match S%c I could not find
match S%c What were you referring to?
match S%c You currently have no valid target. You will need to specify one.
matchwait
dead:
pause .5
put target
match Critter1 crone.
match Critter2 giant.
Critter1:
put look crone
match skin appears to be dead.
match skin It is dead
match checkroom It is stunned
match checkroom It has
match S%c I could not find
match checkroom It appears to be in good shape
matchwait
Critter2:
put look giant
match skin2 appears to be dead.
match skin2 It is dead
match checkroom It is stunned
match checkroom It has
match S%c I could not find
match checkroom It appears to be in good shape
matchwait
In no other part of my script does is it told to look at the critters. Heres how its running, and the problem:
incant 1106
You focus your thoughts while chanting the mystical phrase for Bone Shatter...
Your spell is ready.
You gesture at a frost giant.
You concentrate intently on a dreadnought raptor, and a pulse of pearlescent energy ripples toward it!
DEATH!!!!
The frost giant shudders with severe convulsions as pearlescent ripples envelop its body.
The frost giant is crushed for 65 points of damage!
The frost giant falls to the ground motionless!
Cast Roundtime 3 Seconds.
[Script]>target
look crone
Usage: TARGET {player|creature}
TARGET RANDOM
TARGET CLEAR
look giant
You are currently targetting a frost giant.
[Script]>I could not find what you were referring to.