PDA

Click to See Complete Forum and Search --> : ???Scripting???


drewski
Sep 30th, 2000, 07:45 PM
what is scripting? i've heard a little about it but overall the concept is new to me. doesnt it have to do with the dialog in a game and such? or/and does it have to with triggering events in a game? such as opening a door or walking into a trap?

if anyone has any simple examples somewhere i could download and look over i would be a very happy programmer :)

thanks all,
drewski

Fox
Sep 30th, 2000, 08:58 PM
I haven't any example here, but well, I can try to give you the idea ;)

Scripting is always used if you need to edit the game after releasing it (update, patches) or if you can't always edit the exe (ie. if you work in teams).

Well, ie. if you make scripts for a tile you have events as OnEnter, OnExit and such... Or for the objects OnCollide or OnHit and so on. All depending on the game you're doing ;).
(In Unreal for example you can add your own DLLs and script the objects, that's a real expansion ;))

Well, look at my Super Mario game (download at my website), there's a simple script system for the objects (as ?-blocks).

And... ask if you need more help ;)

Oct 5th, 2000, 07:29 PM
many times, scripts are used in games for doing 'movies' that happen right on the game's own engine. For example, all those old, Finalfantasy 3, 4, 5 movies, cutscenes, were all scripted. The program reads the script and interprets it by showing it on the engine. The latest example I can give u is the game "DRIVER" it uses Scripts to make all it's missions. all the missions are script files, that u can edit to cheat (hint hint lol)...

kedaman
Oct 6th, 2000, 07:20 AM
Yep, there's two types of scripts, inis, that are read when the programm starts or you select a mission or something like that. runtime scripts are operating all the time in the game, you give a command, and it corresponds like in quake :)
Scripting makes your game slower, i guess it could be faster in C++ but not in vb. use like operator, not instr or left$/mid$ to read the commands. Also some scripts can correspond to GUI interfaces like clicking on buttons and dynamical menus, but those must be very advanced. Simple events in the game, like fox said, could be scripted in RPGS.