Hi! Welcome to the forum for Platinum Arts Sandbox Free 3D Game Maker. I currently have the forums locked as I am attempting to properly update them.

In the meantime please join the new Discord Server!

If you have any questions please e-mail me through the Platinum Arts website.

AI Coding

Having issues not related to a specific Sandbox game mode? Get help here!
Please also read the rules for support when posting support requests.
Failure to comply with the forum rules may result in your topic being locked without resolution.
Locked
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

AI Coding

Post by Leo_V117 »

Hey Guys.

Just asking whether any of you could:
A: Give me a few Ideas as to what could make good AI
B: Tell me what codes and functions I can use in order to create the AI
C: Give me a list of functions and commands that sandbox recognises in the coding

Anyone who helps will be credited.

I need all this before monday so be quick.

List the ideas for the AI like this:
  • 1: <text here>
    2: <text here>
    3: <text here>
List the Codes and functions like this:
  • 1: <command type(eg ENT_ITEM)> - <command function>
User avatar
Venima
Support Team
Support Team
Posts: 259
Joined: February 17th, 2010, 4:56 am
Name: Tombstone
IRC Username: Venima
Location: Somewhere in the eternal planes between the living and the dead

Re: AI Coding

Post by Venima »

Most AIs work on the basis of several functions:

Objectives - the character needs an aim or objective. Should they try to kill the player? Should they walk up to the player and say hi? What should they do with themselves?

Pathfinding - the character needs to know where they can move and where they can't. Can they jump across an obstacle? Can they not? How close to a wall do they get before they realise they can't go that way? How do they know that they can jump up onto a platform? (And what about moving platforms? Could you get an npc to independently jump across from one to another and back?) If the player is behind a wall, do they know the player is there? What if they're attacking the player and the player goes out of sight? Do they just stop because they can't see the player? Or do they go to the spot where they last saw the player and then continue in a random direction to hunt the player down? Would they jump down into a hole that they can't get out of again?

Actions - the character needs to be able to perform actions other than moving. Do they have weapons? Do they attack? Do they talk to someone? Do they respond to the player? Are they scared of the player? Do they follow the player around? How do they respond if the player is attacking them? Do they dodge spells? And if so, how good are they at it? Is it impossible for anyone to hit them? Are they clumsy? How do they know when they've run out of mana to cast spells? How do they know when they're gonna lose a battle unless they run away?

AI is not something you complete in a week. It is one of the most complex things to do.
Tombstone's Tournament round 2 has begun! Tombstone's Posting Tournament

Try out my: CFG Easy Text Editor (Note: still in beta)

-----Venima
Image
Image
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: AI Coding

Post by arcones »

Try checking out Movie Cube as it has waypoints and that might be helpful.
I'll let you know if I find anything else useful! ;)

EDIT: Alright, here we go! Stuff to do w/ bots

It may not be exactly what you want, but it may help you! :)
Image
Want a user bar like this one? PM Leo!
User avatar
Venima
Support Team
Support Team
Posts: 259
Joined: February 17th, 2010, 4:56 am
Name: Tombstone
IRC Username: Venima
Location: Somewhere in the eternal planes between the living and the dead

Re: AI Coding

Post by Venima »

pretty sure that is no where near enough code to make an NPC with AI...
Tombstone's Tournament round 2 has begun! Tombstone's Posting Tournament

Try out my: CFG Easy Text Editor (Note: still in beta)

-----Venima
Image
Image
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: AI Coding

Post by arcones »

No, not an npc... but just the code itself... for bots... not NPCs...

I think it might also be helpful to go multiplayer as that's the only way to use bots in sandbox at the moment...

and here are the bots: Bots

:P
Image
Want a user bar like this one? PM Leo!
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: AI Coding

Post by Leo_V117 »

Thats the thing you see. Cube is ALMOST like Sandbox. I want the AI to work differently
arcones
Support Team
Support Team
Posts: 2734
Joined: January 13th, 2010, 12:42 pm
Name: Timothy
IRC Username: I use Steam
Location: Looking over your shoulder...
Contact:

Re: AI Coding

Post by arcones »

Why?

It'd be so much easier... :|
Image
Want a user bar like this one? PM Leo!
User avatar
Leo_V117
Support Team
Support Team
Posts: 1640
Joined: February 16th, 2010, 8:00 pm
Name: Leo
IRC Username: Leo_V117
Location: That one place...
Contact:

Re: AI Coding

Post by Leo_V117 »

easy is an option, i would much rather set the coding to be simple and enable the ability for other users to code in their own AI
Locked