Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Marina
20
Years of Service
User Offline
Joined: 21st Mar 2004
Location: Kentucky
Posted: 17th Apr 2004 09:29
I am designing several characters to work as independants in my program. Anybody got any thoughts on how to give them a random touch to eat and sleep and chat with other characters randomly.

Marina

My Marina
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 17th Apr 2004 13:59
Van B is the man to ask, he did it in Operation Invasion Evasion.

BatVink
http://facepaint.me.uk/catalog/default.php
AMD 3000+ Barton, 512K Ram, 120 Gig Drive space, GeForce 5200 FX 128 Mb, Asus A7N8X Mobo.
medwayman
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: uk
Posted: 17th Apr 2004 14:57 Edited at: 17th Apr 2004 15:23
You can use random numbers to determine a percentage chance of something happening.

Whenever the character thinks about going to bed…
There’s a 10% chance the character will sleep between 9 and 10 o’clock.
A 30% chance he will sleep between 10 and 11 o’clock
A 50% chance he will sleep between 11and 12 o’clock
And a 70 % chance he will sleep between 12 and 1 o’clock

You could also vary the amount of times the character thinks about going to bed. He’s more likely to think about sleep at midnight than he is at 9 o’clock. Depending on how realistic you want to be you could factor in various other possibilities - what time did the character go to bed the night before, how healthy is the character, what is his job the next day, etc.

Probably just stating the obvious, but It’s all about storing variables to represent various possibilities then rolling the dice to see what happens.

I’m sure I’ve seen AI tutorials pass though these boards, so you should be able to find some if you do a search.

EDIT:
I'm sure you'll find something here http://www.thegamecreators.com/?m=codebase_list

Based on Amiga PD game Squigs. Early shots: http://www.custardsoft.pwp.blueyonder.co.uk/images/03.png

Login to post a reply

Server time is: 2024-11-26 12:25:22
Your offset time is: 2024-11-26 12:25:22