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?
Adding NPC Villages
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: Adding NPC Villages
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?
What do they get out of training?
Fight Cycle : My latest Browser game WIP
Driftwurld : My Browser Game WIP
Philosopher Gamer : My Blog
Driftwurld : My Browser Game WIP
Philosopher Gamer : My Blog
- Jackolantern
- Posts: 10891
- Joined: Wed Jul 01, 2009 11:00 pm
Re: Adding NPC Villages
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?
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
- vitinho444
- Posts: 2819
- Joined: Mon Mar 21, 2011 4:54 pm
Re: Adding NPC Villages
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
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