How do I set argument names?

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!)
User avatar
DrDoctor
Posts: 132
Joined: Fri Nov 06, 2009 5:04 am

How do I set argument names?

Post by DrDoctor »

I'm wondering if there is any way to name argument numbers for deco-things
For example:
I want argument 1 to be named "Spawn radius" and argument 2 to be named "shape"
If there is a way to name value numbers 0 and 1 in arg 2 to be named "square" and "circle"
Blue Shadow
Posts: 5039
Joined: Sun Nov 14, 2010 12:59 am

Re: How do I set argument names?

Post by Blue Shadow »

Is this for when you set the arguments through GZDoom Builder? Check [wiki=Doom_Builder#DECORATE_keys]here[/wiki]. You'll find this key:

Code: Select all

//$ArgN <name>
It should do what you want.
User avatar
DrDoctor
Posts: 132
Joined: Fri Nov 06, 2009 5:04 am

Re: How do I set argument names?

Post by DrDoctor »

Thx, this also answered my second question

Return to “Scripting”