dtalley11

Untitled

May 15th, 2014
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. 1. Parse the INI file into an array
  2. 2. Get the information needed to do the following out of it (Context dependant):
  3.  
  4. For each pokemon
  5. Grab the name, make it the key in a key:value
  6. learnsets[pokemon]={}
  7. for each move
  8. learnsets[pokemon] = move[append
  9. 0,2,4 etc is levels, 1,3,5 are the corisponding moves [1,Scratch,1,Grawl,7,ember...]
  10. for each level/move, add move:[level] recursively in the pokemon:{moves:[]}
  11. Spit out the array, which should be in a friendly format
Advertisement
Add Comment
Please, Sign In to add comment