Scripting help- Error-18- FIXED

Started by KillerWaffle, Wed 23/07/2008 02:32:35

Previous topic - Next topic

KillerWaffle

I fixed it by creating the same script again and not calling it anything. The problem was that in my script, it tried to look for pie, and in the script it said hsmillingsuns_look, so the script would never had worked. ;D

monkey0506

Presumably you have an event function somewhere in room 1 labeled as "pie", but no such function exists in the room script. Check your event handlers (i.e., player enters room, hotspot events, object events, etc.) to see which function this is (unless you know). You'll then need to create the function appropriately in the room script.

KillerWaffle

I have tried looking for pie, and found it in the events section of hsmillingsuns under "Look at hotspot". Can somebody please help me as to what the script should be?

Matti

Can you post the script containing "pie"?

Gilbert

Actually that error means that a function called pie() does not exist in the script (so how can he post it?) but it's defined in a room interaction in the Editor.

To fix that, either:
1. Add the following to the room's script:
Code: ags

function pie(){
}

   Or,
2. Just delete the text pie in the "Look at hotspot" interaction in the editor.

(actually for tidyness option 2 is preferred)

SMF spam blocked by CleanTalk