Slime Tube Scriptiing

Ethelred

Member
When I try to adventure in the slime tube with a script containing
Code:
         adventure(1,$location[The Slime Tube] );
I get the following error message:
Code:
Expected }, found   adventure (SlimeTube.ash, line 86)
where 86 is the line above.

I tried several variations on "The Slime Tube" and even checked adventure.txt to see what it was called there (The Slime Tube). Can anyone tell me what the magic location name is?

I'm using build 7384 for the record.
 
Last edited:

Ethelred

Member
I'm still developing the script and am not ready to post it yet. When I substitute another location, the script doesn't get that error, so I'm pretty sure that the $location[the slime tube] is the problem.

But here's a simplified version that gets the same error.

Code:
#
# TestTube.ash        Test $location[The Slime Tube]
#
# Vers. 1.00 6/12/2009 Ethelred
#


void main(  )
{
    
    location theTube;
    
    theTube = $location[The Slime Tube];

    adventure( 1, theTube );

    return;

}
Still seems to point to a problem with $location[The Slime Tube] to me.
Similar error: Expected }, found adventure (TestTube.ash, line 15)
 
Last edited:

jasonharper

Developer
Your script works fine for me; if it was simply a matter of the location name being wrong, the error would have been "Bad location value".

I suppose you might have a bad zonelist.txt, or some other indirectly used data file, but I'm not seeing any way that would cause the specific error you're getting.
 

Ethelred

Member
Problem resolved. Somehow an invisible char corrupted my script file and got copied to the test file as well. Finally found it with a feature of my text editor. Thanks for the help and quick responses. That was one very frustrating experience.
 
Top