Questions tagged [scripting]

A type of programming, often meant to be easier to learn than more "traditional" programming. Scripting is often used when performance is less important than ease of use. Examples of scripting languages are: Javascript, Lua, Perl, Python, and PHP. Scripting languages are often interpreted instead of compiled, and thus they can be executed directly without generating machine code.

A type of programming, often meant to be easier to learn than more "traditional" programming. Scripting is often used when performance is less important than ease of use. Examples of scripting languages are: Javascript, Lua, Perl, Python, and PHP. Scripting languages are often interpreted instead of compiled, and thus they can be executed directly without generating machine code.

This tag is to be used on questions relating to the concepts of scripting, for instance:

  • integrating a scripting language into a game,
  • creating a scripting language for a game,
  • implementing a scripting behaviour to a game,
  • etc.

The tag should not be used on questions about debugging a script, or just because the question's language is a scripting language (e.g. if the question is about achieving something in , don't add this tag).

270 questions
72
votes
6 answers

Why do we use scripts in development?

In my current project, Lua scripts are called by the C++ functions on the server side. After that, the scripts again call the C++ functions still in that solution. Why should we do such things and not call the C++ function directly? What are the…
user608
59
votes
1 answer

What scripting language should I choose for my game?

In what cases are what scripting languages better than others? All answers are appreciated, please provide a description, and describe in what cases the language excels in.
Linus
  • 200
  • 1
  • 4
  • 7
21
votes
6 answers

Is implementing your own scripting language viable?

I am coding a beat 'em up game in C++ and the time has come to implement scripting for events, triggers, cutscenes etc. I have read around on the internet and gotten a fair bit of information. My first choice solution would be to implement my own…
skiperic
  • 371
  • 2
  • 4
13
votes
7 answers

Domain-specific languages for scripting

As most of you know, embedded interpreters for languages like Lua and Python are widely used for scripting game logic, but I haven't seen much information on people going with domain-specific languages for their scripts, e.g. building a little logic…
13
votes
6 answers

When would I use "scripts" or "scripting" in a game, as opposed to the core language?

The terms scripts and scripting appear to be used interchangeably on the Game Development Stack Exchange, but other than reading questions about a scripting language choice, I don't understand the relationship between scripts and scripting, and the…
user6214
12
votes
3 answers

Scripting and Cinematics without Threading

I've been struggling with how to implement scripting in my game engine. I only have a few requirements: It should be intuitive, I don't want to write a custom language, parser and interpreter, and I don't want to use threading. (I'm certain there's…
ojrac
  • 282
  • 1
  • 8
8
votes
1 answer

Bohemia Interactive's bio2s format

Does anyone have specifications for the bio2s scripting language from Bohemia Interactive? They develop Operation Flashpoint, Armed Assault (ArmA), and Virtual Battlespace. These scripts are sometimes called O2 or Oxygen scripts and are used in…
Jaime Soto
  • 191
  • 6
7
votes
2 answers

How is scripting done in games such as Zelda?

How do games implement their triggers and events that make up the plot of the story. For example, to be concrete how would one implement the story of a game such as The Legend of Zelda: A Link to the Past. I'm assuming there is some kind of…
user782220
  • 1,007
  • 2
  • 11
  • 23
5
votes
1 answer

How do game makers (without coding) work?

How do game makers/engines like Buildbox, GameSalad, Construct, GameMaker, etc work? What technologies (programming languages, APIs, etc) are used to build the and how does the program convert the user's interactions into exportable code? I realize…
Sean Nam
  • 53
  • 4
4
votes
1 answer

Are abilities in online games better crafted in the main game backend language or a scripting language?

Scourge Healing: Hex Spell. (30 seconds.) Whenever target foe is healed, the healer takes 15...67...80 holy damage. The above is one of Guild Wars 1's monk class skills. My question is about what would be a good way of implementing abilities like…
RJones
  • 43
  • 2
2
votes
2 answers

Game Scripting Example in any scripting language

If i have to create a Battle System for a game which is like Final Fantasy 10 Turn Based battle system or Shadow Hearts Ring Based Battle System and likewise. How should i start with scripting a particular part of the game? Any…
GamDroid
  • 892
  • 1
  • 10
  • 25
2
votes
2 answers

Scripting language with class instance support

I have come across the need to use a scripting engine for my C++ game, but after experimenting with many languages since the last few days, nothing has truly stood out as the obvious choice for a language and/or binding library. I would like have…
Vortico
  • 123
  • 3
2
votes
1 answer

How do engines that can be scripted with a different language than the engine code work?

There are some engines that can be scripted with different languages than that of which the engine, itself, is written with. How does that work?
Meeesh
  • 223
  • 1
  • 4
2
votes
2 answers

Is there a simple C++/.NET game with scripting?

I would like to play around with games that use scripting to see how much easier it makes development. What --simple-- C++ or .NET game may i download and play with using a scripting language. I dont really care which scripting language it is.
user1047
1
vote
0 answers

How would I go about creating my own SDK to allow users to develop their own addon mods?

I am looking into developing a game, but I am very interested in the more abstract concepts such as modding. I would like to know, or get linked to information detailing the prerequisites, architecture and general idea behind, how I would develop an…
1
2