inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Mar 6, 2011 6:42:58 GMT -8
Okay, so, I'm making a ubbc generator that generates Pokemon information, which I input, and once selected, will fill in the fields. But, I need to figure out how to make an array off of one of the "key" values. So, here is Bulbasaur: { value: "Bulbasaur", img: "", type: "Grass", type2: "Poison", ability: "Overgrow", abilityinfo: "Strengthens Grass moves to inflict 1.5× damage at 1/3 max HP or less.", attacks: {0:"Tackle",3:"Growl",7:"Leech Seed",9:"Vine Whip",13:["Poison Powder","Sleep Powder"],15:"Take Down",19:"Razor Leaf",21:"Sweet Scent",25:"Growth",27:"Double-Edge",31:"Worry Seed",33:"Synthesis",37:"Seed Bomb"} },
And here is the processor: $("input#pokemon").autocomplete({ minLength:0, source: pokemon, focus: function(event, ui){ $("#pokemon").val(ui.item.value); return false; }, select: function(event, ui){ $("#pokemon").val(ui.item.value); $("#image").val(ui.item.img); $("#type").val(ui.item.type); $("#type2").val(ui.item.type2); $("#ability").val(ui.item.ability); $("#abilityinfo").val(ui.item.abilityinfo); $("#attacks").html(ui.item.attacks); return false; } })
erinuki.ismywebsite.com/ubbc_coder2/ for preview. So, once that array is made, I want to fill it with, if possible, level: "Move", as I had done with like "value: 'Bulbasaur',". If that makes sense.. This uses jQuery too.. if jQuery has a different OOP.
|
|
inherit
130228
0
Jul 11, 2024 19:19:59 GMT -8
Charles Stover
1,731
August 2008
gamechief
|
Post by Charles Stover on Mar 11, 2011 20:28:10 GMT -8
I can help, but I have no clue what you're talking about. That post didn't make any sense.
I don't see a single array in your post, let alone an attempt to fill it, or an explanation of what you're trying to fill it with.
|
|
inherit
97216
0
Nov 26, 2024 13:53:14 GMT -8
Bennett 🚀
Formerly iPokemon.
3,622
January 2007
catattack
iPokemon's Mini-Profile
|
Post by Bennett 🚀 on Mar 12, 2011 8:02:46 GMT -8
I figured this out actually, so no need to worry about it anymore
|
|