# Virtual Pet

**URL:** <https://forum.kirupa.com/t/virtual-pet/97089>\
**Category:** Uncategorized\
**Created:** [December 17, 2003, 4:47pm UTC](https://forum.kirupa.com/t/virtual-pet/97089 "2003-12-17T16:47:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dazedlam](https://avatars.discourse-cdn.com/v4/letter/d/8dc957/32.png) [@dazedlam](https://forum.kirupa.com/u/dazedlam)\
**Post date:** [December 17, 2003, 4:47pm UTC](https://forum.kirupa.com/t/virtual-pet/97089/1 "2003-12-17T16:47:12Z")

</div>

Hi all, I need some help with some action scripting, I want to create a Flash version of a Virtual pet.

I need to generate a level of health , hunger , boredom but im not to sure how about in implementing this.

I’m thinking of using the “maths.random” function to generate a random level of each but im not to sure if this is the best way of doing it (and how to use it)

Would it be better if I just set a value for each and then decrement X amount every so often?

Or am I looking at this the wrong way?

Thanks

Any advice would be cool
