DMFlag-style custom options in MENUDEF?

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
Matt
Posts: 9696
Joined: Sun Jan 04, 2004 5:37 pm
Preferred Pronouns: They/Them
Operating System Version (Optional): Debian Bullseye
Location: Gotham City SAR, Wyld-Lands of the Lotus People, Dominionist PetroConfederacy of Saudi Canadia
Contact:

DMFlag-style custom options in MENUDEF?

Post by Matt »

I'm trying to work out a system of customizing what starts out in a player's interactive backpack.

Instead of spamming cvars with a no. for every possible option I'd like to just stick with binary yes/no answers for each type and rely on a single integer to represent all the settings.

I can get the cvar and its implementation itself to work, but now I'm stuck on creating a menu option for it - I just don't see how that's done anywhere.

Is this even possible? Or are we all assumed to have moved on to proper bool cvars for everything now and I might as well just set up a new int cvar for each possibility?
Post Reply

Return to “Scripting”