Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/20/24 20:05
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (AndrewAMD, TedMar), 1,398 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
2dno AritificiaI Character Team #308700
02/04/10 14:36
02/04/10 14:36
Joined: Sep 2007
Posts: 173
USA, Florida
3dworld Offline OP
Member
3dworld  Offline OP
Member

Joined: Sep 2007
Posts: 173
USA, Florida
Hi friends,

I don't know if any of you have ever play "Clive Barker's Jericho":


If you haven't you should, but any ways I'm sure that you have play other games were you have team that react by itself without the direct interaction of commands given by the player. I mean: shot to the enemies even if you are not shooting, smart enough to protect them self from been shoot and interact with the player if needed.

Well, the thing is I'm trying to develop an script to do that but I have no clue were to start. After several intents the team players still acting like robots and they get stock in the wall and stuff like that.
Please I need your help. If you know were I can find any script that gets close to what I want or if someone has some pre-made script to share.

Thanks in advance.


No matter what people tell you,  words and ideas can change the world.
Re: 2dno AritificiaI Character Team [Re: 3dworld] #308722
02/04/10 16:36
02/04/10 16:36
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
basically you can use search algorithms for that (I'd recommned the a*).
You have a basic set of decisions
for example:
- heal teammate
- attack enemy
- use skills
- move to cover
- whatever

and the you use the a* to decide what to do. a simpler method would be a finite state machine (but you'll still have to use an a* for pathfinding though. )

If you know how to script good a* or state machines it is no problem at all.
You may look into the A* tutorial at the AU-resources.
You may also look into behavior trees
and here is something about navigation meshes (might also be interesting for you)

At first i would recommend to get a working pathfinding code.
You might use intense pf 3.
And then you start building your behavior.
Draw a state graph containing all the actions of you npc with description.
like this:


Then start slowly scripting the actions themselfes.
When you have all this ready 2 go you start with the behavior tree/state machine that decides what the bot is going to do.


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: 2dno AritificiaI Character Team [Re: Puppeteer] #308754
02/04/10 19:30
02/04/10 19:30
Joined: Sep 2007
Posts: 173
USA, Florida
3dworld Offline OP
Member
3dworld  Offline OP
Member

Joined: Sep 2007
Posts: 173
USA, Florida
Great!. That sounds good. I'll going to try that. By the way ... I can use that same solution for enemies also, correct?


No matter what people tell you,  words and ideas can change the world.
Re: 2dno AritificiaI Character Team [Re: 3dworld] #308762
02/04/10 20:10
02/04/10 20:10
Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Puppeteer Offline
Expert
Puppeteer  Offline
Expert

Joined: Jan 2007
Posts: 2,247
Deutsch Niedersachsen
Of course.


Formally known as Omega
Avatar randomness by Quadraxas & Blade
http://omegapuppeteer.mybrute.com
Re: 2dno AritificiaI Character Team [Re: Puppeteer] #308778
02/04/10 22:39
02/04/10 22:39
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
Search forum for something like, companion_ai... I use to use it for creating my hostage ai with simple state machine... You will find very good example of creating simple ai that do not stuck in obstacles... And uses simple pathfinding to follow player... All you will need, is to understand the code, and add just some state machines, as you wish... Good luck, I hope you contribute it... tongue


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: 2dno AritificiaI Character Team [Re: 3run] #308782
02/04/10 23:25
02/04/10 23:25
Joined: Sep 2007
Posts: 173
USA, Florida
3dworld Offline OP
Member
3dworld  Offline OP
Member

Joined: Sep 2007
Posts: 173
USA, Florida
Yea!! so soon as I have something to show I'll post it. Thank you guys.


No matter what people tell you,  words and ideas can change the world.
Re: 2dno AritificiaI Character Team [Re: 3dworld] #308801
02/05/10 07:07
02/05/10 07:07
Joined: May 2009
Posts: 5,370
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,370
Caucasus
You are welcome bro. laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1