|
Scripting Unleashed - Scripting Basics |
Top Previous Next |
|
Yeah, just like with any language - there are some rules we must obey to use it. Compared to human languages, MMB script is one simple & fast-learning language. Basic Facts
1. Scripting is done using lines (rows): as you would type some story (for e.g. detective story about who killed the butler) on a type-writer, you'll in MMB case use keyboard to write MMB script story - and guess what: by default, one sentence per line :) 2. Sentence in MMB script story is called "code line": one line usually represents one command (there are just a few exceptions) 3. You don't have to remember command names ! MMB will help you using commands without knowing their attributes, and it'll provide help in more ways:
4. Syntax highlighting & formatting: MMB will automatically colorize command parts, making entire code easily readable. In addition to this, it will automatically arrange indent of code lines once you're finished with scripting, further enhancing code readability.
Preview of script lines
Here you see what these code lines look like - they're rows of commands that tell the story and depending on situation - perform assigned action.
In example above, story goes like this: After gathering all suspects in one room, detective is ready for his final act. - Detective reads key evidence, exposing the killer - "Old grandpa" - Although he's already prepared with line accusing Joe for violent act.. - After reading key evidence, he screams:
Oh, now ! Grandpa, how could you !
And that's it ! 9-line story & Grandpa's going behind the bars ! Details you can notice on preview displayed above:
|