Change the variable according to the project and it works without error other than generating the 0s. I've tried copying the error character, who has control variable and a text showing the variable, to the old project. The new test project has only the namedgenerator plugin while old project has over 200, so not sure what old project prevents it from crashing. It crashes either as dialogue or as item. In the new test project, it often shows TypeError cannot read property 'charAt' of underdefined when generating the variable while old project works normally (other than generating 0). Here is the error, it seems to have a chance to generate more 0 (or rather, an invalid variable) after the first one, which crash the new project. Putting a line behind the common event like \V is your new name will always have a lagged name that was the "last name" though. There are over 1400 name generators, as well as many description generators, guides and various tools you might find helpful. The first time will change the character name to 0, second time would generate regularly, so make a common event on auto somewhere prior to getting the items would fix the first 0. b.setName($gameVariables.value(15, true))Ĭommon event (Control variable 15 > set > script > SelectRandomName("malenames")) I've solved the question I had, also seem to found an error. Please link back to this plugin when sharing. You may use this in whatever commercial fashion you wish freely, I just ask that you credit me. I personally created this as a part of a dynamic NPC creation project I'm working on, where I'm using this script to set a game variable storing the NPCs name to a random name. From Old French Olivier, possibly derived from a Germanic name, perhaps Old Norse Áleifr (see Olaf) or Frankish Alawar (see Álvaro). Use this to display random content, or set variables to be random names. A simple script call to get a random name out of a txt file. This is better than the game's default random number feature as you can set it to game variables. You may also use RandomNumber(min,max) to pull a random number. For exampple SelectRandomName("maleNames").Ĥ. Simply call the script SelectRandomName(fileName) where fileName is a string of the filename in the data folder. You can google things like "male names txt" for a bunch of these, or create your own, and place the file in your /data/ folder.ģ. Find or create a txt file with one name on every line. It also features a very simple random number generation script.Ģ. This script pulls in random names from one or more text files to be used however you want it in your game.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |