View Single Post
  #7454    
Old November 23rd, 2012 (09:18 PM).
AllyJacqui's Avatar
AllyJacqui
The one and only -
 
Join Date: Nov 2012
Location: 'Straya (Australia)
Age: 17
Gender: Female
Nature: Timid
Okay, before i get judged. I'm trying to make the switch between Pokescript and XSE, but I wanted to finsih off a few scripts I started in Pokescript, and I ran into this one:

Spoiler:
#org $start
lock
message $1
boxset 6
applymovement 0xFF $move
pausemove 0x0
message $2
boxset 6
giveitem 184 1
giveitem 27 3
giveitem 4 5
message $3
boxset 6
setvar 0x5000 0x0001
release
end

#org $1
$1 1 =\c\h01\h04Mum: Hey sweetie!\nCan you please come here?

#org $move
$move 1 ; #binary 0x10 0x10 0x10 0x10 0x02 0x63

0xFE

#org $2
$2 1 =\c\h01\h04Mum: Well, first off.\n...\p...\n...\pHAPPY BIRTHDAY!!\pDon't tell me you forgot?!\nJacinta: ...You idiot.\p\c\h01\h08Dad: Hey, Jacinta, don't be rude.\nWell,\v\h01 Since it is your\pBirthday, We managed to get you\nSome small stuff..

#org $3
$3 1 =\c\h01\h04Mum: Don't look so shocked!\nBut you can do us a favour,\pCan you please give Professor Willow\nA visit. She wants to wish\pyou a Happy Birthday too.


Now, this works fine. Up until the end where it gives me a bunch of garbled mess. Aparently, the problem is common. But since I have NO knowledge of XSE, I have no idea where to get the offset after I decompile it, or where to put it. :/
Here's the decompiled version, if that's needed too.

Spoiler:
'-----------------------
#org 0x71A8F8
#raw 02
#raw pointer 0x871A8EE
#raw 00

'-----------------------
#org 0x71A8EE
#raw word 0x5000
#raw word 0x0
#raw pointer 0x88035D0
#raw word 0x0

'-----------------------
#org 0x8035D0
lock
msgbox 0x880361E '"\c\h01ÇMum: Hey Sweetie!\nCan you p..."
callstd 0x6
applymovement MOVE_PLAYER 0x880364D
waitmovement 0x0
msgbox 0x8803654 '"\c\h01ÇMum: Well, first off.\n...\p..."
callstd 0x6
giveitem 0xB8 0x1 0x0
giveitem 0x1B 0x3 0x0
giveitem 0x4 0x5 0x0
msgbox 0x880372E '"\c\h01ÇMum: Don't look so shocked!\..."
callstd 0x6
setvar 0x5000 0x1
release
end


'-----------
' Movements
'-----------
#org 0x80364D
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 10 'Step Down (Normal)
#raw 2 'Face Left
#raw 63 'Question Mark (?)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x80361E
= \c\h01ÇMum: Hey Sweetie!\nCan you please come here?

#org 0x803654
= \c\h01ÇMum: Well, first off.\n...\p...\n...\pHAPPY BIRTHDAY!!\pDon't tell me you forgot?!\nJacinta: ...You idiot.\p\c\h01ËDad: Hey, Jacinta, Don't be rude.\n Well,[player] Since it is your\pBirthday, We managed to get you\nSome small stuff..

#org 0x80372E
= \c\h01ÇMum: Don't look so shocked!\nBut you can do us a favour,\pCan you please give Professor Willow\nA visit. She wants to wish\pyou a happy Birthday too.


Please keep in mind I have NO knowledge of XSE, and this is literally the first time I've used it. Where do I get the offset after I decompiled? There's like ten 'newoffset' s and then, where do I put it? Under the advanced Header? Or on the script block? Both? Help? D":
__________________

~ AllyJacqui, aspiring cosplayer from Sydney Australia ~