GB
  
You are currently viewing the United Kingdom version of the site.
Would you like to switch to your local site?
16 MIN READ TIME

Create NPCs and their conversations

Nate Drake invites you to relive the glory days of point-and-click adventure games by creating your very own.

In the first part of this series, we covered setting up the first room of your point-andclick adventure, including the engine, palette I and walkable areas. We also interacted with objects, by looking at them and adding them to the inventory. The player can now use the wrench inventory item on some machine pieces to assemble a broken robot.

With the robot up and running, it’s time to give it a voice. Conversations are a natural part of any pointand-click game, providing useful hints. NPCs can also sometimes be persuaded to give players useful items.

Crafting characters

In the series so far, we’ve covered two of the main types of things with which your player can interact: items and hotspots. However, AGS also supports a third type: characters.

A character contains elements of both hotspots and objects. They can’t be picked up but they can be interacted with to have conversations. They can also move between rooms and carry their own inventory.

Look to the project tree at the top-right and expand Characters. You’ll see there the name of the main player character. By default, this is cRoger, but if you’ve been following this series, you may have changed his name to one of your own – cNate, for example.

OUR EXPERT

Nate Drake is a tech journalist specialising in cybersecurity and retro games. The first thing he did when discovering Linux in 2004 was play Beneath a Steel Sky. Be vigilant.

OUR EXPERT

Nate Drake is a tech journalist specialising in cybersecurity and retro games. The first thing he did when discovering Linux in 2004 was play Beneath a Steel Sky. Be vigilant.

QUICK TIP

You can also change the StartingRoom value for your player character. As you add more rooms to your game, this can be a good way to test out new rooms quickly. We’ll add another room in the final part of this series.

QUICK TIP

You can also change the StartingRoom value for your player character. As you add more rooms to your game, this can be a good way to test out new rooms quickly. We’ll add another room in the final part of this series.

Double-click on your character name. Under Selected Character Settings, you’ll see a notification saying this is the player’s character. This means when the game starts, you control this character and action begins in the character’s StartingRoom, as defined in the Properties grid at the bottom-right.

This is where we can add our lovable robot as a character, but at this stage, there’s a problem: currently, the fixed robot is an object. This is because in the previous tutorial, all we needed oFixedRobot to do was appear when the player used the wrench on the broken robot parts.

Luckily, this is easy to fix. First, return to Room1 in the project tree via double-clicking. Next, choose Edit This Room’s > Room > Objects > oFixedRobot. Rightclick and choose Delete. Click Yes to confirm.

Next, return to the project tree and right-click Characters. Choose New Character. Go to the properties grid and select RealName. This is the name that the editor will use to refer to your new character, so set this to something simple like Robot.

Next, you need to set the ScriptName. This is the name by which the character will be referred to in the actual game script, so set this to cRobot (or cRobot1 if you want to have more than one robot in your game).

Unlock this article and much more with
You can enjoy:
Enjoy this edition in full
Instant access to 600+ titles
Thousands of back issues
No contract or commitment
Try for 99p
SUBSCRIBE NOW
30 day trial, then just £9.99 / month. Cancel anytime. New subscribers only.


Learn more
Pocketmags Plus
Pocketmags Plus

This article is from...


View Issues
Linux Format
March 2024
VIEW IN STORE

Other Articles in this Issue


Linux Format
codeclub
www.codeclub.org.uk
Linux Format
The #1 open source mag Future Publishing Limited,
WELCOME
MEET THE TEAM
This issue, we’re looking at exciting new distributions, so what new distro have you tried recently that you would recommend readers try for themselves?
Cutting edges
Living in the open source world means if
REGULARS AT A GLANCE
Linux to save Windows 10 PCs from the apocalypse?
240 million PCs could be scrapped after October 2025, when free support ends for Windows 10. Or users could just switch to Linux.
Cosmic looking out of this world
Pop!_OS Cosmic DE is to be released as an alpha, with a new terminal and overhauled graphics support.
Chromium Wayland accelerated!
VA-API now works on Linux Ozone/Wayland platform.
NEW YEAR RELEASE!
Italo Vignoli is one of the founders of
DATABASE BASES
David Stokes is a technology evangelist at Percona.
Unity bans VLC plugin
Unity management making friends and influencing people.
OpenWrt router?
OpenWrt floats the idea of its own hardware router.
Man writes kernel in Rust
Maestro is a Unix-like kernel written from scratch in Rust.
Distro watch
What’s behind the free software sofa?
WILY WESTON
Marius Vlad is a senior software engineer at
REISER’S GUILT
Jon Masters is a kernel hacker who’s been
Kernel Watch
Jon Masters keeps up with all the latest happenings in the Linux kernel, so you don’t have to.
Answers
Got a burning question about open source or the kernel? Whatever your level, email it to answers@linuxformat.com
Mailserver
WRITE TO US Do you have a burning
HotPicks
Shotwell YouTube Downloader Plus Blue Recorder EncryptPad Buttercup Resources Rnote heXon EDuke32 Delta Chat Proton VPN
OLD-SCHOOL HACKING 101
CREDIT: Magictorch LXF313 will be on sale Tuesday
REVIEWS
Intel Core i7 14700K
Jacob Ridley thinks this is a perfectly good stand-in for a Core i9.
RlxOS 2023.11
Nate Drake finds himself washed up on the rock of ages that is RlxOS , only to discover that it still needs work.
Emmabuntüs 5
Nate Drake finds that despite being hard to pronounce, the name is the only complicated thing about this Debian-based distro.
Manjaro 23.1 Vulcan
Nate Drake boldly goes to take Vulcan for a test spin and finds an incredibly user-friendly and efficient operating system.
ROUNDUP
Password managers
RoboForm Keeper NordPass KeePass 2 Bitwarden
THE 5 BEST NEW DISTROS
THE 5 BEST NEW DISTROS
Blast off into the future with Matt Holder as he explores the technology powering a new generation of Linux distributions.
Pi USER
Let them eat lots of Pi!
Hundreds of thousands of Raspberry Pis are hitting the market, with production ramped to the max!
ProPico
Better by design.
Cyberdeck
Survive anything!
PEERLESS PIN NUMBERS
Les Pounder works with groups such as the
Official Pi 5 Case
Can the new official Raspberry Pi 5 case keep the Pi 5 cool? Les Pounder is – brace yourselves readers – on the case…
Geniatech XPI 3566 Zero
All brains and no brawn applies equally to this SBC and to Les Pounder.
Start using MQTT for sensor logs
Les Pounder is a sensitive soul and his new office needs sensors to record data. He’d better break out the maker kit!
IN DEPTH
Orange Pi vs Raspberry Pi
Tam Hanna compares the highest-end single-board computer offerings from Shenzhen Xunlong and the Raspberry Pi Foundation to find out which one is best suited for you.
TUTORIALS
Monitor systems in style
Shashank Sharma doesn’t look dapper in his quickly fading imitation leather jacket, but his terminal is always a sight to behold.
Secure and private comms made easy
Nick Peers takes a fresh look at an old favourite – Jami, a tool that aims to cover all your communication and sharing needs.
Make a Mealie of it
David Rutland dons a tall hat to prepare you a portion of Mealie – a sophisticated recipe management server with a side of meal planning.
Rescue and back up your retro media
Christian Cawley has some old Commodore 64 5.25-inch disks, and wants to revisit some personal files from 40 years ago.
Emulate an analogue computer digitally
In our continuing journey into analogue computing, Mike Bedford looks at another emulation approach, and how to get a real analogue computer.
The wire to faster Ethernet
Searching for faster than Gigabit Ethernet, the ever frugal Neil Mohr does that compromise thing his ex told him about.
ADMINISTERIA
Do Docker like an adult!
Stuart Burns is as mad as hell and he’s not going to stand for your shoddy Docker deployments any longer!
Starlink
Wherever he may roam, Nate Drake can enjoy fast internet at a fair price.
Hatch
An easy-to-use builder that empowers Mirza Bahic’s creative expression.
PROTECT YOUR SYSTEMS
Davey Winder reveals the biggest threats that hit systems in 2023 and what’s likely to happen over 2024.
CODING ACADEMY
Write and run C64-style 6502 code
David Bolton shows how to get started writing 6502 code and provides a useful example that sorts numbers.
The LXF Shell in… the redirection redemption
Ferenc Deák continues writing shell-enhancing redirection features and hiding the odd film title for you to spot, the little scamp!
ADVERTISEMENT
GO. COMPARE
Linux Format
www.magazinesdirect.com/LIN/C75J
Linux Format
magazinesdirect.com
techradar
www, techradar.com
magazinesdirect
www.magazinesdirect.com
magazinesdirect
www.magazinesdirect.com/linux-format
Python
magazinesdirect.com
EFF
EFF.ORG
The Brain Tumour Charity
thebraintumourcharity.org
Chat
X
Pocketmags Support