Thread: [Essentials script] Pokémon TCG mod
View Single Post
  #6    
Old September 19th, 2012, 12:12 PM
hansiec's Avatar
hansiec
Scripting Genius
 
Join Date: Aug 2009
Location: Near a laptop
Age: 17
Gender: Male
Nature: Quiet
To create a shuffled deck

Code:
# create deck here

deck = deck.shuffle

Why create a new PB file for the cards? Why not use the PBSpecies data and manipulate the stats there, more cards can be created faster like that. Although for stadium/Supporter cards would be the only use for this as items can also be taken out of the PBItems data.

and a card's id can be made like so:

Code:
# create a base 42 character code here
id = [put all needed statistics here].pack("42 chararacter string here")
main_id = "" 

# get the main id with the XXXX-XXXX-XXXX (and so forth)
for i in 0..id.length-1
  main_id += " "
  main_id[main_id.length-1] = id[i]
  if i % 4 == 0
    main_id += "-"
  end
end
I hope this helps a little bit.


I really am not a graphics designer so no help designing
__________________
Things I'm working on:
Pokemon Essentials GTS System
Pokemon Essentials Mach & Acro Bike Script
PvP Script
Random Battle Generator

If you wish to donate to me you can do so here:
https://www.paypal.com/cgi-bin/websc...if%3aNonHosted
Reply With Quote