- 2,048
- Posts
- 17
- Years
- Seen Sep 7, 2023
Ohhhhhh..... Yo momma.....
lol.
Just kidding.
That is complete B.S though.
It would be rather simple- in any maker- to make this using variables.
E.G for drawing cards, you just randomize the variables- store the deck into variables. For everything, attack, def, life points, whatever, just use variables and simple maths to work stuff out.
If you put some planning, rather then jumping straight into the code, read the basic rules of the card game, and work out how it goes, write out pseudo code in note pad, it(the game's card mechanics) would be easy enough.
Okay, I take that back. But I still think it would be easier if you could actually use some kind of scripting or programming language, such as RGSS, than if you were limited to events. For example, here's a simple script which shuffles your deck.
Code:
def shuffle
newdeck=[]
loop do # Starts a loop
pos=rand(@deck.size) # Chooses a random card from the deck
newdeck.push(@deck[pos]) # Adds it to the new deck
@deck[pos]=nil # Deletes it from the old deck
@deck.compact! # Compacts the deck, removing the empty space
break if @deck.size==0 # Exits the loop once all cards have been moved to the new deck
end
@deck=newdeck # Replaces the old (empty) deck with the randomised deck
end
Anyway, I'm still skeptical that you'll be able to pull this off well; as you said, this is your first thread with more than 25 replies. I'm not sure whether you have enough skill, be it with events or scripting, to actually do this.