But that means, with my name-reading array code, it becomes
Upper$(Left$(StrAtXYZ( "Array", index x( "Array" )+1, index y( "Array" ), 0), 1))+Right$(StrAtXYZ( "Array", index x( "Array" )+1, index y( "Array" ), 0), Len(StrAtXYZ( "Array", index x( "Array" )+1, index y( "Array" ), 0))-1)
That's for a single word! Making a text-based game will break the expression editor.
EDIT: It sure screwed up TDC's screen
Edited by an Administrator.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Originally Posted by Adam Phant Can't it just be capitalized in the array?
Well, sometimes I want it put in without caps, like say, with the word "sword" (John was a bad example). It would usually be (You pick up a sword), not (You pick up a Sword), but sometimes I want it to be (Sword breaks!), not (sword breaks!). That's what I need the capitalization thingy for.
It makes a huge difference to presentation
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Um yeah, that's what I meant. First letter of the first word
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Does MMF support the Ucase command? I know with VB you could just put something like Ucase(Left$("NAME",1)) and it'd instantly capitalize it for you. Not sure if MMF does but since VB and MMF share stuff like Mid$, Left$, Right$, Len, etc it might be worth a shot and see if it works Muz.
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
Doesn't work. The upper$ command does work, but it does it for the whole thing, which is nasty.
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Assault Andy Administrator
I make other people create vaporware
Registered 29/07/2002
Points 5686
7th November, 2008 at 02:35:41 -
What you first suggested is probably one of the few ways to do it. However to make it simpler, load the StrAtXYZ into a temp string and then you only have to apply the alterations to that:
Set Tempstring to StrAtXYZ( "Array", 1,1,1)
Set TempLen to Len(Tempstring)
Set NewString to Upper$(Left$(Tempstring, 1))+Right$(Tempstring, TempLen-1)
Hmm.. that is a good idea. It'd be much easier to do in C++ and such, but that's a good way to do it in MMF2. Thanks!
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.