[Resolved] [decorate] concatenation?

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!)
violgamba
Posts: 41
Joined: Wed Apr 10, 2024 4:53 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10

[Resolved] [decorate] concatenation?

Post by violgamba »

I'm trying to make a Zandronum compatible mod. It's an experiment to see if the functionality I need to script can be accomplished in the multiplayer environment Zandronum provides. One problem I've hit is that I need to concatenate within decorate (i.e. within an anonymous function). I can't find any reference for how to do this. Is it possible?

EDIT: More specifically, is it possible to concatenate an integer to a string?
Last edited by violgamba on Thu Jun 20, 2024 11:19 am, edited 1 time in total.
User avatar
Jekyll Grim Payne
Global Moderator
Posts: 1117
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)

Re: [decorate] concatenation?

Post by Jekyll Grim Payne »

violgamba wrote: Thu Jun 20, 2024 5:56 am I'm trying to make a Zandronum compatible mod. It's an experiment to see if the functionality I need to script can be accomplished in the multiplayer environment Zandronum provides. One problem I've hit is that I need to concatenate within decorate (i.e. within an anonymous function). I can't find any reference for how to do this. Is it possible?

EDIT: More specifically, is it possible to concatenate an integer to a string?
Zandronum's Decorate does NOT support anonymous functions. It uses a much older version of Decorate than GZDoom. As such, all scripting capabilities of Zandronum's Decorate are limited to Decorate functions and expressions. AFAIK there's no way to perform any kind of string formatting in it.

If you're making something for Zandronum, make sure you're actually testing on Zandornum, because the way it works in GZDoom will not be representative of the way it works in Zandronum.
violgamba
Posts: 41
Joined: Wed Apr 10, 2024 4:53 pm
Preferred Pronouns: He/Him
Operating System Version (Optional): Windows 10

Re: [decorate] concatenation?

Post by violgamba »

Whoops, you're right. I let my Zandronum testing lax there during this latest feature dev.

Return to “Scripting”