Community

SCI Programming => SCI Syntax Help => Topic started by: MusicallyInspired on May 05, 2010, 05:34:16 PM

Title: Calling a script not working
Post by: MusicallyInspired on May 05, 2010, 05:34:16 PM
I can't figure out why my script isn't being called here.
There are two places where I want it to call a script named "killDraculaScript" for killing dracula,
but when I execute the command to set it in motion it just does nothing.
I must be missing something small here. Little help?

EDIT: Never mind, I figured it out. It was something small, all right. I mislabeled the changeState method to "changestate" instead of "changeState" with a capital "S".
Title: Re: Calling a script not working
Post by: Collector on May 05, 2010, 09:10:04 PM
It's little oversights like that that can drive you crazy. I needed to have one of my installers check the version being installed because applying a patch to one version of the game would crash the game, so I added routine to the script to read the version file. I went around and around trying to figure out why it wasn't working, even though it look like it was returning the right value. It turned out that it was also reading the return and new line and I was only looking at the version info.
Title: Re: Calling a script not working
Post by: MusicallyInspired on May 06, 2010, 12:08:04 AM
Yes, that does sound tedious!