Adding NPC Villages

For discussions about game development that does not fit in any of the other topics.
Post Reply
User avatar
vitinho444
Posts: 2819
Joined: Mon Mar 21, 2011 4:54 pm

Adding NPC Villages

Post by vitinho444 »

My Browser based game is at 95% completion and now i want to add some NPC Villages so players can train.

I'm here creating this post just because i have no idea on how i will do this.. should i do manually? Should i do a loop using random values for each village?
What would you guys do?
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
User avatar
Callan S.
Posts: 2042
Joined: Sun Jan 24, 2010 5:43 am

Re: Adding NPC Villages

Post by Callan S. »

At it's most primitive it's simply echo'ing a $_GET link and inside the code, also testing they forfil all the prerequisites.

What do they get out of training?
Fight Cycle : My latest Browser game WIP
Driftwurld : My Browser Game WIP
Philosopher Gamer : My Blog
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Adding NPC Villages

Post by Jackolantern »

How do you want the villages to function? There are literally thousands of ways you could do it, but the best method(s) would largely depend on the gritty details of what you want from it.

Could we get some more details on exactly how you want them to work, and what you already have? :)
The indelible lord of tl;dr
User avatar
vitinho444
Posts: 2819
Joined: Mon Mar 21, 2011 4:54 pm

Re: Adding NPC Villages

Post by vitinho444 »

Sorry for not updating, i think i found a way.

I will do a while loop with the number of villages i want to add as NPC, and add them as random things.
Like, population: rand(0, $points / 10)

Something like that.. I think its enough, thanks for the replies ;)
My Company Website: http://www.oryzhon.com

Skype: vpegas1234
Post Reply

Return to “General Development”