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 ...

learn more… | top users | synonyms

0
votes
0answers
22 views

Linux, scrippting language for developing simple games with 3D graphics [on hold]

while I know of processing, plplot, gnuplot, Gambas (with opengl wrapper, which does not quite work as of version 3), javascript, and python as well as Opnscad, I wonder, considering all of these have ...
-1
votes
1answer
50 views

Very basic question [closed]

I am trying to reverse gravity for my very first game. I am very new to programming. so I must ask, what does "Invalid token '-some character-'in class, struct, or interface member declaration" ...
0
votes
0answers
33 views

How to embed UnityScript for scripting in Unity3D?

It is useful to have parts of your game being scriptable. Many people (especially outside of Unity) are using LUA for that job. As UnityScript (as with Boo or C#) is a first class citizen why not use ...
0
votes
2answers
93 views

How to reverse gravity in Unity

I'm trying to figure out how script gravity reversal on collision with an object. How can I reverse gravity?
-1
votes
4answers
123 views

Scripting vs Programming [closed]

How does using Scripting and calling functions of scripting API differ from programming using C++ in UDK or Unity?in scripting we use the scripting API to interact with the engine and use functions ...
0
votes
1answer
87 views

Random Object in Array

I am using Unity. I have created eight different types of objects, stored in an array, and I am displaying them on the scene in a grid pattern with random order. The first four objects in the array ...
0
votes
3answers
190 views

Entity Component Architecture and Scripting without using threads

I am working on a small game engine for practicing purpose and also for putting some of my ideas into action. What I have so far is a couple of systems for rendering, sound etc. The next step is to ...
3
votes
5answers
170 views

Scripting APIs and scripting to make games

I am confused, what is scripting and what is scripting API? Is scripting the process of writing the game program? And is the scripting API (as in unity scripting API) the API provided by the game ...
0
votes
0answers
44 views

How do I hook up new spell scripts in Skyrim?

I am currently using this tutorial of making a location-based magic spell in Skyrim. The spell I'm making will place a soil mound on the ground wherever the conjuration ball hits when you shoot it. ...
2
votes
1answer
105 views

How do I change the material of an object with Script in Unity?

I was making a game with Unity and I want to change an object's material using JavaScript when the player collects 5 collectables that I made. The collectables get stored in an int variable called ...
1
vote
0answers
38 views

Scripting Documentation [closed]

I'm working in a game which will support scripting. I have seen that popular games supporting this feature usually ends up setting up a wiki from where one can obtain information about how to script ...
0
votes
1answer
56 views

Shared Material

I have this simple script, so the user touch one of the cubes all cubes with same material will change color. One of this cubes must have the name of the color on it, only one, so the user touch the ...
-5
votes
1answer
91 views

Do total conversion mods require absolutely no programming or scripting skills? [closed]

I tried to look up total conversion and other mods as examples (Counter-Strike, Defense of the Ancients, Gunman Chronicles, Dear Esther, Natural Selection) but it is a bit difficult to find out if ...
0
votes
1answer
113 views

ArmA 3 Scripting: Delete vehicle depending on present players

I'm fairly new to ArmA 3 scripting, and i'd like to know how to only spawn starting vehicles depending on how many players opt in to the mission. Say, the mission has four slots, but only two people ...
3
votes
1answer
527 views

How can I manage entities(in entity component system) using Lua scripts?

Suppose I have a code like this in C++ // Game.cpp Entity* hero; Entity* witch; ... // entity initialization if(/player near witch/) { if(hero->get<HealthComponent>()->getHealth() ...
0
votes
2answers
223 views

Problem with moving player through a secript by a set distance

I am currently trying to add a sort of "dash"-ability to my sidescroller. What I try to do, is to let the player press a key where a simple key-press causes the player to move quickly into one ...
0
votes
1answer
128 views

Unity - Invert Movement Direction

I am currently developing a 2,5D Sidescroller in Unity (just starting to get to know it). Right now I added a turn-script to have my character face the appropriate direction of movement, though ...
1
vote
2answers
535 views

Is it safe StringToHash() to use in Unity?

I'm currently browsing through the Unity tutorials and saw that they're recommending to use Animator.StringToHash("some string") to created unique ids for animation properties (see here). Since I'm a ...
0
votes
2answers
83 views

Using Canvas instead of Scaleform in UDK

I'm working with Unreal Script, and I need to use Canvas instead of Scaleform to create a HUD. I've extended the game type from UTGame, and used bUseClassicHUD in the Default Properties section, but ...
1
vote
1answer
124 views

Is it possible to mod a game to use a scripting language like Lua?

So my questions are: Is it possible to mod a game to use a scripting language? How would I go about doing so? I really like Arma 2 but like many games it does not have much in terms of ...
40
votes
7answers
7k views

How does Lua work as a scripting language in games?

I'm a little hazy on what exactly Lua is and how a game that is programmed in C++ would use it. I'm asking primarily about how it is compiled and run. For instance when you use a program written in ...
0
votes
3answers
169 views

How necessary are shader coders? [closed]

I know that gameplay mechanics programmers, either directly working with source or with scripting are needed, however there are so many shaders written already that I would imagine you could find ...
1
vote
2answers
100 views

Can you adjust the proportions of a 3D model via scripting?

We are developing a game in Unity where the character is different ages in different levels. Would it be possible to use a single 3D model asset, and alter its proportions via scripting to achieve ...
1
vote
1answer
111 views

How to put basic scripting/variable changes into dialog xml files?

I have a simple XML structure for my dialog between the player and NPCs. What I'd like to do is put variable changes (and maybe other things) directly into the XML. So, for instance, if you select a ...
1
vote
1answer
103 views

Creating teams 2v2, 3v3, etc

I'm figuring out how to create games with teams. The problem is that there will be games 1v1, 2v2, and so on as well as free for all. What would be the most efficient way to do this in Unity C#? I'm ...
1
vote
1answer
94 views

How should I go about protecting my script files?

I am working on a small multiplayer game with a whole bunch of scripting components. I know I can't store my files in plaintext otherwise anyone would be able to change the functionality of core ...
3
votes
1answer
220 views

How to design a useful scripting system?

I have decided to use the Squirrel (probably doesn't matter much for this question) scripting language in my C++ project. I'm wondering how game developers usually handle scripting in their games. ...
0
votes
1answer
180 views

Having trouble compiling UnrealScript with defaultproperties

Have just started scripting in Unreal Script and am following the instructions of the opening chapter of a book on the subject. I have set the development tools up as described in the book such that ...
0
votes
1answer
111 views

Creating a textured object infront of the current character in unity 3d

I've spent about half a day trying to get my head round this and i'm not having too much luck, essentially what I want to do is play an animation and then once the animation has finished create a flat ...
4
votes
1answer
601 views

How to store and parse story actions in XML

I been working on a game in Unity that reads its story (Actions, scene descriptions, NPC's, ect...) from an XML and have been wondering there was a better way to store actions based on player data ...
2
votes
2answers
5k views

Unity3d NullReferenceException: Object reference not set to an instance of an object

I'm making a script to climb ladders in my game. These are the variables used in the function. private Vector3 climbDirection = Vector3.zero; private Ladder currentLadder = null; private bool ...
1
vote
1answer
121 views

How to allow other games to communicate with my Lua scripts?

I am planning some small games that will all rely on a single system of Lua scripts to manage some unified data about: Some achievements that are common to each game. The player's progress in ...
7
votes
2answers
466 views

Coroutines in series

How would i go about stacking up a series of Coroutine calls that should be executed one after the other? I have tried getting a flashing color effect looping a series of color lerps in a coroutine ...
1
vote
1answer
128 views

How to define data for an input sequence game?

I'm starting to program my very first game, it's a clone of DDR/Stepmania done for research purposes and learning. I (at this early stage) get most of the UI/Music/input work that should be done, but ...
1
vote
1answer
190 views

Best practice child and parent script [closed]

What is the best practice coming to wher to place the code in this scenario. I have a gamobject called player. It has lots of child objects. One of them is sword. Like this: Player Body Head ...
2
votes
1answer
225 views

How to implement scripted events?

I'm building a game in C++ (using SDL) for a college project, I'm trying to figure out how to script events that happens when a player does something, or some time passes etc. I have a and idea of ...
6
votes
2answers
458 views

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 ...
0
votes
3answers
610 views

Scripting a game engine

I'm kinda new to scripting and combining languages with each other so i have a question about something that confuses me about it. If you want to script a game engine, do you embed the script in the ...
0
votes
1answer
377 views

Where can I modify the default damage system on UDK

I want to make a custom damage system on my game but I can't find the function that handles it... I looked on Actor.uc but the only thing I've found is the event TakeDamage, but there's nothing on it ...
5
votes
1answer
221 views

Game Logic Update Order

Is there a commonly-accepted general approach to the order of processing logic updates? My current 2D platformer has objects that implement different concerns, including the following: Notifiable - ...
4
votes
0answers
564 views

Advice on NPC architecture [closed]

I'm developing a 2D Zelda game with LibGDX in Java using TileD maps. I am now adding NPCs to the engine and I'm thinking about how to make them so it's going to be easy for me to add/edit their custom ...
-1
votes
1answer
108 views

Advice on developing a random event engine [closed]

I am looking into creating a random event engine like the one found in the Paradox Interactive’s Europa Universalis franchise. They use a ‘mean time to happen’ mechanic that applies various ...
4
votes
3answers
753 views

Creating a game with in game programmable AI [closed]

I am looking to make a game where the player can access an in game terminal and then use this terminal to write AI logic in a programming language such as C++ or C#, then they can compile the code and ...
0
votes
1answer
108 views

Building a visual scripting component (like Kismet) [closed]

I'd like to know how can one get started building a visual scripting component (or what is the more accurate term for this type of component?) such as UDK's and Unreal Engine's Kismet. For those who ...
1
vote
2answers
204 views

What ways are there for making vector types available in scripting?

I use Google V8 engine to embed Javascript into my game for scripting. As interface to my native code, I already registered some C++ functions to the scripting context. In the native code, I make ...
1
vote
1answer
331 views

Unity third person controller and hills

So i've been building a game and using the out of the box unity thrid person controller demo stuff. I found that even the tiniest of slopes seems to stop the "dude" dead in his tracks. Is there an ...
2
votes
1answer
162 views

Abstract Java game objects for Jython

I want to create an abstraction layer between my Jython Script objects and my Game Objects. I am not making the all of the engine in Jython. Most of my game logic is in Java. I just want to expose ...
2
votes
1answer
149 views

How far should I go in securing Groovy mod scripts?

I am developing a game in java and plan to embed the Groovy script engine to allow for more robust modding options. This comes at a price, of course. Groovy can access anything java can by default, ...
5
votes
2answers
378 views

How to keep Lua bindings from cluttering up C++ code? [closed]

I'm writing a game engine that uses C++ and Lua (and Luabind). Currently, I'm writing all the bindings inside the constructor of the class being binded. I really don't like this because it's ...
2
votes
1answer
446 views

Scripting a sophisticated RTS AI with Lua

I'm planning to develop a somewhat sophisticated RTS AI (eg see BWAPI). have experience programming, but none in game development, so it seems easiest to start by scripting the AI of an existing game ...