# NPC Character Definition assets fail to validate when using a custom verse behavior with the "event" type referenced

**URL:** <https://forums.unrealengine.com/t/npc-character-definition-assets-fail-to-validate-when-using-a-custom-verse-behavior-with-the-event-type-referenced/1773638>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, bug-report, fortnite\
**Created:** [March 26, 2024, 9:05pm UTC](https://forums.unrealengine.com/t/npc-character-definition-assets-fail-to-validate-when-using-a-custom-verse-behavior-with-the-event-type-referenced/1773638 "2024-03-26T21:05:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DragonRage508](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dragonrage508/32/677485_2.png) [@DragonRage508](https://forums.unrealengine.com/u/DragonRage508)\
**Post date:** [March 26, 2024, 9:05pm UTC](https://forums.unrealengine.com/t/npc-character-definition-assets-fail-to-validate-when-using-a-custom-verse-behavior-with-the-event-type-referenced/1773638/1 "2024-03-26T21:05:18Z")

</div>

### Please select what you are reporting on:

Verse

### What Type of Bug are you experiencing?

Assets

### Summary

If you use a custom verse behavior/class inside a NPC Character Definition asset, and your custom verse class for that behavior has a type “event” ANYWHERE within the class (including inside references to other classes) the NPC Character Definition will FAIL to validate!!!

### Steps to Reproduce

To reproduce this, copy & paste the class below into a verse file, then build verse, and create a NPC Character Definition asset and place this class into the “NPCBehavior Script” slot after setting behavior to be “verse behavior”. Try these steps, then go to the class and remove the event type constant variable. You’ll see it then validates.  
`invalid_npc_behavior<public> := class(npc_behavior){ BasicEvent : event() = event(){} }`

 ![Screenshot 2024-03-26 160611](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/9/0/e90aa47aab69eed72894267550cf0aa22e7829e7.png)

### Expected Result

The expected result is that the NPC Character Definition asset should validate

### Observed Result

The NPC Character Definition fails to validate when it should

 ![Screenshot 2024-03-26 160756](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/0/a/d0a3fdc2155827220cbe42ea53a6da7fb9704b1e.png)

### Platform(s)

PC

---

<div class="post-metadata">

**Author:** ![Bug-Reporter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/bug-reporter/32/1223650_2.png) [@Bug-Reporter](https://forums.unrealengine.com/u/Bug-Reporter)\
**Post date:** [March 26, 2024, 9:17pm UTC](https://forums.unrealengine.com/t/npc-character-definition-assets-fail-to-validate-when-using-a-custom-verse-behavior-with-the-event-type-referenced/1773638/2 "2024-03-26T21:17:34Z")

</div>

The status of FORT-725913 incident has been moved from ‘In Testing’ to ‘Closed’. Resolution Reason: ‘Fixed’

---

<div class="post-metadata">

**Author:** ![BrunoAr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brunoar/32/892014_2.png) [@BrunoAr](https://forums.unrealengine.com/u/BrunoAr)\
**Post date:** [March 27, 2024, 9:42pm UTC](https://forums.unrealengine.com/t/npc-character-definition-assets-fail-to-validate-when-using-a-custom-verse-behavior-with-the-event-type-referenced/1773638/3 "2024-03-27T21:42:12Z")

</div>

I am getting the same error, cannot upload the project because of this validation failing

---

<div class="post-metadata">

**Author:** ![BrunoAr](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/brunoar/32/892014_2.png) [@BrunoAr](https://forums.unrealengine.com/u/BrunoAr)\
**Post date:** [March 27, 2024, 9:47pm UTC](https://forums.unrealengine.com/t/npc-character-definition-assets-fail-to-validate-when-using-a-custom-verse-behavior-with-the-event-type-referenced/1773638/4 "2024-03-27T21:47:15Z")

</div>

this is related to [Broken NPC Spawner - custom verse behevior](https://forums.unrealengine.com/t/broken-npc-spawner-custom-verse-behevior/1773035)

we need someone to shed a light on this… thanks in advance
