Mythruna
May 19, 2024, 11:24:57 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome to the new forums. See "Announcements" for a note for new users.
 
  Home Help Search Login Register  
  Show Posts
Pages: [1]
1  Development / Blog / Re: Random town names... on: September 08, 2012, 10:01:32 AM
I actually just started working on the world generation for my project, getting it to 'reproduce' doesn't seem that hard to me. Maybe I'm just being dumb.

What I've done is simply lay out two huge arrays. One dedicated to 'prefixes' and the other to 'suffixes'. I have it so that this function takes in two arguments one for the prefix and the other for the suffix. I'm really terrible at explaining things so I'll just give you an example.

Let's say this is how we have our arrays setup,

Prefix[1] = Apples!
Prefix[2] = Bananas!
Prefix[3] = Watermelon!

Suffix [1] = Cats!
Suffix [2] = Dogs!
Suffix [3] = Birds!

Let's say this is called,
TownGen::GenTown(1,1)
Then the 'name' would be Apples Cats,

If TownGen::GenTown() is called then a seed would be then randomly assigned.


Sorry for my terrible explanation, I'm running on 2 hours of sleep. I hope it's enough for you to understand.

2  Development / Blog / Re: Random town names... on: September 01, 2012, 08:19:33 PM
Hah, that's actually how I plan to have 'random' town names for my game...
3  General Category / General Discussion / Re: I'm starting my own game. on: May 31, 2012, 09:48:44 PM
I was under the impression that C++ was a 'fast' language. I most likely miss interpreted what the article said. I currently only really know C++  and .net so that's why I'm going with the 'long' route. Thanks for the advice and tips.
4  General Category / General Discussion / I'm attempting to create my own game. on: May 31, 2012, 06:08:36 PM
Hey there,

First off, this thread is more so directed at any coders on here, if you don't know programming I would still love your opinion of the project so far.

I'm a big fan of the game. Paul and his rapid progress has inspired me to start working on a game of my own. I know he's currently working on an AI system so I suppose this would be a 'good' time to ask, for my game I plan to have a fake emotional system. This is more or less how it will work. When the new game function is called it will randomly generate several towns with randomised NPC's inside. For example the first play through there might be a town called TownOne with only one house, inside that house lives Bill Morgan. The second time through that village might have five houses and 16 people (family members and what not). Each NPC will be assigned a 'emotion' value (by default 0). When YOU or another NPC do something harmful towards that NPC his emotion will go down (-x) any vise versa, If you are nice to them they will become happy (+x). If a NPC is really depressed they will have a (small) chance to become evil an or commit suicide (dark I know Cheesy ) and again vise versa. If an NPC is really happy they will do good deeds. When a bad deed is committed the town's value will drop (all houses will lose value) and... you guessed it vise versa. How do I plan to do all this? A clock loop.

This loop will simply count to 10 (minutes) and then call a 'npc action' function that will go through every NPC in the game, check their emotion (if its below -30 have a 1/100 chance of suicide and a 1/50 chance to become evil (I need to stop saying vise versa...)) Once the suicides +/ morality changes have occurred it will go through all of the NPC's again and have a 1/200 chance of interacting with the world. For example good NPC's will have a 1/200 chance to do a good dead (donate to charity, help the homeless, clean up the town, etc) and a bad NPC will have a 1/200 chance to do a bad deed, (murder, fire, theft, etc).

What do you guys think? Do you see any logic errors in my concept? I am coding the game in C++ so hopefully lag won't be an issue.

Also on a side note to Paul, is simplistica (or what ever your company is called  Grin ) a official registered company? I was just curious because if I do attempt to make a profit off of my game when/if its finished I would not like to get sued by the government's tax department.
 

The sand > Water transition is terrible I know

I would love anyones option as to the looks of the game currently.

Thanks
Jacob
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.20 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!