Page 1 of 1

Adding NPC Villages

Posted: Fri Sep 07, 2012 1:18 pm
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?

Re: Adding NPC Villages

Posted: Fri Sep 07, 2012 10:28 pm
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?

Re: Adding NPC Villages

Posted: Sat Sep 08, 2012 1:53 am
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? :)

Re: Adding NPC Villages

Posted: Sat Sep 08, 2012 11:47 am
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 ;)