Naming a character within a recruitment system

Hi!


Today I wanted to build a recruitment system in RMMV to make the player recruit random characters to go with him on a quest. (Sort of Darkest Dungeon now that I think of it.)
So I found a script call for conditional branch en changing character names that I think would come in handy:



For the conditional branch the Script Call list gives:


if (code) { stuff } else { stuff }


and for changing a char's name:


$gameActors.actor(actorId).setName(n)


So now what I first tried to do was creating a variable that I set to a random number from 1 to 10 which, with the combination of these scripts, could lead to giving a character different names. I tried doing that for a bit and the syntax errors kept coming which isn't too strange; since I've got no idea of what I'm doing. 



Secondly I wanted to find a way to make characters there stats a bit random, which I could do with the parameter settings, but yet again I wouldn't know how to use the script call to manage that one...


Is there anyone that could make a really basic design of what it should look like or that could tell me how i should fill in the script calls so that I can go on with it?


Thanks in advance!  🙂

Original thread: https://forums.rpgmakerweb.com/threads/naming-a-character-within-a-recruitment-system.57758/