Set string CVar
Moderator: GZDoom Developers
Set string CVar
The latest mod-friendly CVar additions are awesome (thanks Randi!) but I was wondering if we could have an ACS function that sets the string of a CVar, since it's possible to define a string CVar in CVARINFO? :3
Re: Set string CVar
Yay thanks! <3
Re: Set string CVar
Is r4295 also of interest to you?
Re: Set string CVar
YES YES YES YES :DDDDDDDDDDDDD
It's a pretty huge change though so further testing is needed... but it's for the best and I'm sure modders will really welcome this change. If I run into anything I'll report it ASAP!
It's a pretty huge change though so further testing is needed... but it's for the best and I'm sure modders will really welcome this change. If I run into anything I'll report it ASAP!
Spoiler:
- Ed the Bat
- Posts: 3060
- Joined: Thu May 03, 2012 1:18 pm
- Graphics Processor: nVidia with Vulkan support
- Location: Maryland, US
- Contact:
Re: Set string CVar
Does this mean Get functions for more string-based properties will be on the horizon? That would be cause for celebration in my book. 
Re: Set string CVar
Maybe?
Re: Set string CVar
Dynamic strings? Really? REALLY? 
This is unexpected but awesome. I'm trying to think of what could possibly be done with it, and I suppose I should forum-search "dynamic strings" to take a look at what they've been desired for. What other new things could they theoretically be used for?
This is unexpected but awesome. I'm trying to think of what could possibly be done with it, and I suppose I should forum-search "dynamic strings" to take a look at what they've been desired for. What other new things could they theoretically be used for?
Re: Set string CVar
I guess http://zdoom.org/wiki/CheckActorProperty should be considered deprecated from now on... ?
- Graf Zahl
- Lead GZDoom+Raze Developer

- Posts: 49252
- Joined: Sat Jul 19, 2003 10:19 am
- Location: Germany
Re: Set string CVar
Why? For actually checking a string value it's still a lot better than the Get* method.
Re: Set string CVar
To expand on that answer, GetActorProperty has to first check if a string exists in the string table and add it if it doesn't before you even get a chance to compare it against something else. CheckActorProperty can just compare them directly without any of that extra work.