Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
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
4 registered members (AemStones, AndrewAMD, gamers, Kingware), 1,679 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19054 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Ally #261616
04/18/09 21:03
04/18/09 21:03
Joined: Mar 2009
Posts: 32
D
Dante101 Offline OP
Banned / Warez
Dante101  Offline OP
Banned / Warez
D

Joined: Mar 2009
Posts: 32
i need an ally in my game...how exactly(with detail) would i go about that, coding wise...


wanting to make education friends smile
Re: Ally [Re: Dante101] #261634
04/19/09 01:25
04/19/09 01:25
Joined: Jun 2008
Posts: 428
Rasch Offline
Senior Member
Rasch  Offline
Senior Member

Joined: Jun 2008
Posts: 428
what is an ally?

Re: Ally [Re: Rasch] #261648
04/19/09 08:03
04/19/09 08:03

M
mercuryus
Unregistered
mercuryus
Unregistered
M



to ally[en] = sich verbünden[de]

Re: Ally [Re: ] #261652
04/19/09 09:15
04/19/09 09:15
Joined: Jun 2008
Posts: 428
Rasch Offline
Senior Member
Rasch  Offline
Senior Member

Joined: Jun 2008
Posts: 428
oO
Dann ist die Frage ein wenig komisch gestellt..

What do you want exactly?

Re: Ally [Re: Rasch] #261677
04/19/09 12:01
04/19/09 12:01
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
He wants an AI bot that doesn't fight against the player but against the player's enemies. A friendly bot.


Well, I'm not really good at ally AI but I think you have to code an AI bot (look up the several tutorials in the AUM or somewhere else). Then, where you tell him to attack the player, just tell him to attack all entities who are not in his team. A little more detailed:
You have just one action, for both the ally and the enemy. In this ation, you have a decision making function. Normally, somewhere in this function you say "if player is in sight, attack him". Now you say him "if entity with skill x != my skill x in sight, attack it".
So you have a skill defined that stores the team and that you set to different values.
It's very hard to explain this in english, it's not my first language.
Maybe some of the more experienced coders that are good at AI coding can explain it better. (I'd know some but I don't want to push them ;))

Re: Ally [Re: the_clown] #261736
04/19/09 20:11
04/19/09 20:11
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
that actually sounds like it could work. i think i will give it a try. i never thought about something so simple as that concept.i guess including a type of function that would make the "ally" entity follow you until he had an enemy in his sights, and then afterwards, start following you again, would make for a pretty cool ally a.i. good luck, guys.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: Ally [Re: Blink] #261822
04/20/09 12:57
04/20/09 12:57
Joined: Jan 2006
Posts: 2,157
Connecticut, USA
Blink Offline

Expert
Blink  Offline

Expert

Joined: Jan 2006
Posts: 2,157
Connecticut, USA
ok, so not as easy as i thought, lol. i still cant figure out how to get the entity to attack someone other than me, and he walks up to me, and stops me, instead of following.


My Famous Quotes: "Hip hop is like a virus, infecting everyone and everything around it. Every form of media has some way,shape or form, assimilated hip hop into it." It has also mutated into other strains like, trip hop, house, rap, gangster, and conscious forms. Once you are infected with it, its with you for life."
Re: Ally [Re: Blink] #261906
04/20/09 23:26
04/20/09 23:26
Joined: Mar 2009
Posts: 32
D
Dante101 Offline OP
Banned / Warez
Dante101  Offline OP
Banned / Warez
D

Joined: Mar 2009
Posts: 32
lol thanx u guys...i will try what you guys have suggested ;-)


wanting to make education friends smile
Re: Ally [Re: Dante101] #261926
04/21/09 04:42
04/21/09 04:42
Joined: Apr 2006
Posts: 624
DEEP 13
badapple Offline
User
badapple  Offline
User

Joined: Apr 2006
Posts: 624
DEEP 13
i created a small demo that lets you choose between two armies "red and blue" and then they battle eternaly, of course they can be killed , then new ones are created. depending on the team you choose - red or blue - you can create that color player and join in the battle , or just watch as your allies and your enemies duke it out forever

hopefully this will help you a bit

get it here

Last edited by badapple; 04/21/09 05:45.
Re: Ally [Re: badapple] #262015
04/21/09 15:28
04/21/09 15:28
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Nice one, badapple! This is really impressive, you could make a whole game out of it... Well, probably not, but it is nice!
And I think it will help clearing the, in my opinion, hardest part, namely a way to let the enemy decide which of HIS enemies to attack.

Page 1 of 2 1 2

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