Sorry about the ambiguous title, but here's the issue:
I want to give the player a nickname based on the first letters of the name they input, so if they type "Emmet" they'd get the nickname "Em" or if they typed "Gunther" they'd get "Gu".
What I've got is
And I've seen things online to indicate that that should work, provided that it is a string (I'm not certain of that but I thought it'd probably be). However, it gives a NoMethodError message because "undefined method '+' for nil:NilClass". Ideas?
Edit: fixed a typo
I want to give the player a nickname based on the first letters of the name they input, so if they type "Emmet" they'd get the nickname "Em" or if they typed "Gunther" they'd get "Gu".
What I've got is
Code:
$game_actors[1].nickname = $game_actors[1].name[0] + $game_actors[1].name[1]
Edit: fixed a typo