Results 1 to 15 of 3955

Thread: The Gare and Elin Translate It Out: keikaku means plan

Threaded View

  1. #9
    Join Date
    Aug 2008
    Location
    DFW
    Posts
    2,546
    Thanks
    7
    Thanked 102 Times in 33 Posts
    EP Points
    5

    Default

    Quote Originally Posted by Raype View Post
    That's not what it means when it comes to game design though. If the enemies are told "go here, do this", that's script. If they're told "FIND COVER AND KILL THIS GUY" and do the rest themselves that's code. And no, today's AI doesn't have to be told that. At all. This hasn't been necessary for a while and with the class setup of modern uber eloquent devkits it's easy as hell to pull off, which is why it's not that uncommon. If you have to manually tell every character what to do, you're making way more work for yourself than you have to as a programmer. Calling it "random AI" is an absolute misnomer and not even how that works. It runs an AI routine that relies on random number based class selection combined with analysis of the battlefield and some other such nonsense which yields an enemy that gives the illusion of thought because it's intelligently unpredictable and reacts to parameters in unique and different ways each time. As opposed to "run right" or "walk towards player". Which is the whole basis of artificial intelligence. And, yes, a more random AI is, by it's very nature, a better AI. Because intelligence demands randomness. If you can predict the outcome without forcing it, it's not an AI, technically speaking.
    I wouldn't really say that a more random AI is better. As you mentioned, the reason for randomness in AI is to avoid taking the same path repeatedly. There should always been an underlying logic, though. It may not make sense to you, but it'll be logic. Generally an AI scheme will look at the possible choices (i.e. move to this cover, move to that cover, stay here and shoot, etc.) and assign to each a point value relating to what it considers its goal. For example, move to cover A has a score of +10 because that's the average of all the leaf nodes for the game tree from that point. Stay here and shoot has a score of -5, still using the average, because it has a score of -100 on a directly connected leaf (i.e. the NPC dies), and a lot of low scores on the leaves farther down the tree.

    A lot of AI schemes will always follow what it considers the optimal path at any given point. In other words, taking the one with the highest potential victory score. Some will follow path A with probability p1, B with probability p2, etc. with pi summing to 1. Usually, highest scoring path will have the highest probability.

    And then you have stuff like the FF7 AI, which has a very simple set of rules it follows. It's really just a big nested if-else. You can look at it on FFWiki.

    Gezegond, the scripting you're talking about is coding. Don't argue semantics. The scripting Ray is talking about is more like scripting a play. If you're going to say that in-engine scripts aren't code, then C++ isn't code either. C++ is just shorthand (a script, if you will) for assembly code. Which is, in turn, just a translation of machine code. Therefore, it's only code if it's in machine language. Have fun with that.
    Last edited by Colamisu; 21st-June-2013 at 08:14.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About Us

We are the oldest retro gaming forum on the internet. The goal of our community is the complete preservation of all retro video games. Started in 2001 as EmuParadise Forums, our community has grown over the past 18 years into one of the biggest gaming platforms on the internet.

Social