Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local x = "DracoMeteor Dragon 150 RoarOfTime Dragon 150 HyperBeam Normal 150 ShadowForce Ghost 120 FireBlast Fire 120 SacredFire Fire 120 SeedFlare Grass 120 Solarbeam Grass 120 ZapCannon Electric 120 Judgment Normal 120 HydroPump Water 110 Thunder Electric 110 DarkVoid Dark 100 SpatialRend Dragon 100 Earthquake Ground 100 IronTail Steel 100 DragonPulse Dragon 90 Psychic Psychic 90 Surf Water 90 Thunderbolt Electric 90 AuraSphere Fighting 80 DarkPulse Dark 80 HyperFang Normal 80 ShadowBall Ghost 80 Bubblebeam Water 75 AirSlash Flying 75 BodySlam Normal 70 Slash Normal 70 FalseSwipe Normal 65 AuroraBeam Ice 65 Psybeam Psychic 65 AncientPower Rock 60 Bite Dark 60 Dragonbreath Dragon 60 MagicLeaf Grass 60 RockThrow Rock 60 IcyWind Ice 55 MetalClaw Steel 55 RazorLeaf Grass 55 MegaDrain Grass 50 Bubble Water 40 Confusion Psychic 40 Ember Fire 40 FuryCutter Bug 40 Gust Flying 40 Pound Normal 40 QuickAttack Normal 40 Scratch Normal 40 Tackle Normal 40 Absorb Grass 25 LeechLife Bug 25 TheTruth Normal 0 Metronome Normal 0 Recover Normal 0"
- local types = {
- ["None"] = 1,
- ["Normal"] = 2,
- ["Fire"] = 3,
- ["Water"] = 4,
- ["Electric"] = 5,
- ["Grass"] = 6,
- ["Ice"] = 7,
- ["Fighting"] = 8,
- ["Poison"] = 9,
- ["Ground"] = 10,
- ["Flying"] = 11,
- ["Psychic"] =12,
- ["Bug"] = 13,
- ["Rock"] = 14,
- ["Ghost"] = 15,
- ["Dragon"] = 16,
- ["Dark"] = 17,
- ["Steel"] = 18,
- ["Fairy"] = 19
- }
- print("local movedex = {")
- --for i = 1, 3 do
- while string.len(x)>1 do
- io.write("\t")
- local i = 1
- while string.sub(x, i+1, i+1)~="\t" do i=i+1 end
- local myMove = string.sub(x, 1, i)
- for n = string.len(myMove), 1, -1 do
- if string.sub(myMove, n, n) == " " then myMove = string.sub(myMove, 1, n-1)..string.sub(myMove, n+1) end
- end
- io.write("[\""..myMove.."\"] = {")
- x = string.sub(x, i+2)
- i = 1
- while string.sub(x, i+1, i+1)~="\t" do i=i+1 end
- local myType = types[string.sub(x, 1, i)]
- x = string.sub(x, i+2)
- i = 1
- while string.sub(x, i+1, i+1)~=" " and string.len(x)>=i+1 do i=i+1 end
- io.write(string.sub(x, 1, i)..", acc, "..myType.."},\n")
- x = string.sub(x, i+2)
- end
- io.write("}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement