Custom CVARs that aren't IWAD-dependent

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
Jekyll Grim Payne
Posts: 1079
Joined: Mon Jul 21, 2008 4:08 am
Preferred Pronouns: He/Him
Graphics Processor: nVidia (Modern GZDoom)

Custom CVARs that aren't IWAD-dependent

Post by Jekyll Grim Payne »

Is it possible to create custom CVARs that aren't IWAD dependent, so that their values are saved regardless of the chosen IWAD? In my HUD mod I have a bunch of CVARs that have no relation to the game and have no reason to be stored per IWAD. What's more, it also uses a JSON preset system, where the user can save their current settings into a named present which is stored in a seprate CVAR. That CVAR also most certainly has no reason to be IWAD-dependent.

Return to “Scripting”