Simple question regarding scripts


(Flippy) #1

Hey,

Just a simple question here…

Is it OK to use uppercase characters in an ET script?
Obviously I mean in scriptnames, targetnames, triggers etc, I know it’s ok to use them in comments or wm_announce texts…

Was just wondering this, as I never see any uppercase characters in scripts… I was thinking to add a feature to ETScript that will automatically convert keystrokes to lowercase if you’re not typing a comment or wm_announce text for example…


(-SSF-Sage) #2

Having “Noise” key in speaker will cause problems. Making it “noise” will remove the problems. If it has uppercase in this case it says target_speaker without noise key at …


(Flippy) #3

Ok, so I guess key names should always be lowercase only…

And what about the value of certain keys? scriptnames/targetnames etc?

what about using uppercase in certain keywords such as “Wm_Announce”, “Spawn”, “Trigger” or “Wm_Allied_respawntime”…?


(-SSF-Sage) #4

I dunno but why don’t you just test it yourself? : ) I’ve understood it matters.


(Flippy) #5

I could test it myself ofcourse but there are too many things that could go wrong when using uppercase… It might be very obvious that it doesn’t work, but I assume it won’t be such a big deal at all.
I am asking here because I know there are a few pros out here who will most likely now exactly why you could or should not use uppercase in scripts…