Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Expanded and flattened data structures are seen the same way by the node.js, but flattened structures tend to be more difficult for people to read and expanded structures use more resources to host
- Structures will be modified and created while expanded (also easier to see typos) but implemented after they have been flattened
- My other version of this, when I was just making myself some quite notes can be found here: http://pastebin.com/dj1FrW7f
- **/
- //Examples:
- // Pokedex.js (flattened)
- syclar:{num:-101,species:"Syclar",types:["Ice","Bug"],genderRatio:{M:0.5,F:0.5},baseStats:{hp:40,atk:76,def:45,spa:74,spd:39,spe:91},abilities:{0:"Compound Eyes",1:"Snow Cloak"},heightm:0.2,weightkg:4.0,color:"",evos:["syclant"],eggGroups:["Bug"]}
- // Pokedex.js (expanded)
- syclar:{
- num:-101, // Pokedex Number
- species:"Syclar", // Friendly Species name (can use caps and space)
- types:["Ice","Bug"], // List of types (["type"] for mono or ["typea","typeb"] for dual types)
- genderRatio:{M:0.5,F:0.5}, // Genderless pokemon and pokemon with only 1 gender are done using gender:"N", gender:"M"/"F"
- baseStats:{hp:40,atk:76,def:45,spa:74,spd:39,spe:91},
- abilities:{0:"Compound Eyes",1:"Snow Cloak"}, // {index:"string"}
- heightm:0.2,
- weightkg:4.0,
- color:"", // if this has no color, make it a empty string
- evos:["syclant"], // don't bother defining this if it does not evolve
- eggGroups:["Bug"] // another list ["group"] or ["groupa","groupb"]
- },
- // Learnset.js (flattened)
- /**
- This DOES NOT need to be in alphabetical order
- L is moves learned when leveling up (xLy where x is the generation and y is the level it learns it)
- T is Moves learned from the Tutor (xT, where x is the generation)
- M is Learned from a Technical or Hidden Machine (TM/HM) (xM where x is the generation)
- E is for Egg Moves (xE where x is the generation)
- **/
- syclar:{learnset:{furyattack:["6L1"],leer:["6L1"],leachlife:["6L5"],iceshard:["6L8"],focusenergy:["6L13"],icywind:["6L18"],xscissor:["6L23"],hail:["6L28"],bugbuzz:["6L42"],sheercold:["6L49"],bugbite:["6T"],counter:["6T"],earthpower:["6T"],furycutter:["6T"],icywind:["6T"],mimic:["6T"],snore:["6T"],stringshot:["6T"],superpower:["6T"],waterpulse:["6M"],toxic:["6M"],hail:["6M"],hiddenpower:["6M"],taunt:["6M"],icebeam:["6M"],blizzard:["6M"],protect:["6M"],frustration:["6M"],"return":["6M"],doubleteam:["6M"],facade:["6M"],secretpower:["6M"],rest:["6M"],attract:["6M"],falseswipe:["6M"],fling:["6M"],endure:["6M"],silver Wind:["6M"],avalanche:["6M"],swordsdance:["6M"],captivate:["6M"],xscissor:["6M"],sleeptalk:["6M"],naturalgift:["6M"],swagger:["6M"],uturn:["6M"],substitute:["6M"],cut:["6M"],earthpower:["6E"],pinmissile:["6E"],spikes:["6E"],superpower:["6E"],tailglow:["6E"]}},
- // Learnset.js (expanded)
- syclar:{
- learnset:{
- furyattack:["6L1"],
- leer:["6L1"],
- leachlife:["6L5"],
- iceshard:["6L8"],
- focusenergy:["6L13"],
- icywind:["6L18"],
- xscissor:["6L23"],
- hail:["6L28"],
- bugbuzz:["6L42"],
- sheercold:["6L49"],
- bugbite:["6T"],
- counter:["6T"],
- earthpower:["6T"],
- furycutter:["6T"],
- icywind:["6T"],
- mimic:["6T"],
- snore:["6T"],
- stringshot:["6T"],
- superpower:["6T"],
- waterpulse:["6M"],
- toxic:["6M"],
- hail:["6M"],
- hiddenpower:["6M"],
- taunt:["6M"],
- icebeam:["6M"],
- blizzard:["6M"],
- protect:["6M"],
- frustration:["6M"],
- // Return needs to be in quotes otherwise JS thinks it's the function return
- "return":["6M"],
- doubleteam:["6M"],
- facade:["6M"],
- secretpower:["6M"],
- rest:["6M"],
- attract:["6M"],
- falseswipe:["6M"],
- fling:["6M"],
- endure:["6M"],
- silverwind:["6M"],
- avalanche:["6M"],
- swordsdance:["6M"],
- captivate:["6M"],
- xscissor:["6M"],
- sleeptalk:["6M"],
- naturalgift:["6M"],
- swagger:["6M"],
- uturn:["6M"],
- substitute:["6M"],
- cut:["6M"],
- earthpower:["6E"],
- pinmissile:["6E"],
- spikes:["6E"],
- superpower:["6E"],
- tailglow:["6E"]
- }
- },
- //formats-data.js (flattened)
- syclar: {
- viableMoves: {"furyattack":1,"leer":1,"leechlife":1,"iceshard":1,"focusenergy":1,"icywind":1,"x-scissor":1,"hail":1},
- isNonstandard: true,
- tier: "CAP"
- }
- //formats-data.js (expanded)
- syclar: {
- viableMoves:{ // I don't know what the 1 is for, but every move for every pokemon is like this
- "furyattack":1,
- "leer":1,
- "leechlife":1,
- "iceshard":1,
- "focusenergy":1,
- "icywind":1,
- "x-scissor":1,
- "hail":1
- },
- isNonstandard: true,
- tier: "CAP"
- },
Advertisement
Add Comment
Please, Sign In to add comment