Jump to content

  • Log In with Google      Sign In   
  • Create Account

FREE SOFTWARE GIVEAWAY

We have 4 x Pro Licences (valued at $59 each) for 2d modular animation software Spriter to give away in this Thursday's GDNet Direct email newsletter.


Read more in this forum topic or make sure you're signed up (from the right-hand sidebar on the homepage) and read Thursday's newsletter to get in the running!


Simoxeh

Member Since 16 Apr 2012
Offline Last Active Apr 18 2012 11:00 AM

Topics I've Started

VB.Net NPC Problem

16 April 2012 - 01:25 PM

New to writing games and i really want to do this one. I'm creating a shop owner game. The NPCs are the shoppers. I'm having logic issues. I'm tryig to have each shopper be a particular type with each type buying only certain items. I want them to have a to be random in type and list. I only want logic help to point me in the right direction. please don't post code but controls or classes i might need would be great. Below are examples. Thanks


Customer type: old woman
buys: veggies, medicine, books
list 1: apples, carrots, stomach medicine
list 2: stomach medicine, potatoes


curent logic
pick customer type
pick list
goto item location
get item
pay for item
leave store

PARTNERS