# How do you change a Structure Boolean from false to true using Blueprint?

**URL:** <https://forums.unrealengine.com/t/how-do-you-change-a-structure-boolean-from-false-to-true-using-blueprint/1525001>\
**Category:** Programming & Scripting\
**Tags:** boolean, Structure, unreal-engine, Blueprint\
**Created:** [December 14, 2023, 12:33pm UTC](https://forums.unrealengine.com/t/how-do-you-change-a-structure-boolean-from-false-to-true-using-blueprint/1525001 "2023-12-14T12:33:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![JordvL](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JordvL](https://forums.unrealengine.com/u/JordvL)\
**Post date:** [December 14, 2023, 12:33pm UTC](https://forums.unrealengine.com/t/how-do-you-change-a-structure-boolean-from-false-to-true-using-blueprint/1525001/1 "2023-12-14T12:33:19Z")

</div>

I’m experimenting with Data Tables and Structures to create a Quest system - I am pretty basic in terms of knowledge of Structures and Data tables so please bare with me!

I have a structure set up with a bunch of different Booleans as well as other data, and one of the Booleans is _Quest Given_ that is set to false so that the same quest wont be given multiple times.

When you interact with the NPC, i want to change the _Quest Given_ Bool to true instead of false within the NPC’s blueprint or Player Character’s blueprint but I cannot for the life of me figure out how to do that.

The Boolean is editable on the structure so if anyone can help me with this I’d appreciate it!

 ![QuestStruct](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/2/a/f2a7c8a6838f362064c6a0d3565791971b5a21d4.png)

 ![ChangeBool](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/3/3/f330749fe17c38282adbf9bbf9ca0387b61c2be3.png)

This is the blueprint where I want to change the Boolean to true from false after it checks on the Branch Node.

---

<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:** [December 14, 2023, 12:42pm UTC](https://forums.unrealengine.com/t/how-do-you-change-a-structure-boolean-from-false-to-true-using-blueprint/1525001/2 "2023-12-14T12:42:00Z")

</div>

You say:

> within the NPC’s blueprint or Player Character’s blueprint

But to me it seems that you want to update the content of the Data Table - but they are read only.

* * *

DTs are supposed to be static. Move the content to a [Map](https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Blueprints/BP_HowTo/WorkingWithMaps/) - it’s the same as a Data Table but without the fancy interface. In short:

- somewhere in a framework class, move the data to a Map:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/7/0/1/70152aa5dbc5f134c44bec7f1edee7621f223ff8.png)

This variable is now your editable data.

- to update any member of the map’s struct, expose it like so (if you do not, it remains unchanged), update the value, push it back in:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/a/8/1a86c7e349b4b606a08459592140a9ded9f679b1.png)

You no longer need / use the DT at this point. It was just a source of **default** data. Imagine what would happen if you modified the actual data table and then restarted the game. The player would have all the quest already completed.

* * *

You, ofc, do not need to move the _entire_ DT into the map in one go. You can fetch a single quest struct and add it to the player’s map variable only when needed - when they receive a call to adventure or something…
