The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page [Archive] Script help thread

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Closed Thread
 
Thread Tools
  #76   Link to this post, but load the entire thread.  
Old December 25th, 2007 (3:34 PM).
Deokishisu's Avatar
Deokishisu Deokishisu is offline
Mr. Magius
 
Join Date: Feb 2006
Location: If I'm online, it's a safe bet I'm at a computer.
Gender: Male
Nature: Relaxed
Posts: 984
WARINING! Kinda big script in spoiler!

Spoiler:
#org 0x7214B0
lock
checkflag 0x828
if 0x1 goto 0x7215a0
checkflag 0x110
if 0x1 goto 0x721604
applymovement 0x1 0x721be0
pause 0x1
msgbox 0x72202c
callstd 0x4
applymovement 0x1 0x721c44
pause 0x0
applymovement 0xFF 0x721ca8
pause 0x20
msgbox 0x7222ef
callstd 0x4
applymovement 0x1 0x721d0c
goto 0x721668
release
end

#org 0x721668
msgbox 0x722284
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7216cc
msgbox 0x721f64
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721730
msgbox 0x722090
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721794
msgbox 0x721f00
callstd 0x4
goto 0x721668
release
end

#org 0x7216cc
msgbox 0x722158
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7217f8
msgbox 0x721fc8
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x72185c
msgbox 0x7220f4
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7218c0
msgbox 0x721f00
callstd 0x4
goto 0x7216cc
release
end

#org 0x7217f8
setflag 0x101
goto 0x721b7c
release
end

#org 0x72185c
setflag 0x102
goto 0x721b7c
release
end

#org 0x7218c0
setflag 0x103
goto 0x721b7c
release
end

#org 0x721730
msgbox 0x722158
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721924
msgbox 0x721fc8
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721988
msgbox 0x7220f4
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7219ec
msgbox 0x721f00
callstd 0x4
goto 0x721730
release
end

#org 0x721924
setflag 0x104
goto 0x721b7c
release
end

#org 0x721988
setflag 0x105
goto 0x721b7c
release
end

#org 0x7219ec
setflag 0x106
goto 0x721b7c
release
end

#org 0x721794
msgbox 0x722158
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721a50
msgbox 0x721fc8
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721ab4
msgbox 0x7220f4
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721b18
msgbox 0x721f00
callstd 0x4
goto 0x721794
release
end

#org 0x721a50
setflag 0x107
goto 0x721b7c
release
end

#org 0x721ab4
setflag 0x108
goto 0x721b7c
release
end

#org 0x721b18
setflag 0x109
goto 0x721b7c
release
end

#org 0x721b7c
applymovement 0x2 0x721d70
pause 0x0
applymovement 0x1 0x721e38
pause 0x0
msgbox 0x7221bc
callstd 0x4
setflag 0x110
release
end

#org 0x721604
msgbox 0x722220
callstd 0x4
applymovement 0xFF 0x721e9c
pause 0x10
release
end

#org 0x7215a0
release
end

#org 0x721Be0
#raw 0x62
#raw 0x4
#raw 0xFE

#org 0x721c44
#raw 0x1
#raw 0xFE

#org 0x721ca8
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x11
#raw 0x2
#raw 0xFE

#org 0x721d0c
#raw 0x3
#raw 0xFE

#org 0x721d70
#raw 0x4
#raw 0xFE

#raw 0x721e38
#raw 0x62
#raw 0x1
#raw 0xFE

#org 0x721e9c
#raw 0x11
#raw 0xFE

#org 0x72202c
= \c\h01ËDR. PINE: \v\h01!\nCome over here.

#org 0x7222ef
= \c\h01ËThis is what I wanted to show you.\nI found this secret cavern.\lIt leads much deeper into THE RUINS.\pNow, we have more than just\nthis chamber to study[.]

#org 0x722284
= \c\h01ËTell me, would you prefer to study\nthings from far in the past,\lthings in the present, or\lthings yet to come?\pDo you like the past?

#org 0x721f64
= \c\h01ËSo, you like the present?

#org 0x722090
= \c\h01ËThen, you like what's yet to come?

#org 0x721f00
= \c\h01ËOh, you have to like one!

#org 0x722158
= \c\h01ËWould you like to study it near a volcano?

#org 0x721fc8
= \c\h01ËOh, how about near a forest?

#org 0x7220f4
= \c\h01ËSo, you'd prefer to study near a lake?

#org 0x7221bc
= \c\h01Ë\v\h01!\nGrab my POKéMON, it's in the POKé BALL!

#org 0x722220
= Wait, \v\h01!\pYou're not going to leave me here,\nare you?


So, it's supposed to move you, someone's supposed to speak and then move. Then it asks you questions and, depending on what you say yes to, it sets a flag. If you keep saying no, it'll repeat the questions. Then another event is supposed to move, the one that spoke is supposed to have an exclamation point appear over his head, and then it sets a flag and ends. If you walk over the trigger event again, it says something and moves you upward.

This is part one of a two part script. Problem is, I get an overflow error. I checked it over and I'm not sure what I did wrong. Does anyone else see any problems with it? Can someone help me out?
  #77   Link to this post, but load the entire thread.  
Old December 25th, 2007 (3:53 PM).
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 28
Gender: Male
Nature: Impish
Posts: 1,148
Well, The only time that happens to me is when I Encode it through poketscript(App)
__________________

  #78   Link to this post, but load the entire thread.  
Old December 26th, 2007 (4:33 AM).
Satoshi Sugimori's Avatar
Satoshi Sugimori Satoshi Sugimori is offline
Hermit
 
Join Date: Dec 2006
Location: Tokyo, Japan
Age: 30
Gender: Male
Nature: Timid
Posts: 860
Spoiler:
#org $balievrouw
lock
faceplayer
message $airtalk
$airtalk 1 =Welcome to Brazoon Airlines!\nCan I help you?
boxset 5
compare LASTRESULT B_TRUE
if B_False goto $no
message $yes
$yes 1 =Do you want to fly somewhere?
boxset 5
compare LASTRESULT B_TRUE
if B_False goto $no2
message $yes2
$yes2 1 =Do you have a ticket?
boxset 5
compare LASTRESULT B_TRUE
if B_False goto $no3
message $yes3
$yes3 1 =Than you have to go to \nthe gentleman nest to me.
boxset 6
release
end

#org $no
lock
faceplayer
$no 1 =Alright.\nHave a nice day.\nSee you the next time!
boxset 6
release
end

#org $no2
lock
faceplayer
$no2 1 =Sorry.\nBut then I can't help you.
boxset 6
release
end

#org $no3
lock
faceplayer
$no3 1 =Sorry.\nBut then I can't help you.
boxset 6
release
end



Spoiler:
#org $securityguy
lock
faceplayer
checkitem 0x79
if B_true goto $follow
message $nonono
$nonono 1 =You don't have a ticket \nso I can't help you.
boxset 6
release
end

#org $follow
lock
faceplayer
message $board
$board 1 =Do you want to go on the plane?
boxset 5
compare LASTRESULT B_TRUE
if B_false goto $nono
message $alright
$alright 1 =Alright!\nFollow me then!
boxset 6
applymovement 0x3 $followme
applymovement 0xFF $followme
pausemove 0
applymovement 0x3 $followme2
applymovement 0xFF $followme2
pausemove 0
message $goin
$goin 1 =All aboard!
boxset 6
applymovement 0x3 $get
pausemove 0
release
end

#org $nono
lock
faceplayer
Message $next
$next 1 =Alright see you next time!
boxset 6
release
end

#org $followme
$followme 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE

#org $followme2
$followme2 1 ; #binary 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org $get
$get 1 ; #binary 0x13 0x11 0x11 0x11 0x11 0x12 0x11 0x11 0xFE


Can someone check my scripts please (I really suck at YES/NO...XD)
Thanks in advance..:)
__________________
  #79   Link to this post, but load the entire thread.  
Old December 26th, 2007 (5:51 AM).
Kristian's Avatar
Kristian Kristian is offline
 
Join Date: Sep 2007
Location: Norway? :b
Nature: Calm
Posts: 170
Quote:
Originally Posted by Poke-Roy View Post
Spoiler:
#org $balievrouw
lock
faceplayer
message $airtalk
$airtalk 1 =Welcome to Brazoon Airlines!\nCan I help you?
boxset 5
compare LASTRESULT B_TRUE
if B_False goto $no
message $yes
$yes 1 =Do you want to fly somewhere?
boxset 5
compare LASTRESULT B_TRUE
if B_False goto $no2
message $yes2
$yes2 1 =Do you have a ticket?
boxset 5
compare LASTRESULT B_TRUE
if B_False goto $no3
message $yes3
$yes3 1 =Than you have to go to \nthe gentleman nest to me.
boxset 6
release
end

#org $no
lock
faceplayer
$no 1 =Alright.\nHave a nice day.\nSee you the next time!
boxset 6
release
end

#org $no2
lock
faceplayer
$no2 1 =Sorry.\nBut then I can't help you.
boxset 6
release
end

#org $no3
lock
faceplayer
$no3 1 =Sorry.\nBut then I can't help you.
boxset 6
release
end



Spoiler:
#org $securityguy
lock
faceplayer
checkitem 0x79
if B_true goto $follow
message $nonono
$nonono 1 =You don't have a ticket \nso I can't help you.
boxset 6
release
end

#org $follow
lock
faceplayer
message $board
$board 1 =Do you want to go on the plane?
boxset 5
compare LASTRESULT B_TRUE
if B_false goto $nono
message $alright
$alright 1 =Alright!\nFollow me then!
boxset 6
applymovement 0x3 $followme
applymovement 0xFF $followme
pausemove 0
applymovement 0x3 $followme2
applymovement 0xFF $followme2
pausemove 0
message $goin
$goin 1 =All aboard!
boxset 6
applymovement 0x3 $get
pausemove 0
release
end

#org $nono
lock
faceplayer
Message $next
$next 1 =Alright see you next time!
boxset 6
release
end

#org $followme
$followme 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE

#org $followme2
$followme2 1 ; #binary 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org $get
$get 1 ; #binary 0x13 0x11 0x11 0x11 0x11 0x12 0x11 0x11 0xFE


Can someone check my scripts please (I really suck at YES/NO...XD)
Thanks in advance..:)
The first one: (I redid the script)
Spoiler:
#org $balievrouw
lock
faceplayer
message $airtalk
$airtalk 1 = Welcome to Brazoon Airlines!\nCan I help you?
callstd 5
compare LASTRESULT 1
if 0 goto $no
message $yes
$yes 1 = Do you want to fly somewhere?
callstd 5
compare LASTRESULT 1
if 0 goto $no1
message $yes23
$yes23 1 =Do you have a ticket?
boxset 5
compare LASTRESULT 1
if 0 goto $no2
message $yes2
$yes2 1 = Than you have to go to\nthe gentleman next to me.
callstd 6
release
end

#org $no
message $no11
$no11 1 = Alright.\nHave a nice day.\pSee you next time!
callstd 6
release
end

#org $no1
message $no22
$no22 1 = Sorry.\nBut then I can't help you.
callstd 6
release
end

#org $no2
message $no123
$no123 1 =Sorry.\nBut then I can't help you.
callstd 6
release
end

#org $no3
message $no33
$no33 1 = Sorry.\nBut then I can't help you.
callstd 6
release
end
  #80   Link to this post, but load the entire thread.  
Old December 26th, 2007 (6:16 AM).
Satoshi Sugimori's Avatar
Satoshi Sugimori Satoshi Sugimori is offline
Hermit
 
Join Date: Dec 2006
Location: Tokyo, Japan
Age: 30
Gender: Male
Nature: Timid
Posts: 860
Quote:
Originally Posted by Kristian View Post
The first one: (I redid the script)
Spoiler:
#org $balievrouw
lock
faceplayer
message $airtalk
$airtalk 1 = Welcome to Brazoon Airlines!\nCan I help you?
callstd 5
compare LASTRESULT 1
if 0 goto $no
message $yes
$yes 1 = Do you want to fly somewhere?
callstd 5
compare LASTRESULT 1
if 0 goto $no1
message $yes23
$yes23 1 =Do you have a ticket?
boxset 5
compare LASTRESULT 1
if 0 goto $no2
message $yes2
$yes2 1 = Than you have to go to\nthe gentleman next to me.
callstd 6
release
end

#org $no
message $no11
$no11 1 = Alright.\nHave a nice day.\pSee you next time!
callstd 6
release
end

#org $no1
message $no22
$no22 1 = Sorry.\nBut then I can't help you.
callstd 6
release
end

#org $no2
message $no123
$no123 1 =Sorry.\nBut then I can't help you.
callstd 6
release
end

#org $no3
message $no33
$no33 1 = Sorry.\nBut then I can't help you.
callstd 6
release
end
Thanks..:)
I'll try it..:D
__________________
  #81   Link to this post, but load the entire thread.  
Old December 26th, 2007 (7:59 AM).
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 28
Gender: Male
Nature: Impish
Posts: 1,148
Quote:
Originally Posted by cooley View Post
First Problem with a script in a Long time, hehe....
Well First, the script doesn't make entei appear, and it's like a Invisible entei jumping on trees!

Second the Cry doesn't work, Third, The Message "\v\h01: Put the NUGGET in the Items poket" Doesn't disappear, ....Well, Everything after

"Applymovement 0xFF $turn" Doesn't work.

Code:
#org $start
lock
message $neck
$neck 1 = \v\h01: Mom's Neckalace. Take it?
boxset 5
compare LASTRESULT 1
if 1 goto $got
message $put
$put 1 = \v\h01 left it there.
boxset 6
release
end

#org $got
giveitem 0x6E 1
#raw 0x53 0x01 0x00
#raw 0x55  0x02 0x00
applymovement 0x02 $entei
pausemove 0
applymovement 0xFF $turn
$turn 1 ; 0x2E 0x62 0xFE
pausemove 0
cry 0xF4
pause 0x28
message $scare
$scare 1 = \c\h01\h08\v\h01: AHHHHHH!!!!!!
boxset 6
applymovement 0x02 $jmp
$jmp 1 ; 0x14 0x4E 0x4E 0x4E 0x4E 0x4E 0x4E
pausemove 0
#raw 53
#raw 02
nop
message $have
$have 1 = \c\h01\h08\v\h01: You don't see that every\nday.\lI have to tell someone!
boxset 6
setflag 0x202
release
end

#org $entei
#raw 0x51 0x51 0x4F 0x4F 0x51 0x51 0x51 0x51 0x51
#raw 0x51 0xFE
I had to refer to thethethethe's hex tutorial to try and fix it!
Anyone willing to help out?
Anyone? I plan on releasing my hack today(Not on these forums), I can't release it without this script.
__________________

  #82   Link to this post, but load the entire thread.  
Old December 26th, 2007 (8:26 AM).
Deokishisu's Avatar
Deokishisu Deokishisu is offline
Mr. Magius
 
Join Date: Feb 2006
Location: If I'm online, it's a safe bet I'm at a computer.
Gender: Male
Nature: Relaxed
Posts: 984
Code:
#org $start
lock
message $neck
$neck 1 = \v\h01: Mom's Neckalace. Take it?
boxset 5
compare LASTRESULT 1
if 1 goto $got
message $put
$put 1 = \v\h01 left it there.
boxset 6
release
end

#org $got
giveitem 0x6E 1
#raw 0x53 0x01 0x00
#raw 0x55  0x02 0x00
applymovement 0x02 $entei
pausemove 0
applymovement 0xFF $turn
$turn 1 ; 0x2E 0x62 0xFE
pausemove 0
cry 0xF4
pause 0x28
message $scare
$scare 1 = \c\h01\h08\v\h01: AHHHHHH!!!!!!
boxset 6
applymovement 0x02 $jmp
$jmp 1 ; 0x14 0x4E 0x4E 0x4E 0x4E 0x4E 0x4E
pausemove 0
#raw 53
#raw 02
nop
message $have
$have 1 = \c\h01\h08\v\h01: You don't see that every\nday.\lI have to tell someone!
boxset 6
setflag 0x202
release
end

#org $entei
#raw 0x51 0x51 0x4F 0x4F 0x51 0x51 0x51 0x51 0x51
#raw 0x51 0xFE
Well, I don't use Pokescript, so don't know if I'll be much help. On "#org $entei" you look to be missing an "0xFE" on the first line of the "#raw."

Also, the ScriptEd command for the cry requires an "0xA1" before the Pokemon's hex number, then two "nop" commands. Like this:

Code:
cry 0xA1 0xpkmn
nop
nop
I'm not sure if PokeScript requires this, but it's worth a shot right? I hope I was of some help.

Spoiler:
#org 0x7214B0
lock
checkflag 0x828
if 0x1 goto 0x7215a0
checkflag 0x110
if 0x1 goto 0x721604
applymovement 0x1 0x721be0
pause 0x1
msgbox 0x72202c
callstd 0x4
applymovement 0x1 0x721c44
pause 0x0
applymovement 0xFF 0x721ca8
pause 0x20
msgbox 0x7222ef
callstd 0x4
applymovement 0x1 0x721d0c
goto 0x721668
release
end

#org 0x721668
msgbox 0x722284
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7216cc
msgbox 0x721f64
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721730
msgbox 0x722090
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721794
msgbox 0x721f00
callstd 0x4
goto 0x721668
release
end

#org 0x7216cc
msgbox 0x722158
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7217f8
msgbox 0x721fc8
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x72185c
msgbox 0x7220f4
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7218c0
msgbox 0x721f00
callstd 0x4
goto 0x7216cc
release
end

#org 0x7217f8
setflag 0x101
goto 0x721b7c
release
end

#org 0x72185c
setflag 0x102
goto 0x721b7c
release
end

#org 0x7218c0
setflag 0x103
goto 0x721b7c
release
end

#org 0x721730
msgbox 0x722158
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721924
msgbox 0x721fc8
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721988
msgbox 0x7220f4
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7219ec
msgbox 0x721f00
callstd 0x4
goto 0x721730
release
end

#org 0x721924
setflag 0x104
goto 0x721b7c
release
end

#org 0x721988
setflag 0x105
goto 0x721b7c
release
end

#org 0x7219ec
setflag 0x106
goto 0x721b7c
release
end

#org 0x721794
msgbox 0x722158
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721a50
msgbox 0x721fc8
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721ab4
msgbox 0x7220f4
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721b18
msgbox 0x721f00
callstd 0x4
goto 0x721794
release
end

#org 0x721a50
setflag 0x107
goto 0x721b7c
release
end

#org 0x721ab4
setflag 0x108
goto 0x721b7c
release
end

#org 0x721b18
setflag 0x109
goto 0x721b7c
release
end

#org 0x721b7c
applymovement 0x2 0x721d70
pause 0x0
applymovement 0x1 0x721e38
pause 0x0
msgbox 0x7221bc
callstd 0x4
setflag 0x110
release
end

#org 0x721604
msgbox 0x722220
callstd 0x4
applymovement 0xFF 0x721e9c
pause 0x10
release
end

#org 0x7215a0
release
end

#org 0x721Be0
#raw 0x62
#raw 0x4
#raw 0xFE

#org 0x721c44
#raw 0x1
#raw 0xFE

#org 0x721ca8
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x11
#raw 0x2
#raw 0xFE

#org 0x721d0c
#raw 0x3
#raw 0xFE

#org 0x721d70
#raw 0x4
#raw 0xFE

#raw 0x721e38
#raw 0x62
#raw 0x1
#raw 0xFE

#org 0x721e9c
#raw 0x11
#raw 0xFE

#org 0x72202c
= \c\h01ËDR. PINE: \v\h01!\nCome over here.

#org 0x7222ef
= \c\h01ËThis is what I wanted to show you.\nI found this secret cavern.\lIt leads much deeper into THE RUINS.\pNow, we have more than just\nthis chamber to study[.]

#org 0x722284
= \c\h01ËTell me, would you prefer to study\nthings from far in the past,\lthings in the present, or\lthings yet to come?\pDo you like the past?

#org 0x721f64
= \c\h01ËSo, you like the present?

#org 0x722090
= \c\h01ËThen, you like what's yet to come?

#org 0x721f00
= \c\h01ËOh, you have to like one!

#org 0x722158
= \c\h01ËWould you like to study it near a volcano?

#org 0x721fc8
= \c\h01ËOh, how about near a forest?

#org 0x7220f4
= \c\h01ËSo, you'd prefer to study near a lake?

#org 0x7221bc
= \c\h01Ë\v\h01!\nGrab my POKéMON, it's in the POKé BALL!

#org 0x722220
= Wait, \v\h01!\pYou're not going to leave me here,\nare you?


^ Can anyone help this script? It's ScriptEd based.
  #83   Link to this post, but load the entire thread.  
Old December 26th, 2007 (8:52 AM).
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 28
Gender: Male
Nature: Impish
Posts: 1,148
Thanks. What's wrong with you're Huge script?
__________________

  #84   Link to this post, but load the entire thread.  
Old December 26th, 2007 (8:57 AM).
Deokishisu's Avatar
Deokishisu Deokishisu is offline
Mr. Magius
 
Join Date: Feb 2006
Location: If I'm online, it's a safe bet I'm at a computer.
Gender: Male
Nature: Relaxed
Posts: 984
Quote:
Originally Posted by cooley View Post
Thanks. What's wrong with you're Huge script?
Quote:
Originally Posted by Deokishisu
So, it's supposed to move you, someone's supposed to speak and then move. Then it asks you questions and, depending on what you say yes to, it sets a flag. If you keep saying no, it'll repeat the questions. Then another event is supposed to move, the one that spoke is supposed to have an exclamation point appear over his head, and then it sets a flag and ends. If you walk over the trigger event again, it says something and moves you upward.

This is part one of a two part script. Problem is, I get an overflow error. I checked it over and I'm not sure what I did wrong.
That's what's wrong. It's an overflow error. Problem is, I don't see anything wrong with the script, but obviously, there is.
  #85   Link to this post, but load the entire thread.  
Old December 26th, 2007 (9:24 AM).
akash's Avatar
akash akash is offline
Pikachu is the best.
 
Join Date: Dec 2007
Location: India
Age: 29
Gender:
Nature: Calm
Posts: 21
Well in elite map it says ctrl+click to view script. But when I ctrl+click the script Ed opens but it is always blank. Please help me dont just ignore it please.
__________________




Need help in pokemon ruby hack for:
Title screen editing.
Scripting.
How to add warps.
editing maps.

  #86   Link to this post, but load the entire thread.  
Old December 26th, 2007 (9:46 AM). Edited December 26th, 2007 by cooley.
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 28
Gender: Male
Nature: Impish
Posts: 1,148
Quote:
Originally Posted by Deokishisu View Post
WARINING! Kinda big script in spoiler!

Spoiler:
#org 0x7214B0
lock
checkflag 0x828
if 0x1 goto 0x7215a0
checkflag 0x110
if 0x1 goto 0x721604
applymovement 0x1 0x721be0
pause 0x1
msgbox 0x72202c
callstd 0x4
applymovement 0x1 0x721c44
pause 0x0
applymovement 0xFF 0x721ca8
pause 0x20
msgbox 0x7222ef
callstd 0x4
applymovement 0x1 0x721d0c
goto 0x721668
release
end

#org 0x721668
msgbox 0x722284
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7216cc
msgbox 0x721f64
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721730
msgbox 0x722090
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721794
msgbox 0x721f00
callstd 0x4
goto 0x721668
release
end

#org 0x7216cc
msgbox 0x722158
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7217f8
msgbox 0x721fc8
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x72185c
msgbox 0x7220f4
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7218c0
msgbox 0x721f00
callstd 0x4
goto 0x7216cc
release
end

#org 0x7217f8
setflag 0x101
goto 0x721b7c
release
end

#org 0x72185c
setflag 0x102
goto 0x721b7c
release
end

#org 0x7218c0
setflag 0x103
goto 0x721b7c
release
end

#org 0x721730
msgbox 0x722158
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721924
msgbox 0x721fc8
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721988
msgbox 0x7220f4
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x7219ec
msgbox 0x721f00
callstd 0x4
goto 0x721730
release
end

#org 0x721924
setflag 0x104
goto 0x721b7c
release
end

#org 0x721988
setflag 0x105
goto 0x721b7c
release
end

#org 0x7219ec
setflag 0x106
goto 0x721b7c
release
end

#org 0x721794
msgbox 0x722158
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721a50
msgbox 0x721fc8
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721ab4
msgbox 0x7220f4
callstd 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x721b18
msgbox 0x721f00
callstd 0x4
goto 0x721794
release
end

#org 0x721a50
setflag 0x107
goto 0x721b7c
release
end

#org 0x721ab4
setflag 0x108
goto 0x721b7c
release
end

#org 0x721b18
setflag 0x109
goto 0x721b7c
release
end

#org 0x721b7c
applymovement 0x2 0x721d70
pause 0x0
applymovement 0x1 0x721e38
pause 0x0
msgbox 0x7221bc
callstd 0x4
setflag 0x110
release
end

#org 0x721604
msgbox 0x722220
callstd 0x4
applymovement 0xFF 0x721e9c
pause 0x10
release
end

#org 0x7215a0
release
end

#org 0x721Be0
#raw 0x62
#raw 0x4
#raw 0xFE

#org 0x721c44
#raw 0x1
#raw 0xFE

#org 0x721ca8
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x11
#raw 0x2
#raw 0xFE

#org 0x721d0c
#raw 0x3
#raw 0xFE

#org 0x721d70
#raw 0x4
#raw 0xFE

#raw 0x721e38
#raw 0x62
#raw 0x1
#raw 0xFE

#org 0x721e9c
#raw 0x11
#raw 0xFE

#org 0x72202c
= \c\h01ËDR. PINE: \v\h01!\nCome over here.

#org 0x7222ef
= \c\h01ËThis is what I wanted to show you.\nI found this secret cavern.\lIt leads much deeper into THE RUINS.\pNow, we have more than just\nthis chamber to study[.]

#org 0x722284
= \c\h01ËTell me, would you prefer to study\nthings from far in the past,\lthings in the present, or\lthings yet to come?\pDo you like the past?

#org 0x721f64
= \c\h01ËSo, you like the present?

#org 0x722090
= \c\h01ËThen, you like what's yet to come?

#org 0x721f00
= \c\h01ËOh, you have to like one!

#org 0x722158
= \c\h01ËWould you like to study it near a volcano?

#org 0x721fc8
= \c\h01ËOh, how about near a forest?

#org 0x7220f4
= \c\h01ËSo, you'd prefer to study near a lake?

#org 0x7221bc
= \c\h01Ë\v\h01!\nGrab my POKéMON, it's in the POKé BALL!

#org 0x722220
= Wait, \v\h01!\pYou're not going to leave me here,\nare you?


So, it's supposed to move you, someone's supposed to speak and then move. Then it asks you questions and, depending on what you say yes to, it sets a flag. If you keep saying no, it'll repeat the questions. Then another event is supposed to move, the one that spoke is supposed to have an exclamation point appear over his head, and then it sets a flag and ends. If you walk over the trigger event again, it says something and moves you upward.

This is part one of a two part script. Problem is, I get an overflow error. I checked it over and I'm not sure what I did wrong. Does anyone else see any problems with it? Can someone help me out?
It works fine for me, I even played the game and it worked perfectly.
If you want I could compile it for you, but we'll talk over PM.

@akash: You have to go to Tools> Folder Options > then "View" Tab > Uncheck "Hide File extenstions for known files"
It should work now.

Is there a way to deactivate scripts from a trigger? Is there a command?
__________________

  #87   Link to this post, but load the entire thread.  
Old December 26th, 2007 (9:57 AM).
+Sneasel™'s Avatar
+Sneasel™ +Sneasel™ is offline
It's a meeee, itman!
 
Join Date: May 2007
Location: None of your business!
Age: 29
Gender:
Nature: Lonely
Posts: 1,032
O.K., i just figured out how to put a simple script in. Now, i tried to applymovements. First, before i make my own, i wanted to see if i can insert it correctily. So i copied the one follump did in his tutorial and used it. The one where the aid walks 3 steps and gives you a potion. But first off here is the script (it should work, it was from the tutorial)

#ORG $begin
checkflag 0x200
if B_true goto $done
applymovement 0x01 $aidwalk1
pause 0x30
message $aidtalk
boxset 6
giveitem 0xD
setflag 0x200
release
end

#org $done
release
end

#org $aidwalk1
$aidwalk1 1 ; #binary 0x13 0x13 0x13 0xFE

#org $aidtalk
$aidtalk 1 = Oh, hello \v\h01.\pHere, take this potion!

So i imputed it like this. ($80005B isthe script offset)



Both the aid on the right and the green script square have this offset. BUt what happens is it freezes when i walk on the green script square and when i talk to the aid, he says what he would normally say but without walking over toward the player.

Please help!
  #88   Link to this post, but load the entire thread.  
Old December 26th, 2007 (10:10 AM).
Deokishisu's Avatar
Deokishisu Deokishisu is offline
Mr. Magius
 
Join Date: Feb 2006
Location: If I'm online, it's a safe bet I'm at a computer.
Gender: Male
Nature: Relaxed
Posts: 984
@cooley: I still get the error. How 'bout I PM you and we talk more, like you said. And what do you mean by "deactivate scripts from a trigger?"

Quote:
Originally Posted by itman1234 View Post
O.K., i just figured out how to put a simple script in. Now, i tried to applymovements. First, before i make my own, i wanted to see if i can insert it correctily. So i copied the one follump did in his tutorial and used it. The one where the aid walks 3 steps and gives you a potion. But first off here is the script (it should work, it was from the tutorial)

#ORG $begin
checkflag 0x200
if B_true goto $done
applymovement 0x01 $aidwalk1
pause 0x30
message $aidtalk
boxset 6
giveitem 0xD
setflag 0x200
release
end

#org $done
release
end

#org $aidwalk1
$aidwalk1 1 ; #binary 0x13 0x13 0x13 0xFE

#org $aidtalk
$aidtalk 1 = Oh, hello \v\h01.\pHere, take this potion!

So i imputed it like this. ($80005B isthe script offset)



Both the aid on the right and the green script square have this offset. BUt what happens is it freezes when i walk on the green script square and when i talk to the aid, he says what he would normally say but without walking over toward the player.

Please help!
Your green script square (I'll call it a trigger from now on) needs to have the right values. When you click on the trigger event, on the right hand side of A-Map, there should be some values that you can fill in (flag value, flag number, unknown, and unknown.) Try inputting these for those values, then try again:

03 00
7C 40
00 00
00 00
  #89   Link to this post, but load the entire thread.  
Old December 26th, 2007 (10:12 AM).
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 28
Gender: Male
Nature: Impish
Posts: 1,148
@ Itman1234: Ok, You don't have to give the aid the offset. You don't put Pause 0x30, you just put pausemove 0, which means, it will wait until the movements complete to go on to the next line of the script.

0x13 means to move to the right, so you would have to put this for the aid on the left so he can move 3 squares to the right.
Fill the values like this:
03 00
50 40
00 00
00 00
__________________

  #90   Link to this post, but load the entire thread.  
Old December 26th, 2007 (10:16 AM).
Deokishisu's Avatar
Deokishisu Deokishisu is offline
Mr. Magius
 
Join Date: Feb 2006
Location: If I'm online, it's a safe bet I'm at a computer.
Gender: Male
Nature: Relaxed
Posts: 984
Quote:
Originally Posted by akash View Post
Well in elite map it says ctrl+click to view script. But when I ctrl+click the script Ed opens but it is always blank. Please help me dont just ignore it please.
Make sure your ROM and Elite Map are in the same directory. If it's not, then ScriptEd will always come up blank.
  #91   Link to this post, but load the entire thread.  
Old December 26th, 2007 (10:30 AM).
+Sneasel™'s Avatar
+Sneasel™ +Sneasel™ is offline
It's a meeee, itman!
 
Join Date: May 2007
Location: None of your business!
Age: 29
Gender:
Nature: Lonely
Posts: 1,032
Quote:
Originally Posted by cooley View Post
@ Itman1234: Ok, You don't have to give the aid the offset. You don't put Pause 0x30, you just put pausemove 0, which means, it will wait until the movements complete to go on to the next line of the script.

0x13 means to move to the right, so you would have to put this for the aid on the left so he can move 3 squares to the right.
Fill the values like this:
03 00
50 40
00 00
00 00
Ok, I did this and this is what happens.

Well first of all, the script looks like this now:

#ORG $begin
checkflag 0x200
if B_true goto $done
applymovement 0x01 $aidwalk1
pausemove 0
message $aidtalk
boxset 6
giveitem 0xD
setflag 0x200
release
end

#org $done
release
end

#org $aidwalk1
$aidwalk1 1 ; #binary 0x13 0x13 0x13 0xFE

#org $aidtalk
$aidtalk 1 = Oh, hello \v\h01.\pHere, take this potion!

What happens is when i step on the script square, which is now here:




The aid comes over but I don't face him when he comes over.
Then he says what he normally says, and then i look and i don't even have a potion.
  #92   Link to this post, but load the entire thread.  
Old December 26th, 2007 (10:44 AM).
~*Pikafan*~'s Avatar
~*Pikafan*~ ~*Pikafan*~ is offline
Man I gotta stop leaving!
 
Join Date: Sep 2007
Age: 29
Gender:
Nature: Jolly
Posts: 202
You forgot to put the amount of potions.

For your script, for giveitem, it has to be:

giveitem 0xD 1

To give one potion.

And you don't face him because you'd have to put:

applymovement 0xFF $randomname

And for that name, you'd put

#org $randomname
$randomname 1 ; #binary 0xwhatevernumbertoface

So if he is above you, then you put #binary 0x01, to the left 0x02, right 0x03, and down 0x04 because you just want to make the person move in place.

And for him to face you, you need to put 0x4A.
__________________
I have returned ONC AGAIN!

Guitar Hero and Rock Band Rock. 'Nuff Said :P

I have a bunch of Friend Codes for Wii. These games I have Friend Codes for:

Guitar Hero World Tour (GHWT)
Super Smash Bros. Brawl (SSBB)
Guitar Hero 3 (GH3)
Pokemon Battle Revolution (PBR)
Rock Band 2, once I get it >_> (RB2)

RAWR. I NEED SHTUFF FOR MAH SIGNATURE. RAWR.
  #93   Link to this post, but load the entire thread.  
Old December 26th, 2007 (12:21 PM).
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 28
Gender: Male
Nature: Impish
Posts: 1,148
Ok, To face down is 0x00 to face up is 0x01 to face left is 0x02 and right is 0x03.
You do not need #binary , It wastes time, but if you want it that way, then it's your decision.
__________________

  #94   Link to this post, but load the entire thread.  
Old December 26th, 2007 (1:02 PM). Edited December 26th, 2007 by +Sneasel™.
+Sneasel™'s Avatar
+Sneasel™ +Sneasel™ is offline
It's a meeee, itman!
 
Join Date: May 2007
Location: None of your business!
Age: 29
Gender:
Nature: Lonely
Posts: 1,032
Is this what you guys mean? i tried and nothing changed, my player still didn't face the aid.

#ORG $begin
checkflag 0x200
if B_true goto $done
applymovement 0x01 $aidwalk1
pausemove 0
message $aidtalk
boxset 6
giveitem 0xD 1
setflag 0x200
release
end

#org $done
release
end

#org $aidwalk1
$aidwalk1 1 ; #binary 0x13 0x13 0x13 0xFE

#org $aidtalk
$aidtalk 1 = Oh, hello \v\h01.\pHere, take this potion!

#org $randomname
applymovement 0xFF $randomname
$randomname 1 ; #binary 0x01

Sorry that i'm being such a hastle, I'm just totally started learning.

Edit: I tried making another script as a test and failed, it doesn't even activate.
Here is the script:

#ORG $begin
checkflag 0x200
if B_true goto $done
applymovement 0x01 $testwalk1
pausemove 0
message $test
boxset 6
giveitem 0x1 1
setflag 0x200
release
end

#org $done
release
end

#org $testwalk1
$testwalk1 1 ; #binary 0x65 0x01 0x01 0x01 0x03

#org $test
$test 1 = Oh, hello \v\h01.\pHere, take this masterball.

What i wanted was for the person in the bottom left hand corner to first show !! and then go up 3 and right 1
Then he is supposed to give me a master ball.
This is what it looks like (Can you also tell me what script i'm supposed to give teh guy when i don't step on the green script space?)

  #95   Link to this post, but load the entire thread.  
Old December 26th, 2007 (1:28 PM).
Roddy's Avatar
Roddy Roddy is offline
Absent Scripter
 
Join Date: Dec 2007
Gender:
Posts: 10
I heard somewhere that the third offset in the trainer script does not really continues the script.

Quote:
#org 0x800000
lock
faceplayer
applymovement 0x1 0x800400
pause 0x50
message 0x800600
boxset 0x6
trainerbattle 0 001 0x800100 0x800200 0x800500
release
end

#org 0x800600
=Don't even dare to touch it!\pThey are all mine!

#org 0x800100
=Prepare!

#org 0x800200
=Gah..!

#org 0x800400
#raw 0x62
#raw 0xFE

#org 0x800700
#raw 0x01
#raw 0x01
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0xFE

#org 0x800500
message 0x800900
boxset 0x6
setflag 0x200
giveitem 0x3F 1
applymovement 0x1 0x800700
release
end

#org 0x800900
=I did not expected this.\1You're indeed a talented person.\pI shall give you this, \nbut I'll face you again.
So then, how can I do it to continue, as shown above?

Anyone? .D
  #96   Link to this post, but load the entire thread.  
Old December 26th, 2007 (1:45 PM).
Satoshi Sugimori's Avatar
Satoshi Sugimori Satoshi Sugimori is offline
Hermit
 
Join Date: Dec 2006
Location: Tokyo, Japan
Age: 30
Gender: Male
Nature: Timid
Posts: 860
Can someone check this please...
Spoiler:
#org $securityguy
lock
faceplayer
checkitem 0x79
if B_true goto $follow
message $nonono
$nonono 1 =You don't have a ticket \nso I can't help you.
boxset 6
release
end

#org $follow
lock
faceplayer
message $board
$board 1 =Do you want to go on the plane?
boxset 5
compare LASTRESULT B_TRUE
if B_false goto $nono
message $alright
$alright 1 =Alright!\nFollow me then!
boxset 6
applymovement 0x3 $followme
applymovement 0xFF $followme
pausemove 0
applymovement 0x3 $followme2
applymovement 0xFF $followme2
pausemove 0
message $goin
$goin 1 =All aboard!
boxset 6
applymovement 0x3 $get
pausemove 0
release
end

#org $nono
lock
faceplayer
Message $next
$next 1 =Alright see you next time!
boxset 6
release
end

#org $followme
$followme 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE

#org $followme2
$followme2 1 ; #binary 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org $get
$get 1 ; #binary 0x13 0x11 0x11 0x11 0x11 0x12 0x11 0x11 0xFE
__________________
  #97   Link to this post, but load the entire thread.  
Old December 26th, 2007 (1:55 PM).
cooley's Avatar
cooley cooley is offline
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 28
Gender: Male
Nature: Impish
Posts: 1,148
Do Not, I repeat DO NOT use the command Checkitem
It is written this way: #raw 0x47 0x<Item> 0x00 0x<Quantity> 0x00

Checkitem won't work because there is a bug in the coding of pokescript.
The script looks alright, and you can write compare LASTRESULT as

compare 0x800D 0
if 1 goto $nono

If It is true that you said no then it will go to $nono

___________________________

I'm having trouble with my script:
Code:
#org $start
#raw 0x47 0x6E 0x00 0x01 0x00
compare 800D 0x0
if 0x1 goto $done
showmsgstatic $have
$have 1 = \c\h01\h08\v\h01: I have to give Mom her\nNeckalace.
boxset 6
applymovement 0xFF $Move
$Move 1 ; 0x11 0xFE
pausemove 0
release
end

#org $done
release
end
It is alright but, after Mom takes the item, then it will go back to doing what its supposed to do.
I want to make it so that If you step on it the first time and don't have the item, then it'll display the message.

And after you've given the item to mom, then it'll not do anything. Anyone get what I'm saying?
__________________

  #98   Link to this post, but load the entire thread.  
Old December 26th, 2007 (4:21 PM).
+Sneasel™'s Avatar
+Sneasel™ +Sneasel™ is offline
It's a meeee, itman!
 
Join Date: May 2007
Location: None of your business!
Age: 29
Gender:
Nature: Lonely
Posts: 1,032
I made this script to test myself after a few successful movement scripts.
I put alot of movements in this one to challenge myself and see if i could do it.

this is the script.
____________________
#ORG $begin
checkflag 0x202
if B_true goto $done
applymovement 0x3 $hwalk1
applymovement 0xFF $playerturn
pausemove 0
message $htalk
boxset 6
giveitem 0xD 1
applymovement 0x3 $hgoback
pausemove 0
setflag 0x202
release
end

#org $done
release
end

#org $hgoback
$hgoback 1 ; 0x0A 0xFE

#org $hwalk1
$hwalk1 1 ; 0x1E 0x1F 0x4E 0x08 0x20 0xFE

#org $htalk
$htalk 1 = I'm crazy and can't \p take care of this misdreavus. \pHere, you can have it!

#org $playerturn
$playerturn 1 ; 0x02 0xFE
_____________________

This is where i put the offset-


What is supposed to happen once you step where the green script square is, the guy...
walks up 4
walks left 4
jumps over the ledge 1
walk down 1
walk right 4

Your player turns right
The guy gives you a potion
After your player receives the potion, the guy is supposed to go left 1

Don't ask why he has to do all that, i made it to challenge myself to see if i could do it, And i can't... :-(
  #99   Link to this post, but load the entire thread.  
Old December 26th, 2007 (4:42 PM).
litium litium is offline
 
Join Date: Dec 2007
Posts: 26
Nobody can help me to activate pokedex via script?... I mean...

#org $POKEDEX
lock
faceplayer
checkflag 0x200
if B_True goto $Got
setflag 0x800
setflag 0x801
setflag 0x200
message $takethis
boxset 6
$takethis 1 = Here, you need this to carry\non whit your trip on this lands.
applymovement 0xFF $move1
$move 1 ; #Binary 0x11 0x11 0x11 0xFE
pausemove 0
release
end

#org $Got
message $greedy
boxset 6
$greedy 1 = You greedy bastard...\nyou alredy have one Pokedex...\pWhy would you endd another one?

(just worite it now).

So, it is SUPPOSED that setflag 0x800 and 0x801 enables Pokemon and Pokedex in menu. But, it does not work. (Maybe it's because i'm using emerald?)

Help, would be really be apreciated. I dont want you to write me a script or anything... a explaniation will do. I just want to learn to improve my scripting skills and help people whit their scripts like you do.
  #100   Link to this post, but load the entire thread.  
Old December 26th, 2007 (8:16 PM).
0m3ga_S1nn3r's Avatar
0m3ga_S1nn3r 0m3ga_S1nn3r is offline
Beginner Hacker :)
 
Join Date: Dec 2007
Location: In my house
Age: 26
Gender:
Posts: 80
how do we add sinnoh pokemon to ppokemon emerald?
__________________
Things I like:
Music Genre: R&B
Song: We Run This [Stick it Edit]
Ice-Cream: Chocolate
Tv Show: Simpsons
Pokemon: Chimchar
Pokemon Game: Pokemon Red

¨°-_,,_-°¨
::~- Elite -~::
..-v'' ''v-...




Closed Thread

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 9:25 AM.