Also, Graf, I'm looking forward to the merge.

Moderator: GZDoom Developers
Code: Select all
if (bloodcolor == "Red")
Code: Select all
if (CompareColor(bloodcolor,"Red"))
Major Cooke wrote:True, but at the time it was made, BlockThingsIterator didn't exist. It was made at least like... a fw weeks to a month before it came into existence.
But I need more information on how BlockThingsIterator works first before I can use it. What I cannot tell is, is there an internal range or do we need to perform the range ourselves?
Careful. Bloodcolor has a palette index mixed in, it's not directly comparable, you'd have to do 'if(bloodcolor & 0xffffff) == color("Red")) to mask that out.Major Cooke wrote:Another quick question, is it possible to compare colors?Code: Select all
if (bloodcolor == "Red")
If not, could there be a function which allows comparing?Code: Select all
if (CompareColor(bloodcolor,"Red"))
Hmm, perhaps a dedicated function inside Actor.txt might be best so people can actually do that.Graf Zahl wrote:Careful. Bloodcolor has a palette index mixed in, it's not directly comparable, you'd have to do 'if(bloodcolor & 0xffffff) == color("Red")) to mask that out.
All of them could use this.Graf Zahl wrote:Right now it does not do an internal range check, but that should be added for performance reason because every return that can be discarded on the native side is a win.
It won't be the last. This is merely the first part of ZScript to come. Graf's going to continue developing ZScript on the separated branch, from the looks of it.Eruanna wrote:I've gone ahead and started the build for what might be the last GZZScript build then.
Please NO.Graf Zahl wrote:I also think we can now declare most of what is there final with no more need to change. This also means, once a decision is made, nothing in there can be changed anymore.
Like what?Leonard2 wrote:I think MANY things about the language should be seriously discussed