PE04: Parse Error at "".

Started by Kyouki, Sun 29/07/2012 05:13:31

Previous topic - Next topic

Kyouki

So I searched this board looking for what my problem is but I cannot find it. I'm writing two MouseMove scripts for two hotspots in my background of Room 1. The first one causes no problem. The second however triggers the Parse Error. I've tried writing it myself and clicking the inserts to do it automatically. I really can't figure out what's wrong because while I know a little about script writing, I've never had errors before. Any and all help is much appreciated. Here is the script up to the error:
Code: AGS
// room script file

function hDistance_MouseMove()
{
"The forest runs deep.
}

function hBird_MouseMove()
{
"A bird flutters through the trees and flies away."
}

Khris

The first string isn't terminated by a ".
The main problem though is you don't have any command in there. You need at least a Display command:
Code: ags
function hDistance_MouseMove()
{
  Display("The forest runs deep.");
}

Kyouki

Ohhhhh ok, thanks good sir!!

SMF spam blocked by CleanTalk