# What is the most efficient method on saving texts for my text based game?

**URL:** <https://forums.unrealengine.com/t/what-is-the-most-efficient-method-on-saving-texts-for-my-text-based-game/1307582>\
**Category:** Programming & Scripting\
**Tags:** string, text, unreal-engine, Blueprint\
**Created:** [September 22, 2023, 9:36am UTC](https://forums.unrealengine.com/t/what-is-the-most-efficient-method-on-saving-texts-for-my-text-based-game/1307582 "2023-09-22T09:36:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![blagic23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blagic23](https://forums.unrealengine.com/u/blagic23)\
**Post date:** [September 22, 2023, 9:36am UTC](https://forums.unrealengine.com/t/what-is-the-most-efficient-method-on-saving-texts-for-my-text-based-game/1307582/1 "2023-09-22T09:36:26Z")

</div>

I tried using structures and making string arrays inside of them to store all the writing. But it is such an ineffective and tedious method. It would be hard for me to find and edit anything when I will have hundreds of pages of texts written.

How can I store long text-blocks, and efficiently find them later when I need to?

Also, a dummie question but, what is the exact difference between text and string?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 22, 2023, 9:47am UTC](https://forums.unrealengine.com/t/what-is-the-most-efficient-method-on-saving-texts-for-my-text-based-game/1307582/2 "2023-09-22T09:47:18Z")

</div>

Use a Data Table. You can even write your text in a spreadsheet outside of the engine and import it. Or write / edit in the engine and export it.

> [@blagic23](#):
>
> Also, a dummie question but, what is the exact difference between text and string?

So far from a dummie question!

> **[String Handling](https://docs.unrealengine.com/5.3/en-US/string-handling-in-unreal-engine/)**
>
> An overview of the string classes available in Unreal with reference guides for FName, FText, and FString.

Name vs Text vs String.

* * *

Also, have a look at the Maketplace - there are plugins that handle game text / branching dialogues, some are even node based. Perhaps you can find something that catches your attention.

---

<div class="post-metadata">

**Author:** ![blagic23](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@blagic23](https://forums.unrealengine.com/u/blagic23)\
**Post date:** [September 22, 2023, 9:51am UTC](https://forums.unrealengine.com/t/what-is-the-most-efficient-method-on-saving-texts-for-my-text-based-game/1307582/4 "2023-09-22T09:51:19Z")

</div>

Thanks for your reply!

So, I think it be more efficient if I use “text” for storing narrative. Thank you 🙂

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [September 22, 2023, 9:55am UTC](https://forums.unrealengine.com/t/what-is-the-most-efficient-method-on-saving-texts-for-my-text-based-game/1307582/5 "2023-09-22T09:55:56Z")

</div>

Widgets, that I am assuming you’re using for display, all use text; so yes, it’s quite natural to do so. Also, these exist:

> **[UMG Rich Text Block](https://docs.unrealengine.com/4.27/en-US/InteractiveExperiences/UMG/UserGuide/UMGRichTextBlock/)**
>
> UMG RichTextBlock provides a more flexible text block that supports markup for things like style changes, inline images, hyperlinks, and more. UMG RichTextBlock accepts decorator classes, which you can write to define the markup behavior you need for...

And work directly with Data Tables, too. Not sure if relevant for a _text based game_ you’re making, but since it would be the primary method of communicating with the player, having the ability to give the text extra meaning may be crucial:

![UsingDecorators_InlineImage](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/e/2/4e26e22115c149c6f7ae5292873865b39e7809b5.jpeg)

* * *

> How can I store long text-blocks, and efficiently find them later when I need to?

I imported a dictionary once with some 600000 entries. 🕶
