[gameprogrammer] Re: why use a scripting in game???

This is a good question I've addressed before.

Scripting solve a certain need:
1. You need data sent into the game that is more complex than what you can get just with numbers
2. The form of the data is too complex to enter with a GUI
3. The data needs to be entered by non-technical people and is simple enough that you don't need debugging tools to fix any problems that arise.


A good use of scripting is in the game Gothic 2. It was used for chained events, such as if you talk to NPC 1 and NPC 2, then NPC 3 will talk to you.

A bad use of scripting is in most other games, such as FarCry and Unreal Tournament, where they actually programmed the whole game in script. I worked on FarCry and have worked with Unreal Script and in my opinion it was the height of foolishness to do so. You basically have a new programming language which adds nothing to your ability to work but gives up the debugger and all the other nice tools that come with MCVC.

We use a pretty good system at my current job. We have a script-like language using macros that enable scripters to easily work with the system yet is still in C++ so you get all the debugging features and can write code when you need to.

I've covered this in my blog too at
http://www.rakkar.org/blog/?p=3

Anom wrote:
hi all,

recently when playing a computer game, this question pop up in my
mind. Why we do need a scripting language like lua or others that i
don't know.

Is it not enough just using C/C++?? What benefit we get from using it?

I really like to know about that, maybe someone kind enough to answer
it for me :p

TiA

--
       Ade Anom A
[http://www.a3rex.info]


--------------------- To unsubscribe go to http://gameprogrammer.com/mailinglist.html






---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: