home |
the black hole's front page. all the latest vb rpg development and vbgaming news, as well as this week's feature rpg project! |
rpg projects
|
vb rpg projects under development by members of the bhC. show them your
support, and check out their games! |
message board |
a forum to interact with your fellow vb rpg programmers. you do *not* have
to be a bhC member to post! |
contact |
you want to contact the guy behind the black hole? here's where to
do it! |
|
|
|
|
<< Back to Category List
Simple Game Scripting Part 3: Control Stuctures for your Scripting Language - page 1 |
Copyright, etc.
This article and all it's contents are (c) 2000
David Goodlad. They may not be reproduced in any
form without permission from the author.
I will very gladly give permission to copy the
article, though, so send me an email!
David Goodlad
dgoodlad@junction.net
webmaster: http://blackhole.thenexus.bc.ca
Introduction
Welcome to the third part of this series of articles
about what should be recognized as one of the most
important pieces of game programming: the addition
of a simple scripting lanugage. In this part the
focus will be on the implementation of control
structures into your language. They will all be
coded as regular commands, written in the same
way as you would implement any other custom commands
for your language. A reminder that, as usual,
the actual implementation of all of these things
was done to maintain the ability to be understood
by you people easily. Therefore, I admittedly
have made the functions somewhat 'klunky' and not
necessarily the best they can be. A bigger
explanation of what can be done about this is in
the conclusion... But, remember, these examples
are designed to be learned from, not copied,
because they will not work very well in practical
uses.
But, anyways, enough chatter, let's
get on with it!!
|
|