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?
[Resolved] [decorate] concatenation?
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!)
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!)
-
- Posts: 41
- Joined: Wed Apr 10, 2024 4:53 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
[Resolved] [decorate] concatenation?
Last edited by violgamba on Thu Jun 20, 2024 11:19 am, edited 1 time in total.
-
- Global Moderator
- Posts: 1117
- Joined: Mon Jul 21, 2008 4:08 am
- Preferred Pronouns: He/Him
- Graphics Processor: nVidia (Modern GZDoom)
Re: [decorate] concatenation?
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.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?
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.
-
- Posts: 41
- Joined: Wed Apr 10, 2024 4:53 pm
- Preferred Pronouns: He/Him
- Operating System Version (Optional): Windows 10
Re: [decorate] concatenation?
Whoops, you're right. I let my Zandronum testing lax there during this latest feature dev.