Scripting Problem?

Ask and answer questions about making games and related topics. Unrelated topics go in that other forum.

Moderators: marionline, SDHawk

Post Reply
User avatar
TabletopTimeTurner
Red Slime
Posts: 56
Joined: Fri Mar 25, 2016 1:33 am
Location: hell my dudes

Scripting Problem?

Post by TabletopTimeTurner »

sorry its first time really writing a plotscript and im not sure whats up, i can't tell what im missing here
Attachments
Screen Shot 2017-05-04 at 11.59.15 AM.png
Screen Shot 2017-05-04 at 11.59.15 AM.png (160.08 KiB) Viewed 1318 times
Screen Shot 2017-05-04 at 12.00.42 PM.png
Screen Shot 2017-05-04 at 12.00.42 PM.png (34 KiB) Viewed 1318 times
User avatar
Taco Bot
Meat, Cheese, and Silicon
Posts: 484
Joined: Fri Jul 18, 2014 12:15 am
Location: Santa Cruz
Contact:

Post by Taco Bot »

On line 5, the "pan camera" command is missing a closing parentheses.
Sent from my iPhone
User avatar
TabletopTimeTurner
Red Slime
Posts: 56
Joined: Fri Mar 25, 2016 1:33 am
Location: hell my dudes

Post by TabletopTimeTurner »

Taco Bot wrote:On line 5, the "pan camera" command is missing a closing parentheses.
oh shoot youre right thank you
User avatar
Taco Bot
Meat, Cheese, and Silicon
Posts: 484
Joined: Fri Jul 18, 2014 12:15 am
Location: Santa Cruz
Contact:

Post by Taco Bot »

No problem! It also looks like you're coding in wordpad (or something else with spellchecking). If you switched over to a code-oriented editor like Notepad++ or Geany, it might help to catch errors like that in the future.
Sent from my iPhone
TMC
Metal King Slime
Posts: 4308
Joined: Sun Apr 10, 2011 9:19 am

Post by TMC »

Do those editors show you if you're missing a bracket?

Here's another way to find a missing/extra bracket if you can't figure it out (they can be hard to spot!): paste your script(s) into this formatting tool: http://tmc.castleparadox.com/ohr/script-format.php. Then check the indentation to see where it increases/decreases unexpectedly.
Last edited by TMC on Fri May 05, 2017 7:32 am, edited 1 time in total.
Post Reply