Page 2 of 2

Re: Campaign

Posted: Sat Apr 12, 2008 8:54 am
by elfie
I thought making a campaign required a mission scripting program not lua editing.

Re: Campaign

Posted: Sat Apr 12, 2008 9:19 am
by woner11
They're the same thing.

Re: Campaign

Posted: Sat Apr 12, 2008 11:13 am
by MercuryNoodles
Lua is just the programming language. I think "scripting" is just a game oriented way of saying "code", but is labeled this way because it's telling the game how things are going to happen in a map just like a movie's script tells everyone what's supposed to be happening in a particular scene. /unnecessary speculation

Just to add to the topic a bit, having even a very basic knowledge of other programming languages (HTML, C++, etc) and how they function will help you understand scripting with LUA. That's not to say they all work the same way, but at least you'll recognize the structure and some of what you can do, if you already understand these things.

The reason there are little to none in the way of scripting tuts is because the possibilities are too numerous or complex to fully document. The script you make is totally based on what you specifically want to happen. It's up to the one doing the scripting to decide what to do with the commands.

Re: Campaign

Posted: Sat Apr 12, 2008 3:07 pm
by [RDH]Zerted
MercuryNoodles wrote:The reason there are little to none in the way of scripting tuts is because the possibilities are too numerous or complex to fully document. The script you make is totally based on what you specifically want to happen. It's up to the one doing the scripting to decide what to do with the commands.
Exactly, there are always more than one way to do exactly the same thing when programming. The standard game modes gives you an example of a 'campaign' map with one objective. Turning the map into a campaign, just meanings stringing a few modes together and changing the settings to only capture the flag once or only adding one CP to the conquest objective, etc.... The retail campaign maps will show you how to do this. I'm too busy to write up a better one.

"Scripts: A simple program in a utility language or an application's proprietary language."
Lua is a scripting programming language, meaning it is more meant to enhance another program or do short, simple tasks rather that writing full applications. Example: you wouldn't write Excel in Lua, but you might an Excel plug-in in Lua (of course, I don't think Excel supports Lua plug-ins, it would be more like VB scripts or macros). "Scripting" is just sort for saying programming in/with a scripting language. Its not tied to gaming, just used more in gaming then other areas.