Jump to content
  • Advertisement
Sign in to follow this  
DukeTwitch

Simple AI in QBASIC

This topic is 4873 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!