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
39 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
56 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
33 views

Scripting Documentation

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
43 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 ...
0
votes
1answer
196 views

Why do camera's aspect ratio look good on computer but not on Android devices?

I'm developing a game for Android devices and I have a script that solves the aspect-ratio problem for computer screens but not for my intended target platform. It looks perfect on computer, even when ...
-5
votes
1answer
85 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
79 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 ...
2
votes
1answer
369 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
181 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
72 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
332 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
65 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
108 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 ...
39
votes
7answers
6k 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
165 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
86 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
99 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
102 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
89 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
202 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
143 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
105 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
505 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 ...
0
votes
0answers
42 views

How do I get coordinate information from .txt by unreal scripting?

I have following problem. I try to spawn some selfcreated .fbx static meshes into Unreal Engine by using unreal scripting. Therefore I have exported the coordinates in an .txt-file, where the static ...
1
vote
1answer
118 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
405 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
125 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
165 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
215 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
446 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
552 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
369 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 ...
4
votes
1answer
208 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
510 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
107 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
690 views

Creating a game with in game programmable AI

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
106 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
176 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
304 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
146 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
142 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
354 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
417 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 ...
3
votes
1answer
176 views

How would one go about integrated python into a c++ written game for the use of user-made scripts

I'm quite new to game development (not the site) and I'm currently just trying to educate myself about some certain things before I really begin working and a game. anyway, I'd like to know what ...
1
vote
1answer
426 views

how to link a c++ object to a local variable in Lua

I'm completing my scripting interface with Lua, but recently I've stuck at some point. I have several functions for my Entitiy events like Update(). I have a function called create_entitiy() which ...
0
votes
1answer
156 views

Sub-systems in game engines

So here's the problem- I'm writing my own engine library, and it works fine with stuff like menus and the actual game screen. The thing is, I can't really figure out how to integrate something like an ...
17
votes
6answers
2k views

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 ...
2
votes
1answer
319 views

How to handle scripted events in a 2d java game?

I'm in the planning phases of a 2D java game. The game is a tile-based platformer with some action-y parts to it, like a Metroidvania formula game. The static portion of each stage is expressed as an ...
2
votes
1answer
177 views

Implementing a wait function in a game script

I have been implementing behavior for enemies in my game and so far I have been doing it sort of like below: public void update() { if (frame > 60 && frame % 30 == 0) { ...