Charas-Project

Off-Topic => Archive => Old Game Discussion => Topic started by: nick912012 on November 22, 2004, 03:44:37 AM

Title: yugioh a.i. stuff
Post by: nick912012 on November 22, 2004, 03:44:37 AM
i'm makin a yugioh game and i've reached one problem. i dont know how to make the enemy to respond to what u do and i'm using rpg maker 2k3
Title:
Post by: Relentless Soulscar on November 22, 2004, 05:46:19 AM
describe you problem please.
Title:
Post by: Osmose on November 22, 2004, 10:37:37 AM
Quote
Originally posted by nick912012
i'm makin a yugioh game and i've reached one problem. i dont know how to make the enemy to respond to what u do and i'm using rpg maker 2k3


He did. He wants us to make a yugioh AI. Sadly, besides perhaps making it put out it's strongest possible monster, an AI like that is beyond rpg maker
Title:
Post by: nick912012 on November 22, 2004, 09:56:52 PM
ok ill download anything i need to make the yugioh a.i.
Title:
Post by: CoolZidane on November 22, 2004, 10:25:32 PM
1. Bad idea. People don't like fan games because, well, they tend to suck.

2. Your low post count mocks me.

3. What the hell are you talking about? How does the battle system have to work?

4. This really should be in the tutorials section.
Title:
Post by: Osmose on November 22, 2004, 10:30:30 PM
1.Considering the fact that a Yu-Gi-Oh fangame hasn't been done(to my knowledge) because they assume a Yu-Gi-Oh game has to be a card game, I'd be pleased by an RPG based on it. Perhaps something along the lines of the character finding out how to summon the REAL monsters.
2.Stop using that as an excuse not to do stuff. He wants help, and I see no reason why we shouldn't help him.
3.He wants an AI for the computer in a yugioh card game. Once again, sadly, this is beyond the skill of most of us, if not all of us. Best of luck trying to make it yourself.
4.Valid point.
Title:
Post by: nick912012 on November 22, 2004, 10:51:07 PM
1. ok all i want is just help
2. i made this along time ago and just never went on.
3. CoolZidane is a fag
4. osmose is cool and not a fag
Title:
Post by: nick912012 on November 22, 2004, 10:52:41 PM
*2. i made this account along time ago and never went on
Title:
Post by: robotroy on November 22, 2004, 10:57:39 PM
2 things:

1.  Calling anybody a fag won't do you any good.  Not here.  Not anywhere else.  Stop.

2.  AI for any kind of card game is very complicated to program, far more complicated than most people here can manage.  In addition to that, even if they could, that would be asking a huge favour, and you're not getting on anyone's good side right now.
Title:
Post by: Ace of Spades on November 22, 2004, 11:00:50 PM
1. I don't care that it's a fan game, just as long as it's good and is worth playing. Sorry, but what you need help with is too hard for me.
2. Ok...
3. Now that's not very nice.
4. I like everyone here, and calling people fags isn't going to get you help. You never know, you might need that person's help one day.
Title:
Post by: Osmose on November 22, 2004, 11:36:23 PM
Asshat. Learn some manners.
Title:
Post by: nick912012 on November 23, 2004, 01:44:17 AM
ok i guess i went a little to far with fag but i still hate him
Title:
Post by: Revolution911 on November 23, 2004, 02:16:51 AM
1.shutup
2.shutup
3.shutup
4.shutup

:P

anyway, i think osmoses idea would be pretty cool. i would play the game if that were possible. hell id even make a couple battlechars for it.

Title:
Post by: nick912012 on November 23, 2004, 02:18:13 AM
yea thats what i decided to do sorry bout earler i was just pissed off with the fag thing
Title:
Post by: nick912012 on November 23, 2004, 02:25:22 AM
yea so i'm workin on the game later on after the last episode and continuing on into the new yugioh. there is really none of that millenium stuff it's pretty much with yugi as the best duelist ever and you try become the best and beat him. for those who have no idea what i am talkin about and watch the show it should appear like next year or so. In a couple of weeks yugi does sumtin awesome wit breaker against weavil.
Title:
Post by: Bart_Fatima on November 23, 2004, 02:30:46 AM
hm...a yugioh game, sorry but the show sucks so you are going to have to try really really hard to be able to impress some people because alot of people don't care for Yugioh or fangames
 Good Luck You'll need it...
 Oh hand we don't hate people here, or call each other Fags
If you call someone that you are going to have to earn their respect back

 Repeats self: Good Luck
Title:
Post by: nick912012 on November 23, 2004, 02:33:50 AM
umm thx this game is kinda hard to make soo its gonna have more storyline then dueling or whatever i do...currently right now im makin a card face down and why did they have to make the design wierd.
Title:
Post by: WarxePB on November 23, 2004, 02:41:57 AM
An AI for a YuGiOh game? That is doable, but you'd need to use endless variables and switches to do it.

Basically, you'd have to assign a number to each card played. When a player draws a card, it would set it to a variable. The script would generate a random number based on the variable, and the AI would select a card based on the random variable. This is probably similar to how they do it in the real games.

This is easier said than done; it would take at least 3 hours to code all of them, and that's if you get the code right on the first time. Like I said before, you'd need a ton of variables and switches (and a lot of spare time to kill).

My verdict: Plausible, but nearly impossible.

EDIT: Don't ask me to do it. I have other things to do than waste a day to program a script that'll never get played.
Title:
Post by: nick912012 on November 23, 2004, 02:49:16 AM
thx ill try to do it
anyways i want to do the most of it by myself all this post was for is for someone to tell me how to do it.
Title:
Post by: Ace of Spades on November 23, 2004, 02:55:58 AM
Good luck! You'll definately need it... ;)
Title:
Post by: WarxePB on November 23, 2004, 03:02:49 AM
But I must say that a card dueling game in RM2K3 does intrigue me. Me and my friends decided that the YuGiOh system would be cool to do, but YuGiOh itself sucks (no offense). Depending on how I feel, I might be able to help you if you come across something you can't do.
Title:
Post by: Osmose on November 23, 2004, 03:09:33 AM
THE FOLLOWING IS NOT APPLICIBLE TO RPGMAKER, JUST ME RAMBLING.

A little more strategy is involved, though. For example, say you wanted an opponent to wait until he can use a Change of Heart to use the player's monster to summon his own.

But this was just one of many strategies. First you'd have to archive all possible strategies you want the computer to use. This could, technically, be done with an array that holds strings that identify the moves to be done. A variable holding the computer's current strategy would take values from this array based on what cards the player has out, and what cards it has(along with graveyard cards, environment cards, etc.)

This could all basically be put in a value-based system, with some cards taking more value than others, considering the opponents personal tastes. Bakura, for example, has an aversion to the Change of Heart card. I'm not exactly sure, but let's say his favorite monster is Swordstalker, which requires one tribute.
These two would take a higher value, and running them through a complicated algorithm would output the place in the array where the strategy for this is stored, which would be using Change of Heart to sacrafice the player's monster for Swordstalker.

So now we've gotten to where he has the strategy. At this point an entirely seperate system would boot up, the actual system that executes the move. Let's say it's the string "ChngHrt(targ)+sacr(targ)->SwdStlk" Very abbreviated.

We start with ChngHrt, which represents the Change of Heart card. Seeing this in the string would cause the algorithm to try and achieve this card first. After it has it, it searches the string for any other cards, and finds SwdStlk, or Swordstalker. Once it finds this, it starts the actual move in the string.

First it will use Change of Heart on an opponents monster, called targ. Then it will sacrafie targ to summon Swordstalker.

This is a very limited system, with a lot of flaws. But IMO it's realistic enough to be put in a game.