Hello, and welcome to my tutorial.
SCUMM:
Script
Creation
Utility for
Maniac
Mansion.
Scumm is a flexible, javascript-like programming language mainly used for point-and-click adventure games. As the company who created Scumm, LucasArts, still has not released the full syntax, what I know, and anyone outside of lucas knows, is mostly guesswork. So nothing here has a 100% guarantee. But we think this is it. So here it is.
---Chapter 1: Getting started---
To learn Scumm, you really need experience in a c variant, java or a .net language. This is fast-paced and complex stuff.
To create a variable, you say:
CODE
var variable1;
And if looks like:
CODE
If(variable = 1){do stuff here};
And then you have actors. Actors are people in the game. As of yet, it is still hard to determine how to introduce an actor*, but we know how to handle them. You can select an actor and move bits about like:
CODE
Actor.Init(1); //Selects actor 1
Actor.Face(180); //Turns the face to 180 degrees
And then make them speak:
CODE
SayLineSimple(1, "This is a new game!"); //1 = actor 1
//In a game with sound, you would
//identify the sound clip like so:
SayLineSimple(1, "/soundclip_nwgm/ This is a new game!");
For a long speaking part, you have 2 sound clips, and have to wait for the first to end:
CODE
SayLineSimple(4,"/newgame1/This is a new game...");
Wait.ForMessage();
SayLineSimple(4,'/newgame2/ and it will be AWESOME!');
Wait.ForMessage(); says to wait till the first sound clip finishes.
That's pretty much it for now. Stay tuned for more. I hoped you liked my tutorial.!
*We think that an actor does not need to be introduced, but needs to be in the data files (hex files that show the images, ect. for each actor and room) next to the executable. We are working on how to make data files.