Is there a scriptcall to capitalize the first letter of each word in a string?

Status
Not open for further replies.

Emily Frost

Villager
Member
Joined
May 15, 2013
Messages
8
Reaction score
1
First Language
English
Primarily Uses
I know if I have "this is a sentance" as variable 9 and I use variable[9].capitalize it will appear as "This is a sentance"

but I want it to appear as "This Is A Sentance"

Thank you in advance.
 

Skunk

Melody Master
Veteran
Joined
Mar 2, 2013
Messages
1,069
Reaction score
398
First Language
English/Slavic
Primarily Uses
RMMV
Why don't you rename the variable to appear with the capital letters?
 

Jonforum

Veteran
Veteran
Joined
Mar 28, 2016
Messages
1,623
Reaction score
1,439
First Language
French
Primarily Uses
RMMV
PHP:
$game_variables[9] = String($game_variables[9]).toUpperCase();
// or
var self = $game_variables[9];
self = String(self).toUpperCase();
oups your are with ruby sorry, have not see !
 
Last edited:

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
22,299
Reaction score
11,712
First Language
English
Primarily Uses
RMVXA
For your future threads, when you want it closed please Report your opening post and ask for it to be closed. Mods may not see your post but will see your report.
[closed]IgnoreMe[/closed]
 
Status
Not open for further replies.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top