PDA

View Full Version : Cast At What



StrayRogue
10-10-2004, 07:12 PM
So I solved my old problem, with the help of Nilandia (Thankyou), however a new one has arised.

Occasionally a critter will leave the room, leaving me with a spell prepped and getting the old Cast at What? messaging.

I linked the Cast at what to a continue moving command in my script, like this:

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?
matchwait

Now it moves to the room specified, but then hangs. It will work fine afterwards when I type a command such as look etc. I don't know why it does this or only responds in such a way. My movement is pretty standard:

S7:
move s
counter set 8
goto checkroom

S8:
move se
counter set 9
goto checkroom

S9:
move e
counter set 10
goto checkroom

Etc. However I don't want to add an extra look to every movement line (which I think will solve the problem). Any ideas or reasons as why its doing this, and any possible solutions?

Thanks.

Nieninque
10-10-2004, 07:14 PM
Not that I know what Im talking of much in this respect, but why dont you match up the cast at what stuff with a release spell command before you move?

StrayRogue
10-10-2004, 07:17 PM
I could and did try that. It went something like this

match nextroom Cast at what

Nextroom:
put release
waitfor You
goto S%c

It did release but got the same hanging problem all over again.

Nieninque
10-10-2004, 07:17 PM
thats my expertise buggered. Sorry

Nieninque
10-10-2004, 07:18 PM
although having said that, why dont you just add a look into the line after the cast at what?

Drew2
10-10-2004, 07:20 PM
Why do you need that line in there? Unless you cast different spells. In that case, when you prep, have a check for 'You already have a spell prepared!' and then release and prep again.

StrayRogue
10-10-2004, 07:25 PM
Well I use Psinet and Incant, Tayre, so its pretty moot. The extra mana I'll save isn't the problem anyway.

As for putting a look after, that doesn't solve the problem. Basically it moves to a new location. Then I have to tell it to look.

In the script I would have to tell it to go to S%C. So in the relevent S%C I'd have to put a look. Meaning a Look in every part of the script, so basically I'd be looking at the room three times before even moving.

Drew2
10-10-2004, 07:26 PM
Really I have no answer for you. I've had many a script do the same thing to me. And they weren't even hunting scripts.

Latrinsorm
10-10-2004, 08:25 PM
Does it only hang after the "Cast at what?" scenario, or always?

StrayRogue
10-10-2004, 08:48 PM
It only hangs after this scenario. Basically when I get a Cast at what pop up the script tells it to goto S%C, which should make it move. It does. It moves it to the specified room then hangs until I input something like look, exp whatever.

I tried switching the plain spell number (via psinet) with incant, using the You must have a specified target as the S%C trigger when the script preps but the critter walks out. Same result.

Latrinsorm
10-11-2004, 03:18 PM
That's awfully strange. Did you try linking the Cast at what to a dummy label right before the end of your search routine, as opposed to directly to the movement loop?

Mistomeer
10-11-2004, 03:52 PM
Instead of going to S%c on the cast at what? go to checkroom, which should do a look, see nothing, then move again.

BigBadBonar
11-25-2004, 01:42 PM
Or, you could overhaul your whole move mechanics, instead of moving in each room, SAVE the direction and make the move in the mainroom. Set up a match for(cast at what? and goto a label that saves look. Golden.

Mistomeer
11-25-2004, 04:38 PM
Here's how I handle that stuff. I don't do a look when I enter the room, I have it check for a critter or player with the initial description that comes when you move, and on cast at what I go to a different function that does a look, something like this:

checkroom:
match room%s Also here
match killcritter critter
matchwait

myroom:
put look
match room%s Also here
match killcritter critter
matchwait

killcritter:
cast at critter
match myroom Cast at what
match myroom misfires
match pause Roundtime
match loot dies
matchwait