View Single Post
  #7614    
Old January 27th, 2013 (12:22 AM).
DrFuji's Avatar
DrFuji
Helfen, Wehren, Heilen
Community Supporter
 
Join Date: Sep 2009
Location: Upside-downia
Age: 21
Gender: Male
Nature: Jolly
Quote:
Originally Posted by thetripplenine View Post
And now it's not even letting me receive the Pokemon, fun..

Spoiler:
'-----------------------
#org 0x9C0B77
checkflag 0x800
if 0x1 goto 0x88000B2
msgbox 0x8845E7E '"A Riolu is in a Pokéball.\pDo you w..."
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x8845D18
msgbox 0x88000E9 '"Well it doesn't seem right, is this..."
callstd 0x6
release
end

'-----------------------
#org 0x8000B2
msgbox 0x8800154 '"Really you want another one!"
callstd 0x6
release
end

'-----------------------
#org 0x845D18
givepokemon 0x27 0x5 0x8B 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8845D4D '"\c\h01ÊFound a RIOLU!"
callstd 0x4
waitfanfare
closeonkeypress
setflag 0x800
msgbox 0x8845D62 '"\c\h01ÊNickname this RIOLU?"
special 0xA1
compare LASTRESULT 0x1
if 0x1 goto 0x88000AB
bufferitem 0x8 0x1FC
if 0xC0 call 0xD8E2E9E3
nop
cmdD5 0xCC00
cmdC3 0xC9
bufferboxname 0xCF 0xFFAB
checkcoins 0xC64B

'-----------------------
#org 0x8000AB
call 0x81A0678
'-----------------------
#org 0x1A0678
fadescreen 0x1

'---------
' Strings
'---------
#org 0x845E7E
= A Riolu is in a Pokéball.\pDo you want a Riolu?

#org 0x8000E9
= Well it doesn't seem right, is this\nan initiation?

#org 0x800154
= Really you want another one!

#org 0x845D4D
= \c\h01ÊFound a RIOLU!

#org 0x845D62
= \c\h01ÊNickname this RIOLU?




Proof that this doesn't let me get the actual pokemon, it's actually really small, click it to make it bigger...
Lol MB
It looks like you've overwritten your initial script without re-pointing the parts of it which you have expanded in this revised version. This is because your offsets haven't changed (your scripts both start at the offset 0x9C0B77) and has led to your script becoming garbled later on. Unless you're doing minor edits (that don't increase the overall length) to an already inserted script then you should be using dynamic offsets like how you originally inserted the script rather than using the decompiled version.

Also, you seem to be using an early version of XSE. Here's a link to XSE 1.1.1 which is far less buggy and alters a few things such as the msgbox commands.

With that, try inserting this with the new version of XSE:

Code:
#dynamic 0x9C0000

#org @start
checkflag 0x800
if 0x1 goto @AnotherPokemon
msgbox @WantRiolu? 0x5
compare 0x800D 0x1
if 0x1 goto @TakeRiolu
msgbox @Initiation 0x2
release
end

#org @AnotherPokemon
msgbox @WantAnother? 0x2
release
end

#org @TakeRiolu
givepokemon 0x27 0x5 0x8B 0x0 0x0 0x0
fanfare 0x13E
msgbox @FoundRiolu 0x4
waitfanfare
closeonkeypress
setflag 0x800
msgbox @NicknameRiolu? 0x5
compare 0x800D 0x1
if 0x1 call @Nickname
release
end

#org @Nickname
fadescreen 0x1
special 0xA1
waitstate
return

#org @WantRiolu?
= A Riolu is in a Pokéball.\pDo you want a Riolu?

#org @Initiation
= Well it doesn't seem right, is this\nan initiation?

#org @WantAnother?
= Really you want another one!

#org @FoundRilolu
= \c\h01ÊFound a RIOLU!

#org @NicknameRiolu?
= \c\h01ÊNickname this RIOLU?
__________________