# npcPlayerClass need an example

**URL:** <https://forum.kirupa.com/t/npcplayerclass-need-an-example/257199>\
**Category:** programming\
**Created:** [April 11, 2008, 3:42am UTC](https://forum.kirupa.com/t/npcplayerclass-need-an-example/257199 "2008-04-11T03:42:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![koolkrasher](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@koolkrasher](https://forum.kirupa.com/u/koolkrasher)\
**Post date:** [April 11, 2008, 3:42am UTC](https://forum.kirupa.com/t/npcplayerclass-need-an-example/257199/1 "2008-04-11T03:42:44Z")

</div>

my friend and i are going to makek a rail rpg and i want to do everything right. I figure create a class file for the base chars and npc’s would be the correct way to go about it. especially for npc’s since all i would have to do to create a new npc would make a new instance of the npc class. Im still new to setting up my own custom class’s does anyone have an example class i could look at to point me in the rite direction?
