Jump to content

Recommended Posts

Posted

Don't know what's wrong with this script. Could somebody shine some light on it?

 

 

  Reveal hidden contents

 

 

Even though it says 'Compile Succeeded' it gives this error and won't save...

 

(5,123): mismatched character 'b' expecting '\n'

 

 

Posted

In the OnHit event line you have a slash "\" remove it or put the remainder on the next line.

 

The reason it is there is that you most likely copied the line from the CK wiki. The purpose of a slash by itself is to indicate that the current line of code continues on the next line. Someone probably included it in the example so that the code could be more easily read rather than requiring the reader to scroll horizontally.

 

It does have its uses. It is used heavily in the following function designed to allow a key press to process only when desired.

 

  Reveal hidden contents

 

Posted

Make sure the property is properly assigned.

Make sure the quest in question is not already running when you start your testing.

Make sure the object that the script is attached to is not already existing in the game when you start your testing.

Make sure that you are not already on stage 10 when attempting to test the script.

 

Beyond that, no idea.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...