[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
Can /vp/ help me out with Essentials?
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /vp/ - Pokemon

Thread replies: 60
Thread images: 30
File: 100_1.png (1 KB, 160x160) Image search: [Google]
100_1.png
1 KB, 160x160
Are there any essentials geniuses out there that can help me? I'm trying to make variations of Voltorb in Pokemon Essentials depending on what Poke Ball you caught it in. Here's the code:

MultipleForms.register(:VOLTORB,{
"type2"=>proc{|pokemon|
types=[:ELECTRIC,:ELECTRIC,:GRASS,:ELECTRIC,:ELECTRIC,
:BUG,:WATER,:FLYING,:ELECTRIC,:PSYCHIC,
:ELECTRIC,:NORMAL,:DARK,:FAIRY,:ELECTRIC,
:ELECTRIC,:DRAGON,:ELECTRIC,:ELECTRIC,:WATER,
:STEEL,:FAIRY,:ELECTRIC,:GHOST,:BUG]
next getID(PBTypes,types[pokemon.form])
},
"getForm"=>proc{|pokemon|
next 0 if isConst?(poke.ballused,:POKEBALL)
next 1 if isConst?(poke.ballused,:GREATBALL)
next 2 if isConst?(poke.ballused,:SAFARIBALL)
next 3 if isConst?(poke.ballused,:ULTRABALL)
next 4 if isConst?(poke.ballused,:MASTERBALL)
next 5 if isConst?(poke.ballused,:NETBALL)
next 6 if isConst?(poke.ballused,:DIVEBALL)
next 7 if isConst?(poke.ballused,:NESTBALL)
next 8 if isConst?(poke.ballused,:REPEATBALL)
next 9 if isConst?(poke.ballused,:TIMERBALL)
next 10 if isConst?(poke.ballused,:LUXURYBALL)
next 11 if isConst?(poke.ballused,:PREMIERBALL)
next 12 if isConst?(poke.ballused,:DUSKBALL)
next 13 if isConst?(poke.ballused,:HEALBALL)
next 14 if isConst?(poke.ballused,:QUICKBALL)
next 15 if isConst?(poke.ballused,:CHERISHBALL)
next 16 if isConst?(poke.ballused,:FASTBALL)
next 17 if isConst?(poke.ballused,:LEVELBALL)
next 18 if isConst?(poke.ballused,:LUREBALL)
next 19 if isConst?(poke.ballused,:HEAVYBALL)
next 20 if isConst?(poke.ballused,:LOVEBALL)
next 21 if isConst?(poke.ballused,:FRIENDBALL)
next 22 if isConst?(poke.ballused,:MOONBALL)
next 23 if isConst?(poke.ballused,:SPORTBALL)
}
})
>>
>>26765194
What's the issue with this code?
Is it a compile error or runtime error?
>>
OK, I tried using a different set of code, here it is:

MultipleForms.register(:VOLTORB,{
"type1"=>proc{|pokemon|
types=[:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,
:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,
:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,
:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC]
next getID(PBTypes,types[pokemon.form])
},
"type2"=>proc{|pokemon|
types=[:ELECTRIC,:ELECTRIC,:GRASS,:ELECTRIC,:ELECTRIC,
:BUG,:WATER,:FLYING,:ELECTRIC,:PSYCHIC,
:ELECTRIC,:NORMAL,:DARK,:FAIRY,:ELECTRIC,
:ELECTRIC,:DRAGON,:ELECTRIC,:ELECTRIC,:WATER,
:STEEL,:FAIRY,:ELECTRIC,:GHOST,:BUG]
next getID(PBTypes,types[pokemon.form])
},
"getForm"=>proc{|pokemon|
next 0 if isConst?(poke.ballused=0)
next 1 if isConst?(poke.ballused=1)
next 2 if isConst?(poke.ballused=2)
next 3 if isConst?(poke.ballused=3)
next 4 if isConst?(poke.ballused=4)
next 5 if isConst?(poke.ballused=5)
next 6 if isConst?(poke.ballused=6)
next 7 if isConst?(poke.ballused=7)
next 8 if isConst?(poke.ballused=8)
next 9 if isConst?(poke.ballused=9)
next 10 if isConst?(poke.ballused=10)
next 11 if isConst?(poke.ballused=11)
next 12 if isConst?(poke.ballused=12)
next 13 if isConst?(poke.ballused=13)
next 14 if isConst?(poke.ballused=14)
next 15 if isConst?(poke.ballused=15)
next 16 if isConst?(poke.ballused=16)
next 17 if isConst?(poke.ballused=17)
next 18 if isConst?(poke.ballused=18)
next 19 if isConst?(poke.ballused=19)
next 20 if isConst?(poke.ballused=20)
next 21 if isConst?(poke.ballused=21)
next 22 if isConst?(poke.ballused=22)
next 23 if isConst?(poke.ballused=23)
}
})
>>
>>26765309
Here's the errorlog for the new code:

---------------------------
Pokemon Evolution Blue
---------------------------
Exception: NameError

Message: undefined local variable or method `poke' for nil:NilClass

Pokemon_MultipleForms:1036

Pokemon_MultipleForms:1035:in `call'

Pokemon_MultipleForms:185:in `call'

Pokemon_MultipleForms:6:in `form'

Pokemon_MultipleForms:1025

Pokemon_MultipleForms:1020:in `call'

Pokemon_MultipleForms:185:in `call'

Pokemon_MultipleForms:65:in `type1'

PScreen_Summary:256:in `drawPageOne'

PScreen_Summary:98:in `pbStartScene'
This exception was logged in

C:\Users\Tech\Saved Games/Pokemon Evolution Blue/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
>>
>>26765380
1. I believe you're using the wrong operator
>next 0 if isConst?(poke.ballused=0)
should be
>next 0 if isConst?(poke.ballused==0)
and so on.

Also, the function is already editing the variable "poke". what your code is doing is attempting to edit a variable inside "poke" with the same name, which doesn't exist. You should use "self" instead.

Your end result should be :
MultipleForms.register(:VOLTORB,{
# I don't think you need to edit type 1 for this to work.
"type1"=>proc{|pokemon|
types=[:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,
:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,
:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,
:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC]
next getID(PBTypes,types[pokemon.form])
},
"type2"=>proc{|pokemon|
types=[:ELECTRIC,:ELECTRIC,:GRASS,:ELECTRIC,:ELECTRIC,
:BUG,:WATER,:FLYING,:ELECTRIC,:PSYCHIC,
:ELECTRIC,:NORMAL,:DARK,:FAIRY,:ELECTRIC,
:ELECTRIC,:DRAGON,:ELECTRIC,:ELECTRIC,:WATER,
:STEEL,:FAIRY,:ELECTRIC,:GHOST,:BUG]
next getID(PBTypes,types[pokemon.form])
},
"getForm"=>proc{|pokemon|
next 0 if isConst?(self.ballused==0)
next 1 if isConst?(self.ballused==1)
next 2 if isConst?(self.ballused==2)
next 3 if isConst?(self.ballused==3)
next 4 if isConst?(self.ballused==4)
next 5 if isConst?(self.ballused==5)
next 6 if isConst?(self.ballused==6)
next 7 if isConst?(self.ballused==7)
next 8 if isConst?(self.ballused==8)
next 9 if isConst?(self.ballused==9)
next 10 if isConst?(self.ballused==10)
next 11 if isConst?(self.ballused==11)
next 12 if isConst?(self.ballused==12)
next 13 if isConst?(self.ballused==13)
next 14 if isConst?(self.ballused==14)
next 15 if isConst?(self.ballused==15)
next 16 if isConst?(self.ballused==16)
next 17 if isConst?(self.ballused==17)
next 18 if isConst?(self.ballused==18)
next 19 if isConst?(self.ballused==19)
next 20 if isConst?(self.ballused==20)
next 21 if isConst?(self.ballused==21)
next 22 if isConst?(self.ballused==22)
next 23 if isConst?(self.ballused==23)
}
})
>>
>>26765487
OK, I tried out this code, and I got this errorlog:

---------------------------
Pokemon Evolution Blue
---------------------------
Exception: NoMethodError

Message: undefined method `ballused' for nil:NilClass

Pokemon_MultipleForms:1037

Pokemon_MultipleForms:1036:in `call'

Pokemon_MultipleForms:185:in `call'

Pokemon_MultipleForms:6:in `form'

Pokemon_MultipleForms:1026

Pokemon_MultipleForms:1021:in `call'

Pokemon_MultipleForms:185:in `call'

Pokemon_MultipleForms:65:in `type1'

PScreen_Summary:256:in `drawPageOne'

PScreen_Summary:98:in `pbStartScene'
This exception was logged in

C:\Users\Tech\Saved Games/Pokemon Evolution Blue/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
>>
hope you get the code working OP, any links to your game?
>>
>>26765487(You)
I'm sorry,
I think you have to reference "pokemon" instead of "self"

Try:

MultipleForms.register(:VOLTORB,{
# I don't think you need to edit type 1 for this to work.
"type1"=>proc{|pokemon|
types=[:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,
:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,
:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC,
:ELECTRIC,:ELECTRIC,:ELECTRIC,:ELECTRIC]
next getID(PBTypes,types[pokemon.form])
},
"type2"=>proc{|pokemon|
types=[:ELECTRIC,:ELECTRIC,:GRASS,:ELECTRIC,:ELECTRIC,
:BUG,:WATER,:FLYING,:ELECTRIC,:PSYCHIC,
:ELECTRIC,:NORMAL,:DARK,:FAIRY,:ELECTRIC,
:ELECTRIC,:DRAGON,:ELECTRIC,:ELECTRIC,:WATER,
:STEEL,:FAIRY,:ELECTRIC,:GHOST,:BUG]
next getID(PBTypes,types[pokemon.form])
},
"getForm"=>proc{|pokemon|
next 0 if isConst?(pokemon.ballused==0)
next 1 if isConst?(pokemon.ballused==1)
next 2 if isConst?(pokemon.ballused==2)
next 3 if isConst?(pokemon.ballused==3)
next 4 if isConst?(pokemon.ballused==4)
next 5 if isConst?(pokemon.ballused==5)
next 6 if isConst?(pokemon.ballused==6)
next 7 if isConst?(pokemon.ballused==7)
next 8 if isConst?(pokemon.ballused==8)
next 9 if isConst?(pokemon.ballused==9)
next 10 if isConst?(pokemon.ballused==10)
next 11 if isConst?(pokemon.ballused==11)
next 12 if isConst?(pokemon.ballused==12)
next 13 if isConst?(pokemon.ballused==13)
next 14 if isConst?(pokemon.ballused==14)
next 15 if isConst?(pokemon.ballused==15)
next 16 if isConst?(pokemon.ballused==16)
next 17 if isConst?(pokemon.ballused==17)
next 18 if isConst?(pokemon.ballused==18)
next 19 if isConst?(pokemon.ballused==19)
next 20 if isConst?(pokemon.ballused==20)
next 21 if isConst?(pokemon.ballused==21)
next 22 if isConst?(pokemon.ballused==22)
next 23 if isConst?(pokemon.ballused==23)
}
})
>>
>>26765588
whoops.
>>26765532
>>
>>26765588
Tried this out, heres the errorlog.

---------------------------
Pokemon Evolution Blue
---------------------------
Exception: ArgumentError

Message: wrong number of arguments(1 for 3)

Pokemon_MultipleForms:1037:in `isConst?'

Pokemon_MultipleForms:1037

Pokemon_MultipleForms:1036:in `call'

Pokemon_MultipleForms:185:in `call'

Pokemon_MultipleForms:6:in `form'

Pokemon_MultipleForms:1026

Pokemon_MultipleForms:1021:in `call'

Pokemon_MultipleForms:185:in `call'

Pokemon_MultipleForms:65:in `type1'

PScreen_Summary:256:in `drawPageOne'
This exception was logged in

C:\Users\Tech\Saved Games/Pokemon Evolution Blue/errorlog.txt.

Press Ctrl+C to copy this message to the clipboard.
---------------------------
OK
---------------------------
>>
>>26765645
oh right, you don't need `isConst" anymore

your lines should look like:
next 0 if pokemon.ballused==0
next 1 if pokemon.ballused==1
...
etc
>>
File: thx.png (81 KB, 784x615) Image search: [Google]
thx.png
81 KB, 784x615
>>26765691
I got it working, thanks man!

After I make graphics for the rest of the voltorbs, I'll copy the code for Electrode.
>>
>>26765752
nice! what project is that for?
>>
>>26765752
The red parts on the top are off.
>>
File: splash.png (14 KB, 512x384) Image search: [Google]
splash.png
14 KB, 512x384
>>26765768
Just a game I'm working on called Pokemon Evolution Blue, it has Mega Evolution (With new Megas too), new baby evos for pokemon like Kangaskhan and Tropius, different forms for Pokemon (ie. Voltorb and Electrode), and some Fakemon and Characters from other franchises.
So, it's a mashup I guess. The Kangas baby (Which I called Kangaschan) can evolve into Kangaskhan through Happiness, Cubone through a Dusk Stone, and a new mon, Kangastone, at level 30 if it's attack is higher than it's defense.

>>26765800
I know.
>>
>>26765829
Oh, and an Eeveelution for every type.
>>
>>26765829
sounds interesting. I like the voltorb/electrode idea. I love when there's variety within pokemon like that rather than just variety in different species of pokemon.
>>
Perspective on that sprite is shite, m8
Cool concept though
>>
>>26766038
Thanks

>>26766091
Thanks will edit l8r

Any ideas for this game? Maybe I can add more Unown for other alphabets like Greek and Japanese. Also, there will be a 4th Bug-Type Starter along with the original Gen 1 Starters.
>>
File: 100_1.png (1 KB, 160x160) Image search: [Google]
100_1.png
1 KB, 160x160
>>26766091
How's this?
>>
>>26766401
not him but

I know you moved it slightly, but it still suffers from the same problem. the red on the left is basically above his eye, and the one on the right is more to the side of his eye.

If you'd like I could take a crack at an sprite edit.
>>
>>26766862
Sure, Just make sure it's 160x160.
>>
File: greatorb.png (1 KB, 160x160) Image search: [Google]
greatorb.png
1 KB, 160x160
>>26767213
>>26766862
why not something like this?
>>
File: image.jpg (165 KB, 620x1134) Image search: [Google]
image.jpg
165 KB, 620x1134
>>26767326
You're a genius
>>
File: 2134435364576.png (483 KB, 746x985) Image search: [Google]
2134435364576.png
483 KB, 746x985
>>26767326
This actually blew my mind
>>
>>26767326
Its beautiful, can I use it? I might edit that red dpot you left on the right corner.

Right now I'm making new abilities similar to Pixilate
>>
File: file.png (76 KB, 449x541) Image search: [Google]
file.png
76 KB, 449x541
>>26767400
yeah sure
I touched it up a little.

I was thinking the other balls could be recolors of this sprite.

I was doing something similar with my one fakemon, so I have a chart for recolors already.
>>
File: greatorb.png (1 KB, 160x160) Image search: [Google]
greatorb.png
1 KB, 160x160
>>26767444
>>26767400
I touched it up a little.
>>
File: 100b_1.png (2 KB, 160x160) Image search: [Google]
100b_1.png
2 KB, 160x160
>>26767326
I made it's backsprite, I'll credit you as Max.

>>26767454
I had already touched it up myself lmao

>>26767444
Yeah I could just recolor this sprite for the rest of the balls
>>
>>26767484
Looks great!
Good Luck!
>>
File: 100_4.png (1 KB, 160x160) Image search: [Google]
100_4.png
1 KB, 160x160
>>26767500
Here's le ultra ball
>>
File: 100b_4.png (2 KB, 160x160) Image search: [Google]
100b_4.png
2 KB, 160x160
>>26767531
backsprite
>>
File: ultrob.png (1 KB, 160x160) Image search: [Google]
ultrob.png
1 KB, 160x160
>>26767531
>>26767568
Backsprite looks good, but i'd probably darken th front sprite.

Here, I used the ultraball sprite's colors.
>>
>>26767326
looks too much like a ball form Salamence

Other is fine
>>
File: 100_2.png (2 KB, 160x160) Image search: [Google]
100_2.png
2 KB, 160x160
>>26767623
OK. Here's the Safari Ball.
>>
File: 372.png (726 B, 160x160) Image search: [Google]
372.png
726 B, 160x160
>>26767635
Who doesn't want a dragon in the shape of a ball?
>>
>>26767643
maybe i'm being picky, but I think the overall saturation can come down, and the tan color could be lighter. Looks good though.
>>
File: 100b_2.png (2 KB, 160x160) Image search: [Google]
100b_2.png
2 KB, 160x160
>>26767667
Thanks, Here is backsprite. I think it could be improved, but is ok.
>>
File: bullcrap.png (104 KB, 835x719) Image search: [Google]
bullcrap.png
104 KB, 835x719
OK I keep getting syntax errors now and I see now problem and the errorlog isn't helping

---------------------------
Pokemon Evolution Blue
---------------------------
Script 'PokeBattle_Move' line 1353: SyntaxError occurred.
---------------------------
OK
---------------------------

What do? This is the code
def pbMoveFailed(
attacker,opponent)
# Called to determine whether the move failed
return false
end
end
>>
>>26767960
honestly don't know.
try putting tthose parenthesis on the same line. might be that simple.
>>
File: bullcrap.png (115 KB, 835x719) Image search: [Google]
bullcrap.png
115 KB, 835x719
>>26767960
c'mon I need to know how to fix this shit
>>
>>26768571
is this on 16.2?
>>
>>26768775
No, it's 16.1. I'm afraid if I update it'll remove all of the scripts I edited.
>>
File: bullcrap.png (104 KB, 835x719) Image search: [Google]
bullcrap.png
104 KB, 835x719
>>26768775
Here's the part I was edited in the script.
>>
File: bullcrap.png (66 KB, 784x615) Image search: [Google]
bullcrap.png
66 KB, 784x615
OK, I fixed the problem, I had rewrite a lot of code. :D
>>
>>26765829
If you don't mind me asking... What language is the script in?
>>
File: bullcrap.png (66 KB, 784x615) Image search: [Google]
bullcrap.png
66 KB, 784x615
>>26769453
I added a few new Pixilate-esc abilities and two different ones:

>Global Cooling
Water-type moves become Ice-type.

>Global Warming
Water-type moves become Fire-type.

Any other ideas for abilities or moves?
>>
>>26769495
idk lol I'm using RPG Maker XP and Pokemon Essentials.
>>
File: 100_4.png (2 KB, 160x160) Image search: [Google]
100_4.png
2 KB, 160x160
Finished the Master Ball sprite, as if you were ever going to catch a Voltorb in a Master Ball.
>>
File: 100b_4.png (2 KB, 160x160) Image search: [Google]
100b_4.png
2 KB, 160x160
>>26769787
Backsprite
>>
File: 100_5.png (2 KB, 160x160) Image search: [Google]
100_5.png
2 KB, 160x160
Net Ball Voltorb
>>
File: 100b_5.png (2 KB, 160x160) Image search: [Google]
100b_5.png
2 KB, 160x160
>>26769936
Backsprite. Also, I changed the Voltorb variations somewhat. They will all be pure Electric-type, instead of some having a second type.
>>
I might make another thread for this game later on after I finish all the sprites for the voltorbs and electrodes
>>
>>26769453
I mean't to tell you to make a copy of your work, update the copy, and paste in the edits you've made.
It saves a lot of time

>>26769495
>>26769524

RPG Maker is in Ruby. Some of Ruby's Documentation can really help with custom scripts.
>>
File: Love ball.png (1 KB, 160x160) Image search: [Google]
Love ball.png
1 KB, 160x160
Hey OP here's a sprite you might want to use
>>
>>26769787
>>26769936
>>26767643
The inconsistency in pixel sizes ruin these sprites - the outlines show clear sizes for the resolution, but the interior details just throw those out of the window.
>>
File: Untitled.png (2 KB, 160x160) Image search: [Google]
Untitled.png
2 KB, 160x160
>>
File: Master ball.png (1 KB, 160x160) Image search: [Google]
Master ball.png
1 KB, 160x160
>>
File: Net ball.png (746 B, 80x80) Image search: [Google]
Net ball.png
746 B, 80x80
>>
File: Safari Ball.png (1 KB, 160x160) Image search: [Google]
Safari Ball.png
1 KB, 160x160
Thread replies: 60
Thread images: 30

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.