The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Creative Discussions > Game Development > Pokémon Essentials
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

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.


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
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.
Reply With Quote
  #2    
Old September 8th, 2013, 05:05 AM
FL's Avatar
FL
Pokémon Island Creator
 
Join Date: Sep 2010
Gender: Male
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
__________________
Reply With Quote
  #3    
Old September 8th, 2013, 08:41 AM
wilfre
 
Join Date: Jan 2010
Gender: Male
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.
Reply With Quote
  #4    
Old September 8th, 2013, 03:20 PM
Nickalooose
--------------------
 
Join Date: Mar 2008
Gender: Female
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.
Reply With Quote
  #5    
Old September 8th, 2013, 05:25 PM
wilfre
 
Join Date: Jan 2010
Gender: Male
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.
Reply With Quote
  #6    
Old September 9th, 2013, 03:38 AM
Maruno's Avatar
Maruno
Lead Dev of Pokémon Essentials
 
Join Date: Jan 2008
Location: England
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.
__________________
Reply With Quote
Reply
Quick Reply

Sponsored Links


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 05:01 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 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.
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.