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(){} }
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
Platform(s)
PC