Jump to content

  • Log In with Google      Sign In   
  • Create Account

Calling all IT Pros from Canada and Australia.. we need your help! Support our site by taking a quick sponsored surveyand win a chance at a $50 Amazon gift card. Click here to get started!


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