Compile successful, however, the game won't run. Error: prepare Script; error-18

Started by Cyril_Grey, Tue 06/07/2010 00:24:32

Previous topic - Next topic

Cyril_Grey

Hello! I'm new to AGS, infact this is my first attempt ever. I'm sticking to the tutorial like glue, (Just renaming stuff for my own sprites) unfortunately my game has suddenly stopped working! I know it must sound to all you veterans like a basic scripting error, but I've run a compile and it says the script is fine! The game loads, black screen and everything but rather than fading into the room it stops and brings up this EXACT error message.

An Internal error had occurred. Please note down the following
information.

Error: prepare_script: error -18 (no such function in script) trying to run
'room_Load' (Room 1)

To be honest, I've been at this for 2 days, made my own animations and such... but this all came about when I was trying to make a cut scene, just the tutorial one

Here are lines 18-28 of the code, I assume the damage must be here because its the last thing I touched! For the life of me I cant see it :(

function hHotspot3_Look()
{
Display ("The holy symbol shines brightly in the candle light and shows clearly that it is the most valuable of its owners possessions. Unlike all else in the room it has clearly been cleaned and polished regularly. An indicator of the value of the symbol of Holy Sigmar to a Witch Hunter.") ;
}

function obottle_Interact()
{
  player.Walk(372, 93, eBlock) ;
  obottle.Visible = false ;
  player.AddInventory (iWater) ;
  GiveScore (5) ;
}

As I said, the compile is successful... So why is this happening?
(I'm sorry if the answer to this -is- in the manual, I'll be damned if I can find it in there. The error sounds like it might be a Global scripting thing?)

barefoot

I May Not Be Perfect but I Have A Big Heart ..

barefoot

I May Not Be Perfect but I Have A Big Heart ..

SMF spam blocked by CleanTalk