• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Ever thought it'd be cool to have your art, writing, or challenge runs featured on PokéCommunity? Click here for info - we'd love to spotlight your work!
  • Our weekly protagonist poll is now up! Vote for your favorite Trading Card Game 2 protagonist in the poll by clicking here.
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Archive] Script help thread

Status
Not open for further replies.
that won't work for ScriptED!
The only reason that script wouldn't work is your inserting it wrong.
I think there are some differences between US's computer system and China's...
Wherever I inserted ,It had the only one result !
About ScriptED,I mean that I will learn the grammar of it ,and proof what I guess the problem is.
And when I used Winhex ,I did see that there were something in the 0x800000 ,but I'm not sure wheater it is my script...
 
Ok, I'll try!

Code:
#org $start
checkflag 0x(flag)
if b_true goto $happened
applymovement 0x01 $exclamation
$exclamation 1 ; 0x62 0xFE
pausemove 0
applymovement 0x01 $turn
applymovement 0xFF $turn1
$turn 1 ; 0x02 0xFE
$turn1 1 ; 0x03 0xFE
pausemove 0
message $talk
$talk 1 = SUN YE: Hey, I was looking for you.\pProf. Ahgoo is looking for a person \nthat can take care of a Pokémon.\pYou should go and recieve it...\n
Anyways, I have to go and find the\lYASANGMA CITY train station.
boxset 6
applymovement 0x01 $bye
$bye 1 ; 0x10 0x10 0x12 0x12 0x12 0x10 0x10 0x10 0x10 0x10 0xFE
pausemove 0
#raw 0x53 0x01 0x00
setflag 0x(flag)
release
end

#org $happened
release
end

That wasn't so hard...

Remember to put in People ID(people no. 1) the flag number.


Hey where do I have to put the People ID...

Sorry...

I compiled it but it didn't worked...

Thanks
 
Hi,
whats the problem with this script?
Cause when I step on the script nothing happendes.
#org $start
setflag 0x337

checkflag 0x337
if b_True gosub $move_old_chi
message $payin
$payin 1=The Member fee is 30 poke.\nDo you want become a member?
boxset 5
compare LASTRESULT b_True
if b_True goto $pay
message $no
$no 1=Okay, see you.
setflag 0x338

checkflag 0x338
if b_True gosub $move_old_back
end

#org $move_old_chi
applymovement 0x1 $utropmove_old
pausemove 0
applymovement 0xFF $utropmove_you
pausemove 0
applymovement 0x1 $utropmove_old_2
pausemove 0
return

#org $utropmove_old
#raw 0x56 0x04 0x04 0xFE

#org $utropmove_you
#raw 0x56 0x00 0x04 0x03 0x07 0x01 0xFE

#org $utropmove_old_2
#raw 0x03 0x07 0x00 0xFE
#raw 0x93 0x00 0x00 0x00

#org $move_old_back
applymovement 0x1 $moveback

#org $moveback
#raw 0x01 0x05 0x02 0x06 0x01 0x05 0x00 0xFE
#raw 0x94 0x00 0x00

#org $pay
#raw 0x92
#raw 0xF4
#raw 0x01
#raw 0x01
#raw 0x00
#raw 0x00
#raw 0x91
#raw 0xF4
#raw 0x01
#raw 0x01
#raw 0x00
#raw 0x00
#raw 0x95
message $paynow
$paynow 1= Thank you.\nWelcome \n\01
setflag 0x339
return

And here is that text dump thing from pokescript:
#PROCESS: C:\Documents and Settings\Bengt\Skrivbord\Ruby_USA.gba F:2 for read
----------------------------------------------------------------------------
- Pushed pay membership.$start to 804000
- Pushed pay membership.$payin to 804012
- Pushed pay membership.$no to 804025
- Pushed pay membership.$move_old_chi to 804032
- Pushed pay membership.$utropmove_old to 804051
- Pushed pay membership.$utropmove_you to 804055
- Pushed pay membership.$utropmove_old_2 to 80405C
- Pushed pay membership.$move_old_back to 804064
- Pushed pay membership.$moveback to 80406B
- Pushed pay membership.$pay to 804076
- Pushed pay membership.$paynow to 804089
#PROCESS: C:\Documents and Settings\Bengt\Skrivbord\Ruby_USA.gba F:3 for read
----------------------------------------------------------------------------
- Adjusting pay membership.$move_old_chi in 0 at 8804032
- Adjusting pay membership.$payin in 0 at 8804012
- Adjusting pay membership.$pay in 0 at 8804076
- Adjusting pay membership.$no in 0 at 8804025
- Adjusting pay membership.$move_old_back in 0 at 8804064
- Adjusting pay membership.$utropmove_old in 0 at 8804051
- Adjusting pay membership.$utropmove_you in 0 at 8804055
- Adjusting pay membership.$utropmove_old_2 in 0 at 880405C
- Adjusting pay membership.$moveback in 0 at 880406B
- Adjusting pay membership.$paynow in 0 at 8804089
- Putting [)7+72@€
- Putting [ !
€
- Putting [)8+8d@€] at 804025
- Putting [O
- Putting [Vþ] at 804051
- Putting [V
- Putting [
- Putting [O
- Putting [
- Putting ['ô
- Putting [)9] at 804089
|
\- Processed 0 Lines

//44tim44
 
How can you let a person you're talking to suddenly get a different sprite? Like in FR, first you think it's just some guy, but then he "changes", and it turns out to be a Rocket.
 
I have no idea how to script or edit script or compile script and I need to put some fairly complicated (well, by my standards) into my Ruby hack, could someone please fill me in or, if you the patience, write it in for me?
 
I still have a problem with my script. It only shows the first two lines of text. (Prof. Kauri: Hello \v\h01, \n your turning 14 today\p)

Script:
Spoiler:
 
I think there are some differences between US's computer system and China's...
Wherever I inserted ,It had the only one result !
About ScriptED,I mean that I will learn the grammar of it ,and proof what I guess the problem is.
And when I used Winhex ,I did see that there were something in the 0x800000 ,but I'm not sure wheater it is my script...

Check if it is this. If it's this, then it's your script.
Code:
6A 5A 0F 00 0C 00 80 08 09 06 6C 02 C2 D9 ED 00 FD 01 00 FE C2 
E3 EB E7 00 ED E3 E9 E6 00 DE E3 E9 E6 E2 D9 ED 00 DB E3 DD E2 
DB AC FF

If it's something completely different, then that could be a problem.
 
Check if it is this. If it's this, then it's your script.
Code:
6A 5A 0F 00 0C 00 80 08 09 06 6C 02 C2 D9 ED 00 FD 01 00 FE C2 
E3 EB E7 00 ED E3 E9 E6 00 DE E3 E9 E6 E2 D9 ED 00 DB E3 DD E2 
DB AC FF

If it's something completely different, then that could be a problem.
Sounds that will be terrible...I can just see this:
Code:
6A 5A 0F 00 0C 00 80 08 09 06 6C 02 3F
——80000C
 
I still need help with this script guys
Hi,
whats the problem with this script?
Cause when I step on the script nothing happendes.

#org $start
setflag 0x337

checkflag 0x337
if b_True gosub $move_old_chi
message $payin
$payin 1=The Member fee is 30 poke.\nDo you want become a member?
boxset 5
compare LASTRESULT b_True
if b_True goto $pay
message $no
$no 1=Okay, see you.
setflag 0x338

checkflag 0x338
if b_True gosub $move_old_back
end

#org $move_old_chi
applymovement 0x1 $utropmove_old
pausemove 0
applymovement 0xFF $utropmove_you
pausemove 0
applymovement 0x1 $utropmove_old_2
pausemove 0
return

#org $utropmove_old
#raw 0x56 0x04 0x04 0xFE

#org $utropmove_you
#raw 0x56 0x00 0x04 0x03 0x07 0x01 0xFE

#org $utropmove_old_2
#raw 0x03 0x07 0x00 0xFE
#raw 0x93 0x00 0x00 0x00

#org $move_old_back
applymovement 0x1 $moveback

#org $moveback
#raw 0x01 0x05 0x02 0x06 0x01 0x05 0x00 0xFE
#raw 0x94 0x00 0x00

#org $pay
#raw 0x92
#raw 0xF4
#raw 0x01
#raw 0x01
#raw 0x00
#raw 0x00
#raw 0x91
#raw 0xF4
#raw 0x01
#raw 0x01
#raw 0x00
#raw 0x00
#raw 0x95
message $paynow
$paynow 1= Thank you.\nWelcome \n\01
setflag 0x339
return

And here is that text dump thing from pokescript:

#PROCESS: C:\Documents and Settings\Bengt\Skrivbord\Ruby_USA.gba F:2 for read
----------------------------------------------------------------------------
- Pushed pay membership.$start to 804000
- Pushed pay membership.$payin to 804012
- Pushed pay membership.$no to 804025
- Pushed pay membership.$move_old_chi to 804032
- Pushed pay membership.$utropmove_old to 804051
- Pushed pay membership.$utropmove_you to 804055
- Pushed pay membership.$utropmove_old_2 to 80405C
- Pushed pay membership.$move_old_back to 804064
- Pushed pay membership.$moveback to 80406B
- Pushed pay membership.$pay to 804076
- Pushed pay membership.$paynow to 804089
#PROCESS: C:\Documents and Settings\Bengt\Skrivbord\Ruby_USA.gba F:3 for read
----------------------------------------------------------------------------
- Adjusting pay membership.$move_old_chi in 0 at 8804032
- Adjusting pay membership.$payin in 0 at 8804012
- Adjusting pay membership.$pay in 0 at 8804076
- Adjusting pay membership.$no in 0 at 8804025
- Adjusting pay membership.$move_old_back in 0 at 8804064
- Adjusting pay membership.$utropmove_old in 0 at 8804051
- Adjusting pay membership.$utropmove_you in 0 at 8804055
- Adjusting pay membership.$utropmove_old_2 in 0 at 880405C
- Adjusting pay membership.$moveback in 0 at 880406B
- Adjusting pay membership.$paynow in 0 at 8804089
- Putting [)7+72@€
- Putting [ !

- Putting [)8+8d@€] at 804025
- Putting [O
- Putting [Vþ] at 804051
- Putting [V
- Putting [
- Putting [O
- Putting [
- Putting ['ô
- Putting [)9] at 804089
|
\- Processed 0 Lines

//44tim44

I hope you can help me...


//44tim44
 
Sounds that will be terrible...I can just see this:
Code:
6A 5A 0F 00 0C 00 80 08 09 06 6C 02 3F
——80000C

Well then, sounds like a problem with your bit of your script where the person speaks..
Why dont you try using scriptEd, its not much different from pokescript, its just you have to use offsets instead of $howareyou. So instead of $howareyou it would be #org 0x80000C...
I will write the script for you in ScriptEd language:
Spoiler:


Well, its that simple, just first go to the place of 800000 in your hex editor and delete your script you have at the moment by replacing all those hex codes you see at 800000 with FF until it reaches the rest of the FFs.

I still need help with this script guys


I hope you can help me...


//44tim44

Well, in Advance map have you made the values the values needed for a script that you walk over to work?
If you havn't you need this:
1. Click on the Green S in events view. On the left there will be all this stuff.
2 Under Pos(X/Y) you should see "Unknown".
3. In the "Unknown" boxes but this: 03 00
4. Underneath "Unknown" there should be "Var Number".
5. In "Var Number" put in the boxes: 50 40
6. No step, all done :D

That should make the script walk-over-able and make the script trigger if you havnt already done so..
If you have..then i will have a look at the script..
 
Last edited:
Sounds that will be terrible...I can just see this:
Code:
6A 5A 0F 00 0C 00 80 08 09 06 6C 02 3F
——80000C
No, Jerry, no, thethethethe...I input all the code to 0x800000, everthing becomes well...Do we really have to work directly with Hex? Oh, my eyes...

In fact, the similar thing happened when i use A-Text. When I save the text, it cuts the words so its not the entire word...All become blank, only the "é" ia left...sSomething wrong with the rom?
 
Last edited:
Well then, sounds like a problem with your bit of your script where the person speaks..
Why dont you try using scriptEd, its not much different from pokescript, its just you have to use offsets instead of $howareyou. So instead of $howareyou it would be #org 0x80000C...
I will write the script for you in ScriptEd language:
Spoiler:
Spoiler:


Well, its that simple, just first go to the place of 800000 in your hex editor and delete your script you have at the moment by replacing all those hex codes you see at 800000 with FF until it reaches the rest of the FFs.



Well, in Advance map have you made the values the values needed for a script that you walk over to work?
If you havn't you need this:
1. Click on the Green S in events view. On the left there will be all this stuff.
2 Under Pos(X/Y) you should see "Unknown".
3. In the "Unknown" boxes but this: 03 00
4. Underneath "Unknown" there should be "Var Number".
5. In "Var Number" put in the boxes: 50 40
6. No step, all done :D

That should make the script walk-over-able and make the script trigger if you havnt already done so..
If you have..then i will have a look at the script..
Thanks a lot for telling me this,I just asked ZEL about scriptEd yesterday.
But I just can't beleive that the pokescript couldn't work ! Maybe scriptEd will make the same mistake......
Whatever,I'll try this on scriptEd,thanks~
TO roywillow: Of course it's useful to input code in hex...but the problem is why progtame cannot...
 
Hi can someone please tell me what to do with this script
is not right I would be very happy if someone can help me


#org $begin
checkflag 0x201
if B_true goto $done
playsound 0x1E4
#raw 0x0
applymovement 0x02 $move1
message $talk1
boxset 6
applymovement 0xFF $move2
applymovement 0x02 $move3
pause 0x60
message $talk2
boxset 6
applymovement 0x02 $move4
applymovement 0xFF $move4
pause 0x60
message talk3
playsound 0x195
release
end

#org $done
release
end

#org $talk1
$talk1 1 = Hey, Warte.

#org $talk2
$talk2 1 = Was denkst du wo du \nhin gehst.

#org $talk3
$talk3 1 = Es ist gefährlich da \ndrausen.

#org $move1
#raw 0xFE

#org $move2
#raw 0xFE

#org $move3
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org $move4
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0xFE

#org $move4
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0xFE
 
Hi can someone please tell me what to do with this script
is not right I would be very happy if someone can help me


#org $begin
checkflag 0x201
if B_true goto $done
playsound 0x1E4
#raw 0x0
applymovement 0x02 $move1
pausemove 0
message $talk1
boxset 6
applymovement 0xFF $move2
applymovement 0x02 $move3
pausemove 0
message $talk2
boxset 6
applymovement 0x02 $move4
applymovement 0xFF $move4
pausemove 0
message $talk3
boxset 6
playsound 0x195
release
end

#org $done
release
end

#org $talk1
$talk1 1 = Hey, Warte.

#org $talk2
$talk2 1 = Was denkst du wo du \nhin gehst.

#org $talk3
$talk3 1 = Es ist gefährlich da \ndrausen.

#org $move1
#raw 0xFE

#org $move2
#raw 0xFE

#org $move3
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org $move4
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0xFE

#org $move4
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0xFE

Well, to make it easier, put:
pausemove 0 instead of pause 0x(whatever)
I think you forgot to put one too.
Try it now:
 
Did you installed PkmnAdv in the PokeWitch-Folder?
By the way, I understand what you're writing at talk (I speak German).
 
Well then, sounds like a problem with your bit of your script where the person speaks..
Why dont you try using scriptEd, its not much different from pokescript, its just you have to use offsets instead of $howareyou. So instead of $howareyou it would be #org 0x80000C...
I will write the script for you in ScriptEd language:
Spoiler:


Well, its that simple, just first go to the place of 800000 in your hex editor and delete your script you have at the moment by replacing all those hex codes you see at 800000 with FF until it reaches the rest of the FFs.



Well, in Advance map have you made the values the values needed for a script that you walk over to work?
If you havn't you need this:
1. Click on the Green S in events view. On the left there will be all this stuff.
2 Under Pos(X/Y) you should see "Unknown".
3. In the "Unknown" boxes but this: 03 00
4. Underneath "Unknown" there should be "Var Number".
5. In "Var Number" put in the boxes: 50 40
6. No step, all done :D

That should make the script walk-over-able and make the script trigger if you havnt already done so..
If you have..then i will have a look at the script..


Giovanni:
I already had those values, you talked about, inserted.
...So what is wrong with my script?

//44tim44
 
The problem is not that the script has an error
Or he is misspelled
 
Status
Not open for further replies.
Back
Top