Game Making Guides Adding Actions to Conversations This guide will show you how to add actions to your conversation, and how to make it so that different actions happen depending on what the player chooses to say. We’re going to go through a simple example where if you’re nice to a character they give you some gold, but if you’re nasty they attack you. 1. Set the tag and faction of the character you will talk to Once again we need to set the tag of an object in order to make interesting things happen with it. 1. Select the character the player will talk to 2. Check that the Faction ID is set to ‘Commoner’ or ‘Defender’ so they can talk to the character n 3. Change the tag to something you will remember – you’ll have to type this out exactly in a minute so you might want to write it down! n 2. Write an interactive conversation We covered the basics of conversations in a previous worksheet so you may already have a suitable conversation which you can add actions to. If not you can create a new conversation. This very simple conversation gives the player two choices of how to respond to the NPC’s greeting 1 3. Add actions to your conversation 2. Make sure you have one of your player lines selected – choose the friendly one to start with 3. Click on ‘Add’ 4. Click on arrow 1. Click on the ‘Actions’ tab Once you’ve clicked on the arrow you’ll see a big list of different names appear. These are the names of ready-made ‘scripts’ which describe the rules for how characters and objects should behave. There are lots of scripts already written for different types of actions and we’re going to make use of two of these in this example. Double-click on ‘ga_give_gold’ – in this example we’re going to have the NPC give the player some gold if they choose the friendly option. Once you’ve double-clicked on the name of the script, the screen will change. 2 You’ll see the name of the script you chose appear here And some code will appear here – this is the script which makes the action happen! You won’t need to use the scripting language to create the rules – you can use the readymade scripts to do lots of interesting things. Scroll down to look at the whole script if you’re interested in seeing how it works. For now we will just be filling in boxes which will customise the readymade scripts to work for your game. 1. Click on the ‘Refresh’ button 2. This will bring up some extra text and boxes – type the amount of gold you want to give the player into the box labelled ‘nGP (Int)’ (Ignore this other box for now) 3 That’s one action created – now for the action which happens if the player says something nasty! 1. Now select the other option 2. Click on ‘Add’ 3. And click on the arrow again This time double click on ‘ga_attack’ – this is the script that makes an NPC attack the player 4 1. Click on ‘Refresh’ 2. Enter the tag of the NPC exactly as you typed it in the properties window (this won’t work if you don’t type it exactly the same!) Again – you can ignore the other options for now, they’re fine as they are You can see in the actions column that you’ve added actions to both of the player’s lines Now check that the conversation is properly added to your NPC! 1. If you haven’t already done so, rename the conversation to something memorable 2. Add the conversation in the NPC’s properties window 4. Play your game and test your conversation Does it work in the way you expected it would? 5
© Copyright 2026 Paperzz