View Single Post
  #24264    
Old March 17th, 2013, 12:48 PM
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote:
Originally Posted by iDowngrade View Post
Ok, tried it, still crashing.
BTW thanks for the compliment on my script :D

New script
Spoiler:

#org $multitest
lock
faceplayer
checkflag 0x700
if 0x01 goto $given
compare 0x8000 8
preparemsg 0x800013
waitmsg
multi 0x0 0x0 0x26 0x0
copyvar 0x8000 LASTRESULT
compare 0x8000 0
if 1 goto $vaporeon
compare 0x8000 1
if 1 goto $jolteon
compare 0x8000 2
if 1 goto $flareon
compare 0x8000 3
if 1 goto $espeon
compare 0x8000 4
if 1 goto $umbreon
compare 0x8000 5
if 1 goto $eevee
compare 0x8000 6
if 1 goto $exit
compare 0x8000 7
release
end

#org $vaporeon
setvar 0x8005 0x1
vardisplay 0 0x8005
message $vapdog
$vapdog 1 = Oh, so da WATER doggie!\nVaporeon!, there we go!
boxset 0x6
givepokemon 134 5 0x00
setflag 0x700
release
end

#org $jolteon
setvar 0x8005 0x2
vardisplay 0 0x8005
message $joltdog
$joltdog 1 = Oh, so da THUNDER doggie!\nJolteon!, there we go!
boxset 0x6
givepokemon 135 5 0x00
setflag 0x700
release
end

#org $flareon
setvar 0x8005 0x3
vardisplay 0 0x8005
message $flamedog
$flamedog 1 = Oh, so da FIRE doggie!\nFlareon!, there we go!
boxset 0x6
givepokemon 136 5 0x00
setflag 0x700
release
end

#org $espeon
setvar 0x8005 0x4
vardisplay 0 0x8005
message $psydog
$psydog 1 = Oh, so da PSYCHIC doggie!\nEspeon!, there we go!
boxset 0x6
givepokemon 196 5 0x00
setflag 0x700
release
end

#org $umbreon
setvar 0x8005 0x5
vardisplay 0 0x8005
message $darkdog
$darkdog 1 = Oh, so da DARK doggie!\nUmbreon!, there we go!
boxset 0x6
givepokemon 197 5 0x00
setflag 0x700
release
end

#org $eevee
setvar 0x8005 0x6
vardisplay 0 0x8005
message $doggie
$doggie 1 = Not sure yet about your doggie?\nThen Eevee is your choice!\pThere we go!
boxset 0x6
givepokemon 197 5 0x00
setflag 0x700
release
end

#org $exit
setvar 0x8005 0x7
vardisplay 0 0x8005
message $okie
$okie 1 = Remember you get one choice.\nAnyways, you can always\pPick an EEVEE and then\nEvolve it later!
boxset 0x6
release
end

#org $given
setvar 0x8005 0x8
vardisplay 0 0x8005
message $done
$done 1 = There it is!/nYour own POKeMON!/pLet your journey begin!
boxset 0x6
release
end


Ugh, maybe gba editing does not suits me, all i can get right is change pokemon...

Should have known im just 12 and my mind cant get this stuff, even though i do java coding D:
Nope, your just missing a key step! I looked at thethethethe's pokescript tut and found this:

Quote:
____________________________________________________________________
Multi Command
This isn’t completed but it has the important part. I’m having problems adding the message underneath it. I’ll add it when I do find it out.
CODE


msgbox2 $pointer
#raw 66

multi 0xE 0×0 0x1E 0×0
copyvar 0×8000 LASTRESULT
compare 0×8000 0
if 1 goto $option1
compare 0×8000 1
if 1 goto $option2
compare 0×8000 2
if 1 goto $option3
compare 0×8000 3
if 1 goto $option4
compare 0×8000 4
if 1 goto $option5
compare 0×8000 0x7F
if 1 goto $canceled
end

#org $option1
setvar 0×8005 0×1
#raw 0×83 0×0 0×05 0×80
givepokemon 1 5 0
message $display
boxset 0×6
end

#org $option2
setvar 0×8005 0×2
#raw 0×83 0×0 0×05 0×80
givepokemon 4 5 0
message $display
boxset 0×6
end

#org $option3
setvar 0×8005 0×3
#raw 0×83 0×0 0×05 0×80
givepokemon 7 5 0
message $display
boxset 0×6
end

#org $option4
setvar 0×8005 0×4
#raw 0×83 0×0 0×05 0×80
givepokemon 152 5 0
message $display
boxset 0×6
end

#org $option5
setvar 0×8005 0×5
#raw 0×83 0×0 0×05 0×80
givepokemon 155 5 0
message $display
boxset 0×6
end

#org $canceled
message $cancel
boxset 0×6
end

#org $display
$display 1 = You chose option: \v\h02

#org $cancel
$cancel 1 = You pressed the B Button

Well if you’ve read through the rest of this a lot of this should be self explanatory by now.

msgbox2 is a command that needs to be added to the commands file in Pokescript for this script to work. #raw 66 has to be there to allow this command to work. Since the site won’t allow me to upload this file, you’ll have to add it yourself.

Code:
addcmmd msgbox2 #67
addparm 8 ‘pointer to text


multi 0xE 0×0 0x1E 0×0 0xE 0×0 are the X/Y coordinates on the screen. These are the top left hand corner. 0x1E is the the actual box chosen. The multi command doesn’t actually create a box but merely displays an already existing box inbuilt into the rom. i.e. the Game Corner coins, Drink machine. I’m not 100% sure of the point of the final numbersbut I assume its a filler to prevent the game from freezing.
The amount of compares is based on the amount of options in the box. These are unchangeable unless you of course re-point the data of the multi box to an empty space and create new text.
The next part is pretty basic. If you don’t understand it, it should be explained earlier on. compare 0×8000 0x7F is the only real important part of the following lines. The 0x7F displays that you can cancel by pressing the B button. If this isn’t there, you will only be able to quit the box by choosing an option.
And another important part is that the ‘option’s’ don’t work unless the setvar is there. I don’t know why.
You must have forgotten to add the command to the database and/or you should try the #raw 66.

I would suggest switching to XSE as more people will be able to help you, but whatever you do, don't throw in the towel.
__________________

Paired with Simba