Advertisement

Simple AI in QBASIC

Started by February 13, 2005 08:37 PM
0 comments, last by dgatewood 20 years ago
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.
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

This topic is closed to new replies.

Advertisement