Sign in to follow this  
DukeTwitch

Simple AI in QBASIC

Recommended Posts

DukeTwitch    122
I'm trying to write a game is QBASIC(for retrospective purposes) and I have never written any kind of AI. What it needs to do is select to either defend, attack, or use magic. I would copy the code here, but it's on my other box. So basically, I'm asking if someone could either give me psuedocode or give me some ideas about the aforementioned ordeal. Thanks in advance.

Share this post


Link to post
Share on other sites
dgatewood    122
If you want something very simple, you could easily do a lot of if then statements, such as

if health < 20
defend

and so forth.... for something like a text RPG, you dont need a complicated AI

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this