DRL > Requests For Features

Longer character name field for manly marine names!

<< < (2/4) > >>

Thexare:

--- Quote from: Electronic Samurai on September 15, 2012, 16:39 ---As it happens, the full list of names used in the episode are available online!  Here they are:

--- End quote ---

Wait, then where'd I pick up Bulk van der Huge?

Klear:

--- Quote from: Napsterbater on September 15, 2012, 11:39 ---You wouldn't want to end up with "Jack Runguts", just doesn't have the same ring.
--- End quote ---

I imagined someone who runs zombies through the guts with a chainsaw... actually pretty badass.

So anyway, we can set default name in the config file, this would need that we are able to set several default names chosen at random.
(hmm... I could switch between Ash Williams and Bruce Campbell)

Kornel Kisielewicz:
I forget about that feature all the time, but the default name config setting was meant to allow a function O.o.

EDIT: you can probably hack that in already -- the config file is reloaded after every game, so a function could set the default name to a different one on each reload.

thelaptop:

--- Quote from: Kornel Kisielewicz on September 16, 2012, 09:00 ---EDIT: you can probably hack that in already -- the config file is reloaded after every game, so a function could set the default name to a different one on each reload.

--- End quote ---
Ech.  Not the answer I'm expecting.  >.<

We need to really steer a little more away from having folks programmatically change things to up the UX.

Napsterbater:
I started to try to make a generator in Lua, so it could maybe be worked into the game using a function, but I'm finding out I really don't like the way Lua does things. I guess I'm spoiled by Ruby, but Lua seems to do things in strange and non-intuitive ways.

I set up three tables, one for first names, one for the first part of the last name, and the last one for names that could go anywhere. The idea being the code will join the first name and the anywhere name table and pick one randomly for the first name. Then it will join the "first part of the last name" table, and the anywhere name table to pick the first part of the last name. Then it will just use the other name table to pick the second part of the last name. Then it will add a "Mc" to the name 10% of the time, put it together, capitalize the first letters of the two names, and return a string. Simple, right?

But Lua doesn't allow me to really join two tables temporarily. If I make a function to do that, it joins them permanently, I either have to undo the join manually, copy the two tables into a new table, or some other weirdness. If I wanted to be this careful with my data, I'd be using C. All functions tend to modify in place, I don't understand why Wikipedia says it can be used functionally, just because a language has first class functions doesn't mean it's functional. Everything seems to have side effects in Lua. I can see how it would be a giant pain in the butt to manage them if you were to ever start seriously coding in Lua. No thanks.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version