Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Newcomers DBPro Corner / enemy with wits

Author
Message
TRIGOTHS
16
Years of Service
User Offline
Joined: 2nd Oct 2008
Location: stuck in cyberspace
Posted: 2nd Oct 2008 15:05
i am making a game similar to trigen48,s game yugioh. i was wondering what codes must i use to make the enemy know what to play and do things That applay to dueling.and after wining or loosing the enemy walks around or stands there.i still a noob to dbp

Tokenb
calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 2nd Oct 2008 17:58
Can you explain what you mean?
It's hard for anyone to understand what you've just written.
If you don't ask a proper question, we can't give you a proper answer.

Quote: "i was wondering what codes must i use to make the enemy know what to play and do things That applay to dueling"


I presume, from what little information you have given me, that you want to make the enemy make decisions whilst following rules.

Decision-making is the basis of AI.
An AI routine can be expressed easily as a flowchart.

Please tell us exactly what you want coding, preferably in a clear, concise way.

The optomist's right, The pessimist's right.
TRIGOTHS
16
Years of Service
User Offline
Joined: 2nd Oct 2008
Location: stuck in cyberspace
Posted: 2nd Oct 2008 22:37
i men,t like using functions ,types and arrays

Tokenb
flashing snall
19
Years of Service
User Offline
Joined: 8th Oct 2005
Location: Boston
Posted: 2nd Oct 2008 23:00
That wasnt really a good add on to your request. Im guessing your talking about A.I.

which is tricky.

Again, you need to tell us how you want the enemies to behave before we can help you.


This is my WIP, not even ready for a WIP thread yet though.http://smallgroupproductions.com/
TRIGEN48
16
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 2nd Oct 2008 23:45 Edited at: 2nd Oct 2008 23:46
i get what he means.he wants to make an enemy that you just walk to and challange him.then the enemy must be able to use is cards wisely like i would and not just play any playable card on his hand
TRIGOTHS
16
Years of Service
User Offline
Joined: 2nd Oct 2008
Location: stuck in cyberspace
Posted: 2nd Oct 2008 23:49
ye sort of.how did u know trigen?

Tokenb
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Oct 2008 01:00
Quote: "how did u know trigen?"

Probably because you two are actually the same person. Please don't play these silly games.

Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 3rd Oct 2008 02:19
Hahahaha nice Ian.

Anyway, whoever you are - start with some tutorials on more basic things, since my first impressions tell me that you've never used DBP before.
TRIGEN48
16
Years of Service
User Offline
Joined: 7th Aug 2008
Location: LOST IN CYBER SPACE
Posted: 3rd Oct 2008 10:09 Edited at: 3rd Oct 2008 10:10
We are not the same person!.the fact that i have the same problem with makin a card game does not make us the same person!
IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 3rd Oct 2008 15:08
True, but the fact that your names are very similar, you both write in the same style, and ... oh yes, you are using the same IP addresses within 3 minutes of each other, does make it almost certain that you are the same person.

Did you know that mods can see the IP addresses you are using?

calcyman
17
Years of Service
User Offline
Joined: 31st Aug 2007
Location: The Uncertainty Principle
Posted: 3rd Oct 2008 18:25
Good one, IanM!

Quote: "Please don't play these silly games."

Unless of course, they have a split personality. It's certainly possible.

Quote: "he wants to make an enemy that you just walk to and challange him."


First you need to test the proximity between yourself and your enemy. Then use a conditional statement like this:

If proximity# < 100.0 and returnkey()=1 then gosub challenge

Quote: "then the enemy must be able to use is cards wisely like i would"


You need to create a routine that analyses the situation and decides on a good move to make. This routine could be based on past experience (ie. a learning program), algorithmic tree-searching (admittedly it's slow and memory-heavy), or based on a few priorities.

You should first consider making an unbeatable Noughts & Crosses game, as this will give you experience with making AI.

@Trigen48 and/or trigoths:

If you are (both) trying to make the same game, why don't you have a competition with yourself/yourselves?

The optomist's right, The pessimist's right.

Login to post a reply

Server time is: 2024-11-24 19:46:37
Your offset time is: 2024-11-24 19:46:37