Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Dynamic Story Scripting with the ink Scripting Language
Dynamic Story Scripting with the ink Scripting Language

Dynamic Story Scripting with the ink Scripting Language: Create dialogue and procedural storytelling systems for Unity projects

Arrow left icon
Profile Icon Daniel Cox
Arrow right icon
Can$35.98 Can$39.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (8 Ratings)
eBook Nov 2021 272 pages 1st Edition
eBook
Can$35.98 Can$39.99
Paperback
Can$49.99
Subscription
Free Trial
Arrow left icon
Profile Icon Daniel Cox
Arrow right icon
Can$35.98 Can$39.99
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6 (8 Ratings)
eBook Nov 2021 272 pages 1st Edition
eBook
Can$35.98 Can$39.99
Paperback
Can$49.99
Subscription
Free Trial
eBook
Can$35.98 Can$39.99
Paperback
Can$49.99
Subscription
Free Trial

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Dynamic Story Scripting with the ink Scripting Language

Chapter 1: Text, Flow, Choices, and Weaves

This chapter introduces the core concepts of nonlinear storytelling by examining branching narratives and how ink supports creating them. Building on these concepts, this chapter also reviews using lines, text within them, and how to combine them.

As a central element of creating nonlinear, interactive narratives in ink, choices are explained and how best to use them. Weaves and collections of choices are discussed within the context of when a large branching structure might be needed and how to collapse these weaves into simpler parts using gathering points.

In this chapter, we will cover the following main topics:

  • Understanding branching narratives as a flow
  • Creating choices and making weaves
  • Disappearing and sticky choices

Technical requirements

The examples used in this chapter, in *.ink files, can be found online on GitHub: https://github.com/PacktPublishing/Dynamic-Story-Scripting-with-the-ink-Scripting-Language/tree/main/Chapter1.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Learn how to translate stories into ink code to create interactive projects
  • Gain valuable insight into the ink story API to create engaging stories using the Unity plugin
  • Develop drop-in solutions to common narrative problems for Unity projects

Description

ink is a narrative scripting language designed for use with game engines such as Unity through a plugin that provides an application programming interface (API) to help you to move between the branches of a story and access the values within it. Hands-On Dynamic Story Scripting with the ink Scripting Language begins by showing you how ink understands stories and how to write some simple branching projects. You'll then move on to advanced usage with looping structures, discovering how to use variables to set up dynamic events in a story and defining simple rules to create complex narratives for use with larger Unity projects. As you advance, you'll learn how the Unity plugin allows access to a running story through its API and explore the ways in which this can be used to move data in and out of an ink story to adapt to different interactions and forms of user input. You'll also work with three specific use cases of ink with Unity by writing a dialogue system and creating quest structures and other branching narrative patterns. Finally, this will help you to find out how ink can be used to generate procedural storytelling patterns for Unity projects using different forms of data input. By the end of this book, you will be able to move from a simple story to an intricate Unity project using ink to power complex narrative structures.

Who is this book for?

This book is for Unity developers looking for a solution for narrative-driven projects and authors who want to create interactive story projects in Unity. Basic knowledge of Unity game engine development and related concepts is needed to get the most out of this book.

What you will learn

  • Discover how ink understands stories and their parts
  • Examine ink patterns for making branching narratives
  • Develop code in Unity using the ink plugin to manipulate stories
  • Design advanced projects combining ink stories with C# code
  • Compare common use cases for ink and Unity, such as dialogue systems
  • Determine how ink can best fit into future narrative projects

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Nov 12, 2021
Length: 272 pages
Edition : 1st
Language : English
ISBN-13 : 9781801818476
Vendor :
Unity Technologies
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Product feature icon AI Assistant (beta) to help accelerate your learning
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Nov 12, 2021
Length: 272 pages
Edition : 1st
Language : English
ISBN-13 : 9781801818476
Vendor :
Unity Technologies
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Can$6 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just Can$6 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total Can$ 185.97
Unity 2021 Shaders and Effects Cookbook
Can$55.99
Learning C# by Developing Games with Unity 2021
Can$79.99
Dynamic Story Scripting with the ink Scripting Language
Can$49.99
Total Can$ 185.97 Stars icon

Table of Contents

17 Chapters
Section 1: ink Language Basics Chevron down icon Chevron up icon
Chapter 1: Text, Flow, Choices, and Weaves Chevron down icon Chevron up icon
Chapter 2: Knots, Diverts, and Looping Patterns Chevron down icon Chevron up icon
Chapter 3: Sequences, Cycles, and Shuffling Text Chevron down icon Chevron up icon
Chapter 4: Variables, Lists, and Functions Chevron down icon Chevron up icon
Chapter 5: Tunnels and Threads Chevron down icon Chevron up icon
Section 2: ink Unity API Chevron down icon Chevron up icon
Chapter 6: Adding and Working with the ink-Unity Integration Plugin Chevron down icon Chevron up icon
Chapter 7: Unity API – Making Choices and Story Progression Chevron down icon Chevron up icon
Chapter 8: Story API – Accessing ink Variables and Functions Chevron down icon Chevron up icon
Chapter 9: Story API – Observing and Reacting to Story Events Chevron down icon Chevron up icon
Section 3: Narrative Scripting with ink Chevron down icon Chevron up icon
Chapter 10: Dialogue Systems with ink Chevron down icon Chevron up icon
Chapter 11: Quest Tracking and Branching Narratives Chevron down icon Chevron up icon
Chapter 12: Procedural Storytelling with ink Chevron down icon Chevron up icon
Assessments Chevron down icon Chevron up icon
Other Books You May Enjoy Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.6
(8 Ratings)
5 star 75%
4 star 12.5%
3 star 12.5%
2 star 0%
1 star 0%
Filter icon Filter
Top Reviews

Filter reviews by




Nancy Vendrell Nov 17, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I really loved everything about this book. I was surprised by a colleague who asked me to look into it. It gave me a fresh outlook on understanding branching narratives as a flow, creating choices, and making weaves with ease. I tend to be a very visual person and this pieced things together nicely so I could see it as a whole. Really appreciate what I learned and recommend any developer to look into this to broaden their unity prowess!
Amazon Verified review Amazon
Joseph Dec 08, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The author walks the reader through every aspect of the Ink scripting language from principles to variables and commands, all the while giving cohesive practical examples of how to utilize the language. The book includes code examples, however, I wish there were more visual illustrations and perhaps some color coding to highlight the differences between command types. More Unity-specific examples would help tie some of the more esoteric use-cases together but the book delivers a thorough understanding of Ink, and narrative scripting, to the reader.
Amazon Verified review Amazon
C Beck Mar 08, 2022
Full star icon Full star icon Full star icon Full star icon Full star icon 5
I have been interested in Ink as a narrative scripting language for quite a while, but as a relative newcomer to Unity I couldn't ever quite get my head around how to make the two things talk to each other. So I was very happy to come across this book which explains both the fine details of Ink and its integration with Unity very thoroughly. If you are looking to use Ink for narrative in your Unity project, this is a must buy.
Amazon Verified review Amazon
Christopher West Nov 12, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The author really presents how to use the ink scripting language in an easy to understand manner. This book is super to up my native game in my Unity projects! I highly recommend it!Having built a few "choose your own path" style games during my learning in Unity, the idea of having a markup language that could be reused from project to project and shared with other members of my potential teams for better narrative scripting was really enticing and I'm glad that I've gotten a chance to learn about the ink Scripting Language. I'm looking forward to using it in some future projects!The first section of this book covers using the ink Scripting language in general, covering things like Flow, Knots, looping, and making dynamic story cycles. The second section deals with integrating ink into Unity via the ink-Unity plugin and allowing Unity to interact with ink properties and functions. The third section covers deeper topics on narrative scripting like Dialog systems, Quest systems and tracking, and procedural story telling.I definitely recommend this book for Unity developers that want to create deep and comprehensive story driven games or really games with any kind of integrated dialog and story systems.
Amazon Verified review Amazon
Thomas Nov 12, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
This well written and thought out book is a great starting point for learning and understand the story scripting tool the is ink.The book will definitely be open when I start work on my next Narrative Story in Unity.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.