Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Kikadaaf on Tue 02/12/2008 07:38:21

Title: Error with looking at Hotspot
Post by: Kikadaaf on Tue 02/12/2008 07:38:21
When i attempt to "Look" at thr hotspot i created for my wall the game crashes and gives me a message of: Error: Prepare_Script: error -18 (no such function in script) trying to run "Wall"   (room 1). ??? Anyone got any ideas? This is my first game with this, and after workin on this room for 3 hours I've met my first snag. I even did the hotspot the way the tutorial showed it.   :'(
Title: Re: Error with looking at Hotspot
Post by: Dualnames on Tue 02/12/2008 08:24:39
Well, you probably have no line in the room script containing something like this:

Hotspot1_Look () {

It should seem this way, I can't really recall how it is exactly.
Title: Re: Error with looking at Hotspot
Post by: Khris on Tue 02/12/2008 08:59:17
AGS will try to run the function whose name is entered in the events pane. So my guess is that in the field next to "Look at hotspot" it says "Wall" while there's no Wall() function in the room script.
Did you enter any commands supposed to be called after one has looked at the hotspot? Where did you enter them?