Community

The PokéCommunity

We are still working on a better slogan!

Visit Index



Advertise here

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Notices

Pokémon Essentials All questions and discussion about Pokémon Essentials, the Pokémon game kit for RPG Maker XP, go in here. Also contains links to the latest downloads and the Essentials Wiki.

Post Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #1    
Old September 3rd, 2013, 11:14 PM
wilfre
 
Join Date: Jan 2010
Gender: Male
Tournaments Joined: 0
Tournaments Won: 0

Advertise here
Before asking the question, I need to say something. I was about to make a new account when I found out I already made one in 2010. Not sure why, but there was only 1 post and it was a horrible post so I had to delete it.

Back on topic.
I'm trying to make a ranking system for triple triad for my Pokemon game (Though my dislike for RPG maker XP [The lag], I just prefer VX and VX Ace). But to make this ranking system I need a way to tell if the player has won or lose in a battle. I tried searching but all I found was 'forum games' and the wiki didn't have any info on a win or lose scenario, if it is there, please tell me because i'm blind and find it a bit hard to point out the obvious.
  #2    
Old September 8th, 2013, 05:05 AM
FL's Avatar
FL
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
Tournaments Joined: 0
Tournaments Won: 0
I can't believe that this script don't have this feature!

In PokemonMinigameTripleTriad change (untested)

Code:
  pbFadeOutInWithMusic(99999){
     scene=TriadScene.new
     screen=TriadScreen.new(scene)
     screen.pbStartScreen(name,minLevel,maxLevel,rules,oppdeck,prize)
  }
to

Code:
ret=-1
  pbFadeOutInWithMusic(99999){
     scene=TriadScene.new
     screen=TriadScreen.new(scene)
     ret=screen.pbStartScreen(name,minLevel,maxLevel,rules,oppdeck,prize)
  }
return ret
Now pbTriadDuel returns a number where:

0 - No game (when you have no cards or other condition)
1 - Player win
2 - Player lose
3 - Draw
  #3    
Old September 8th, 2013, 08:41 AM
wilfre
 
Join Date: Jan 2010
Gender: Male
Tournaments Joined: 0
Tournaments Won: 0
Thank you very much. I was starting to think nobody will be able to answer this.
I will test this out now.

EDIT: It doesn't seem to work for me. But that is probably due to me not knowing what i'm even doing.

Last edited by wilfre; September 8th, 2013 at 08:58 AM.
  #4    
Old September 8th, 2013, 03:20 PM
Nickalooose
--------------------
 
Join Date: Mar 2008
Gender: Female
Tournaments Joined: 0
Tournaments Won: 0
For people who don't know what to do, I tend to advise using Variables... Why don't you just use those instead?
But another question is, where will you be using this ranking system?
Will it be some sort of screen during the Triad game, or will it be used on the overworld?
Will there be a league table, that is visible, or will someone just say, "Hey, you're ranked 57th out of 140, congratulations!"?
All of these would require additional scripting anyway, except some guy telling you (which is obviously the easiest solution)... I haven't attempted FL's way, so you'll have to await his reply for an answer to that.
  #5    
Old September 8th, 2013, 05:25 PM
wilfre
 
Join Date: Jan 2010
Gender: Male
Tournaments Joined: 0
Tournaments Won: 0
Using Variables for a ranking system is what I planned. But because there is no script for win or lose, then your rank will go up even if you win or lose. That's what I want to avoid.
I need the win/lose script to make the ranking system and to create tournaments, which both will need a win/lose script. I have extremely little knowledge of Ruby script, so understanding what to do can be difficult.
  #6    
Old September 9th, 2013, 03:38 AM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
Tournaments Joined: 0
Tournaments Won: 0
What FL gave means you can use result=pbTriadDuel("Bob",1,10) or even pbSet(42,pbTriadDuel("Bob",1,10)) in an event to get the result of the duel. You can then use the result somehow in your rankings stuff.
Post Reply
Quick Reply

Sponsored Links


Advertise here
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 12:00 AM.

About Us
© 2002 - 2014 The PokéCommunity™, pokecommunity.com. Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.

Copyright
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com. PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator. Header artwork by Jordanice of deviantART.

Social Media
If you would like to stay up-to-date with us on the go, when we're down, or other such things, follow us on social media sites--most notibly Twitter, Facebook, and Google Plus--by clicking on the links provided.

Design presented by Peitharchia. Special thanks to Hiroshi Sotomura and Ausaudriel.