Charas-Project
Game Creation => Requests => RPG Maker Programming => Topic started by: Hawkfrost on April 27, 2008, 12:28:41 AM
-
I'm currently making a Kingdom hearts game with anime instead of disney characters. one of the worlds is yugioh i want to make it a world where instead of combat you do card games for battles. How would i go about doing this?
P.S. im using 2k3
-
Be more specific, for example, how exactly do you want this system to work?
How much do you know about rm2k3 programming? Do you know about switches, variables, conditional branches, and stuff about switches? Depending on how much you know, you may want to make a simpler system. I don't know exactly how yigioh works, but I'm guessing it has a lot of rules, if you make the game with all the rules, it will get very complicated. So you may want to make it simpler by dumbing down the rules, especially if you don't know all that much about rm2k3 programming.
-
i know all about how to use switches. i want the card based system to replace battles only in this world. the system would be very basic. a card would be randomly drawn from our inventory. that card would have an attack value. if the attack value is higher that the opponents they lose difference from life. for example, your opponent pulls a monster with 60 ou draw you get a 75 your opponent would take 15 damage and so on till one guy is dead.
-
Ok, the basic concept of this is to have an algorithm to handle the battle. Think of an equation, for example: Life = Life - (mon1attack - mon2attack).
Then
If (life <= 0)
(kill monster).
The problem lies with getting the values, for example, there are gonna be a lot of possible attack values, and a lot of differant card values. So you'll have to dynamically assign the values from a database. Lol, what that means is that you'll need an event that just has a list of all the cards, and values for the cards. Set it up so that it looks like this.
If [variable] = 1
[attack] = card1attack
[life] = card1life
If [variable] = 2
[attack] = card2attack
[life] = card2life
... and so on for every card.
Have this a common event, and have its trigger to be called.
Then make another event, like this.
[number] = random number (random number represents card)
- call above event.
[mon1Attack] = [attack]
[mon1Life] = [life]
[number] = random number (represents a second random card)
- call above event
[mon2Attack] = [attack]
[mon2life] = [life]
IF [mon1attack] > [mon2Attack]
[mon1Life] = [mon1Life] - ([mon1attack] - [mon2attack]).
If (life <= 0)
(kill monster).
ELSE
[mon1Life] = [mon1Life] - ([mon1attack] - [mon2attack]).
If (life <= 0)
(kill monster).
That should be enough information to get you started
-
Thx i dont really understand but i get what i have to do ill try that