ZScript analog for Category & Title

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Daryn
Posts: 113
Joined: Wed Jan 23, 2019 10:22 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11 Professional X64
Graphics Processor: nVidia with Vulkan support

ZScript analog for Category & Title

Post by Daryn »

I've been digging around all day and not finding much on this, so I thought I'd ask here.

Is there a ZScript analog to the DECORATE //$Category and //$Title flags to get GZDoom Builder to put my actors into categories and gve them friendly names?

DoomEdNums definition in MAPINFO doesn't seem to have any mention of this, either.

Thanks.
User avatar
Cherno
Posts: 1311
Joined: Tue Dec 06, 2016 11:25 am

Re: ZScript analog for Category & Title

Post by Cherno »

It's possible that you need to use the GZDoomBuilder bugfix 2.3.0 fork that's somewhere on this forum. The base version has trouble supporting zScript.
User avatar
Daryn
Posts: 113
Joined: Wed Jan 23, 2019 10:22 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11 Professional X64
Graphics Processor: nVidia with Vulkan support

Re: ZScript analog for Category & Title

Post by Daryn »

That is the version I'm using. The build from the 19th of January.
User avatar
Cherno
Posts: 1311
Joined: Tue Dec 06, 2016 11:25 am

Re: ZScript analog for Category & Title

Post by Cherno »

Then it should work. Make sure the Category and Title comments are inside an actor's Default{} block.
User avatar
Daryn
Posts: 113
Joined: Wed Jan 23, 2019 10:22 am
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 11 Professional X64
Graphics Processor: nVidia with Vulkan support

Re: ZScript analog for Category & Title

Post by Daryn »

Yup, that sorted it. I'd mistakenly put them outside of the Default, but inside the Actor definition. Derp.
User avatar
Cherno
Posts: 1311
Joined: Tue Dec 06, 2016 11:25 am

Re: ZScript analog for Category & Title

Post by Cherno »

I think I made that mistake too when first using it with zScript :) It's one of those cases where you check your code and can't find any faults with it no matter how hard you look.
Post Reply

Return to “Scripting”