Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub > Beginner’s Lounge
Reload this Page Script Help Thread (DO NOT REQUEST SCRIPTS)

Notices
For all updates, view the main page.

Beginner’s Lounge Where all good (and bad) ideas start. This is the Beginner’s Lounge, where if you need a helping hand or want to develop your small ideas, you bring it here. We won't bite.



Closed Thread
 
Thread Tools
  #1651    
Old July 11th, 2009 (06:55 PM).
ExitWound's Avatar
ExitWound ExitWound is offline
Boggle
 
Join Date: Aug 2007
Age: 23
Posts: 72
Quote originally posted by powerflare4cp:
How do you customize the Pokedex? The order, the Pokemon's info (What type of Pokemon [ex. the Bulb Pokemon or the Iron Armor Pokemon] and their description) ect.
That's not a script question, but look up YAPE for that kind of stuff.


Now can somebody help me with my script?

Quote originally posted by ExitWound:
Hey I'm working on a hack for Pokemon Sapphire and I'm having some problems. The script works fine except when he's supposed to move toward you and sends you back. Here is my script:
Spoiler:
#dynamic 0x800089

#org @start
checkflag 1500
if b_true goto @nevermind
msgbox @begin 0x6
msgbox @bulbasaur 0x5
compare LASTRESULT 0x1
if b_true goto @getbulb
msgbox @charmander 0x5
compare LASTRESULT 0x1
if b_true goto @getchar
msgbox @squirtle 0x5
compare LASTRESULT 0x1
if b_true goto @getsquirt
msgbox @cant 0x6
applymovement 0x2 @moveman
applymovement 0xFF @sendback
release
end

#org @nevermind
release
end

#org @begin
= Hello there, young traveler!\nI see that you're new here, aren't you?\pThat's quite alright.\nEverybody was a newbie at some point.\lEven me!\pBut enough with this idle chatter.\nToday, you will recieve your first\lPOKéMON!\pIt's exciting, I know\pFor I was once in your shoes...\nAhh.....\lThe glory days...\p... ... ... ... ... ... ... ...\pOh!\pI've been daydreaming a lot lately...\nBut anywho... on to business!

#org @bulbasaur
= Will you take BULBASAUR, the leaf\nPOKéMON?

#org @getbulb
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotbulb 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 1000
release
end

#org @charmander
= Will you take CHARMANDER, the fire\nPOKéMON?

#org @getchar
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotchar 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 1000
release
end

#org @squirtle
= Will you take SQUIRTLE, the water\nPOKéMON?

#org @getsquirt
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotsquirt 0x6
msgbox @meetagain 0x6
fadescreen 0x0
hidesprite 0x2
setflag 1500
release
end

#org @gotbulb
= [red_rs]You recieved a BULBASAUR!

#org @gotchar
= [red_rs]You recieved a CHARMANDER!

#org @gotsquirt
= [red_rs]You recieved a SQUIRTLE!

#org @meetagain
= Now go, young adventurer!\nGo into the world and show them\lhow great you are!!

#org @cant
= As long as I am here, you may not pass\nwithout a POKéMON.

#org @moveman
#raw 0x07 0x06 0x03 0xFE

#org @sendback
#raw 0x04 0xFE


The script's var number is already 5240 so that isn't it.
__________________

+====================Supports====================+


+====================Supports====================+
  #1652    
Old July 11th, 2009 (06:59 PM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL 0m3GA ARS3NAL is offline
Im comin' home...
Silver Tier
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Posts: 1,816
Quote originally posted by ExitWound:
That's not a script question, but look up YAPE for that kind of stuff.


Now can somebody help me with my script?
You forgot 0x in front of every flag command.
Changes in BOLD RED!

Spoiler:
#dynamic 0x800089

#org @start
checkflag 0x1500
if b_true goto @nevermind
msgbox @begin 0x6
msgbox @bulbasaur 0x5
compare LASTRESULT 0x1
if b_true goto @getbulb
msgbox @charmander 0x5
compare LASTRESULT 0x1
if b_true goto @getchar
msgbox @squirtle 0x5
compare LASTRESULT 0x1
if b_true goto @getsquirt
msgbox @cant 0x6
applymovement 0x2 @moveman
applymovement 0xFF @sendback
release
end

#org @nevermind
release
end

#org @begin
= Hello there, young traveler!\nI see that you're new here, aren't you?\pThat's quite alright.\nEverybody was a newbie at some point.\lEven me!\pBut enough with this idle chatter.\nToday, you will recieve your first\lPOKéMON!\pIt's exciting, I know\pFor I was once in your shoes...\nAhh.....\lThe glory days...\p... ... ... ... ... ... ... ...\pOh!\pI've been daydreaming a lot lately...\nBut anywho... on to business!

#org @bulbasaur
= Will you take BULBASAUR, the leaf\nPOKéMON?

#org @getbulb
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotbulb 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @charmander
= Will you take CHARMANDER, the fire\nPOKéMON?

#org @getchar
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotchar 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @squirtle
= Will you take SQUIRTLE, the water\nPOKéMON?

#org @getsquirt
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotsquirt 0x6
msgbox @meetagain 0x6
fadescreen 0x0
hidesprite 0x2
setflag 0x1500
release
end

#org @gotbulb
= [red_rs]You recieved a BULBASAUR!

#org @gotchar
= [red_rs]You recieved a CHARMANDER!

#org @gotsquirt
= [red_rs]You recieved a SQUIRTLE!

#org @meetagain
= Now go, young adventurer!\nGo into the world and show them\lhow great you are!!

#org @cant
= As long as I am here, you may not pass\nwithout a POKéMON.

#org @moveman
#raw 0x07 0x06 0x03 0xFE

#org @sendback
#raw 0x04 0xFE
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #1653    
Old July 12th, 2009 (01:43 AM).
Bozster's Avatar
Bozster Bozster is offline
Chief Lunatic
 
Join Date: Jul 2008
Gender: Male
Posts: 101
Quote originally posted by 0m3GA ARS3NAL:
The problem is not making NEW pokemon, the problem is having the pokedex read all of these new pokemon.
As of yet, only 24 new pokemon can be added to any pokemon game, without replacing old ones, and even still, the pokedex data for them is unreadable...
Ok, fair enough, I can't add many Pokemon. But can anyone still tell me what the script offsets that define stuff like items and Pokemon are?
  #1654    
Old July 12th, 2009 (02:16 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
Crystal Tier
 
Join Date: Jun 2006
Posts: 1,314
Quote originally posted by Bozster:
Ok, fair enough, I can't add many Pokemon. But can anyone still tell me what the script offsets that define stuff like items and Pokemon are?
This is a Script Help thread. Please ask in the proper thread, aka Simple Questions.
__________________
  #1655    
Old July 12th, 2009 (06:50 AM). Edited July 12th, 2009 by Powerflare.
Powerflare's Avatar
Powerflare Powerflare is offline
Pokémon Trainer N
Silver Tier
 
Join Date: May 2008
Location: Unova
Age: 18
Gender: Male
Nature: Rash
Posts: 108
Quote originally posted by ExitWound:
That's not a script question, but look up YAPE for that kind of stuff.
I just thought it would have something to do with scripts (like changing the description) or something.

Oh yeah, and a heads up: I'm gonna need help with a script soon. I will post it in a bit. (Or if "a bit" isn't possible a day, and if I don't have internet connection where I'm going---a week.)
__________________
I like that face! Like to battle, do you?"-Crasher Wake

"... ... ... ... ... ... ... ... ... ... ... ..." -Red

Pokémon Black Version || Pokémon White Version

I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.
  #1656    
Old July 12th, 2009 (10:55 AM).
sungopher's Avatar
sungopher sungopher is offline
 
Join Date: Jul 2009
Location: The California Region, filled with 5th Gen pokemon
Gender: Male
Nature: Impish
Posts: 9
how do you change the text in the beginning when prof. oak/birch talks to you?
is there a specific way, if so plz tell me.
i dont mean to break any rules or anything
  #1657    
Old July 12th, 2009 (11:22 AM).
onyx79's Avatar
onyx79 onyx79 is offline
Red Dead Revolver
 
Join Date: Jan 2009
Location: Orange Islands (=
Gender: Male
Nature: Modest
Posts: 503
Quote originally posted by sungopher:
how do you change the text in the beginning when prof. oak/birch talks to you?
is there a specific way, if so plz tell me.
i dont mean to break any rules or anything
use a-text it's easy,also you can cange most of the game text with this tool
__________________
my room base: http://www.pokecommunity.com/showpost.php?p=5397075&postcount=64
  #1658    
Old July 12th, 2009 (11:39 AM).
PlatniumPiano's Avatar
PlatniumPiano PlatniumPiano is offline
You are now breathing manually
 
Join Date: Dec 2008
Location: Yesterday
Gender: Male
Nature: Lax
Posts: 480
Quote originally posted by Haz:
I click "Compile" and then I click "Save" in the text window, but it doesn't go into my hack. I also needed to klnow if it was right.
You don't need to save the script. When you click compile, there should be a little box that pops up with a bunch of offsets. Copy the first one and paste it into the script offset box in A-map. Should work.
__________________

If you choose not to decide, you still have made a choice.
  #1659    
Old July 12th, 2009 (11:58 AM).
BlitŻ's Avatar
BlitŻ BlitŻ is offline
guahh my dog is so cute
Crystal Tier
 
Join Date: Feb 2009
Location: Bay Area, Califronia.
Age: 20
Gender: Male
Nature: Jolly
Posts: 472
Quote originally posted by JohnPaulJones:
You don't need to save the script. When you click compile, there should be a little box that pops up with a bunch of offsets. Copy the first one and paste it into the script offset box in A-map. Should work.

actually the one you should copy is the offset under newoffset, including the 0x, btw its in the scroll window
__________________
  #1660    
Old July 12th, 2009 (12:49 PM). Edited July 12th, 2009 by ExitWound.
ExitWound's Avatar
ExitWound ExitWound is offline
Boggle
 
Join Date: Aug 2007
Age: 23
Posts: 72
Quote originally posted by 0m3GA ARS3NAL:
You forgot 0x in front of every flag command.
Changes in BOLD RED!

Spoiler:
#dynamic 0x800089

#org @start
checkflag 0x1500
if b_true goto @nevermind
msgbox @begin 0x6
msgbox @bulbasaur 0x5
compare LASTRESULT 0x1
if b_true goto @getbulb
msgbox @charmander 0x5
compare LASTRESULT 0x1
if b_true goto @getchar
msgbox @squirtle 0x5
compare LASTRESULT 0x1
if b_true goto @getsquirt
msgbox @cant 0x6
applymovement 0x2 @moveman
applymovement 0xFF @sendback
release
end

#org @nevermind
release
end

#org @begin
= Hello there, young traveler!\nI see that you're new here, aren't you?\pThat's quite alright.\nEverybody was a newbie at some point.\lEven me!\pBut enough with this idle chatter.\nToday, you will recieve your first\lPOKéMON!\pIt's exciting, I know\pFor I was once in your shoes...\nAhh.....\lThe glory days...\p... ... ... ... ... ... ... ...\pOh!\pI've been daydreaming a lot lately...\nBut anywho... on to business!

#org @bulbasaur
= Will you take BULBASAUR, the leaf\nPOKéMON?

#org @getbulb
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotbulb 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @charmander
= Will you take CHARMANDER, the fire\nPOKéMON?

#org @getchar
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotchar 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @squirtle
= Will you take SQUIRTLE, the water\nPOKéMON?

#org @getsquirt
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotsquirt 0x6
msgbox @meetagain 0x6
fadescreen 0x0
hidesprite 0x2
setflag 0x1500
release
end

#org @gotbulb
= [red_rs]You recieved a BULBASAUR!

#org @gotchar
= [red_rs]You recieved a CHARMANDER!

#org @gotsquirt
= [red_rs]You recieved a SQUIRTLE!

#org @meetagain
= Now go, young adventurer!\nGo into the world and show them\lhow great you are!!

#org @cant
= As long as I am here, you may not pass\nwithout a POKéMON.

#org @moveman
#raw 0x07 0x06 0x03 0xFE

#org @sendback
#raw 0x04 0xFE
Well even so, shouldn't the movement work anyways? Meh... I'm gonna try it and see if it works out.


EDIT: It didn't work. The guy still doesn't send you back a space =[ Any help?
__________________

+====================Supports====================+


+====================Supports====================+
  #1661    
Old July 12th, 2009 (01:09 PM).
Quickster's Avatar
Quickster Quickster is offline
Dream or Drop?
 
Join Date: Oct 2007
Gender: Male
Nature: Quiet
Posts: 350
Quote originally posted by ExitWound:
Well even so, shouldn't the movement work anyways? Meh... I'm gonna try it and see if it works out.


EDIT: It didn't work. The guy still doesn't send you back a space =[ Any help?
Maybe you should add a waitmovement 0x0 after your movements.That might fix it,but Im not sure.
__________________
I laugh looking at this.

But sometimes I want to come back to it...

  #1662    
Old July 12th, 2009 (01:55 PM).
sungopher's Avatar
sungopher sungopher is offline
 
Join Date: Jul 2009
Location: The California Region, filled with 5th Gen pokemon
Gender: Male
Nature: Impish
Posts: 9
a-text doesnt work cuz everytime i download it, it says i need some kind of file called COMDLG32.OCX
and i cant seem to find it
  #1663    
Old July 12th, 2009 (02:26 PM).
am529 am529 is offline
 
Join Date: Jun 2009
Posts: 11
I have this code for a person event:
Spoiler:

'---------------
#org 0x6FFD48
lock
faceplayer
msgbox 0x871A31D MSG_NORMAL '"Hi again/pI found something that/n..."
msgbox 0x871A3F3 MSG_KEEPOPEN '"[player] received the running shoe..."
fanfare 0x13E
waitfanfare
msgbox 0x871A4B3 MSG_NORMAL '"I've got some other/nthings to att..."
hidesprite 0x9
special 0x174
fadescreen 0x0
release
end


'---------
' Strings
'---------
#org 0x71A31D
= Hi again/pI found something that/nmight help you out.

#org 0x71A3F3
= [player] received the running shoes!

#org 0x71A4B3
= I've got some other/nthings to attend to/pI'll be waiting for /nyou in Cerulean city.


But when I test the game and talk to this person, It just says I got a rare candy and then the person disappears, but then reappears if I take a step.
  #1664    
Old July 12th, 2009 (02:28 PM).
BananasGoMoo's Avatar
BananasGoMoo BananasGoMoo is offline
Pokemon Electrum
 
Join Date: Dec 2008
Location: Richmond, California
Age: 23
Gender:
Nature: Lax
Posts: 149
Send a message via AIM to BananasGoMoo
Quote originally posted by sungopher:
a-text doesnt work cuz everytime i download it, it says i need some kind of file called COMDLG32.OCX
and i cant seem to find it
just google it.

its relatively easy to find.
__________________
This signature has been disabled.
Images in the spoiler tags still count; remove the images in the spoiler tags -- too tall.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
  #1665    
Old July 12th, 2009 (02:28 PM).
PlatniumPiano's Avatar
PlatniumPiano PlatniumPiano is offline
You are now breathing manually
 
Join Date: Dec 2008
Location: Yesterday
Gender: Male
Nature: Lax
Posts: 480
Quote originally posted by am529:
I have this code for a person event:
Spoiler:

'---------------
#org 0x6FFD48
lock
faceplayer
msgbox 0x871A31D MSG_NORMAL '"Hi again/pI found something that/n..."
msgbox 0x871A3F3 MSG_KEEPOPEN '"[player] received the running shoe..."
fanfare 0x13E
waitfanfare
msgbox 0x871A4B3 MSG_NORMAL '"I've got some other/nthings to att..."
hidesprite 0x9
special 0x174
fadescreen 0x0
release
end


'---------
' Strings
'---------
#org 0x71A31D
= Hi again/pI found something that/nmight help you out.

#org 0x71A3F3
= [player] received the running shoes!

#org 0x71A4B3
= I've got some other/nthings to attend to/pI'll be waiting for /nyou in Cerulean city.


But when I test the game and talk to this person, It just says I got a rare candy and then the person disappears, but then reappears if I take a step.
you need to set a flag to make them actually dissapear.
__________________

If you choose not to decide, you still have made a choice.
  #1666    
Old July 12th, 2009 (03:08 PM).
sungopher's Avatar
sungopher sungopher is offline
 
Join Date: Jul 2009
Location: The California Region, filled with 5th Gen pokemon
Gender: Male
Nature: Impish
Posts: 9
Quote originally posted by BananasGoMoo:
just google it.

its relatively easy to find.
yeah i did that, still doesnt work
  #1667    
Old July 12th, 2009 (03:15 PM).
BananasGoMoo's Avatar
BananasGoMoo BananasGoMoo is offline
Pokemon Electrum
 
Join Date: Dec 2008
Location: Richmond, California
Age: 23
Gender:
Nature: Lax
Posts: 149
Send a message via AIM to BananasGoMoo
Quote originally posted by sungopher:
yeah i did that, still doesnt work
did you register it?

go to command promt, go to the directory where you put the ocx, then type in regsvr32 [insert filename here]

where [insert filename here] is the name of the ocx, plus the extension.

for example: regsvr32 blah.ocx
__________________
This signature has been disabled.
Images in the spoiler tags still count; remove the images in the spoiler tags -- too tall.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.
  #1668    
Old July 12th, 2009 (04:13 PM).
PlatniumPiano's Avatar
PlatniumPiano PlatniumPiano is offline
You are now breathing manually
 
Join Date: Dec 2008
Location: Yesterday
Gender: Male
Nature: Lax
Posts: 480
Quote originally posted by am529:
I realize that now, but the problem was that the script is not working at all. The person is not doing any of the things in the code for their person event, they are just acting like an item.
You forgot to use a fadescreen 0x1 command to bring the screen back. Try that first.
__________________

If you choose not to decide, you still have made a choice.
  #1669    
Old July 12th, 2009 (04:27 PM).
sungopher's Avatar
sungopher sungopher is offline
 
Join Date: Jul 2009
Location: The California Region, filled with 5th Gen pokemon
Gender: Male
Nature: Impish
Posts: 9
Quote originally posted by BananasGoMoo:
did you register it?

go to command promt, go to the directory where you put the ocx, then type in regsvr32 [insert filename here]

where [insert filename here] is the name of the ocx, plus the extension.

for example: regsvr32 blah.ocx
k thanks i got it, now i just need to know how to use it :D
  #1670    
Old July 12th, 2009 (06:30 PM).
0m3GA ARS3NAL's Avatar
0m3GA ARS3NAL 0m3GA ARS3NAL is offline
Im comin' home...
Silver Tier
 
Join Date: Jan 2008
Location: Superjail Penitentiary
Age: 22
Gender: Male
Nature: Gentle
Posts: 1,816
Quote originally posted by ExitWound:
Well even so, shouldn't the movement work anyways? Meh... I'm gonna try it and see if it works out.


EDIT: It didn't work. The guy still doesn't send you back a space =[ Any help?
lol, oops, Quickster totally reminded me of that.
I didn't look for waitmovements.

changes in spoiler, BOLD RED

Spoiler:
#dynamic 0x800089

#org @start
checkflag 0x1500
if b_true goto @nevermind
msgbox @begin 0x6
msgbox @bulbasaur 0x5
compare LASTRESULT 0x1
if b_true goto @getbulb
msgbox @charmander 0x5
compare LASTRESULT 0x1
if b_true goto @getchar
msgbox @squirtle 0x5
compare LASTRESULT 0x1
if b_true goto @getsquirt
msgbox @cant 0x6
applymovement 0x2 @moveman
applymovement 0xFF @sendback
waitmovement 0x0
release
end

#org @nevermind
release
end

#org @begin
= Hello there, young traveler!\nI see that you're new here, aren't you?\pThat's quite alright.\nEverybody was a newbie at some point.\lEven me!\pBut enough with this idle chatter.\nToday, you will recieve your first\lPOKéMON!\pIt's exciting, I know\pFor I was once in your shoes...\nAhh.....\lThe glory days...\p... ... ... ... ... ... ... ...\pOh!\pI've been daydreaming a lot lately...\nBut anywho... on to business!

#org @bulbasaur
= Will you take BULBASAUR, the leaf\nPOKéMON?

#org @getbulb
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotbulb 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @charmander
= Will you take CHARMANDER, the fire\nPOKéMON?

#org @getchar
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotchar 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @squirtle
= Will you take SQUIRTLE, the water\nPOKéMON?

#org @getsquirt
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotsquirt 0x6
msgbox @meetagain 0x6
fadescreen 0x0
hidesprite 0x2
setflag 0x1500
release
end

#org @gotbulb
= [red_rs]You recieved a BULBASAUR!

#org @gotchar
= [red_rs]You recieved a CHARMANDER!

#org @gotsquirt
= [red_rs]You recieved a SQUIRTLE!

#org @meetagain
= Now go, young adventurer!\nGo into the world and show them\lhow great you are!!

#org @cant
= As long as I am here, you may not pass\nwithout a POKéMON.

#org @moveman
#raw 0x07 0x06 0x03 0xFE

#org @sendback
#raw 0x04 0xFE


Thanks to Quickster for pointing that out.
__________________
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>
  #1671    
Old July 12th, 2009 (06:58 PM).
PlatniumPiano's Avatar
PlatniumPiano PlatniumPiano is offline
You are now breathing manually
 
Join Date: Dec 2008
Location: Yesterday
Gender: Male
Nature: Lax
Posts: 480
Quote originally posted by 0m3GA ARS3NAL:
lol, oops, Quickster totally reminded me of that.
I didn't look for waitmovements.

changes in spoiler, BOLD RED

Spoiler:
#dynamic 0x800089

#org @start
checkflag 0x1500
if b_true goto @nevermind
msgbox @begin 0x6
msgbox @bulbasaur 0x5
compare LASTRESULT 0x1
if b_true goto @getbulb
msgbox @charmander 0x5
compare LASTRESULT 0x1
if b_true goto @getchar
msgbox @squirtle 0x5
compare LASTRESULT 0x1
if b_true goto @getsquirt
msgbox @cant 0x6
applymovement 0x2 @moveman
applymovement 0xFF @sendback
waitmovement 0x0
release
end

#org @nevermind
release
end

#org @begin
= Hello there, young traveler!\nI see that you're new here, aren't you?\pThat's quite alright.\nEverybody was a newbie at some point.\lEven me!\pBut enough with this idle chatter.\nToday, you will recieve your first\lPOKéMON!\pIt's exciting, I know\pFor I was once in your shoes...\nAhh.....\lThe glory days...\p... ... ... ... ... ... ... ...\pOh!\pI've been daydreaming a lot lately...\nBut anywho... on to business!

#org @bulbasaur
= Will you take BULBASAUR, the leaf\nPOKéMON?

#org @getbulb
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotbulb 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @charmander
= Will you take CHARMANDER, the fire\nPOKéMON?

#org @getchar
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotchar 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @squirtle
= Will you take SQUIRTLE, the water\nPOKéMON?

#org @getsquirt
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotsquirt 0x6
msgbox @meetagain 0x6
fadescreen 0x0
hidesprite 0x2
setflag 0x1500
release
end

#org @gotbulb
= [red_rs]You recieved a BULBASAUR!

#org @gotchar
= [red_rs]You recieved a CHARMANDER!

#org @gotsquirt
= [red_rs]You recieved a SQUIRTLE!

#org @meetagain
= Now go, young adventurer!\nGo into the world and show them\lhow great you are!!

#org @cant
= As long as I am here, you may not pass\nwithout a POKéMON.

#org @moveman
#raw 0x07 0x06 0x03 0xFE

#org @sendback
#raw 0x04 0xFE


Thanks to Quickster for pointing that out.
Actually... Shouldn't you have another waitmovement? I presume he doesn't want to have them both occur at the same time. If not just take out the first waitmovement. And it would be best to combine the two msgboxes at the beginning into one 0x5 box. Changes to Changes in spoiler lol
Spoiler:
#dynamic 0x800089

#org @start
checkflag 0x1500
if 0x1 goto @nevermind
msgbox @bulbasaur 0x5
compare LASTRESULT 0x1
if b_true goto @getbulb
msgbox @charmander 0x5
compare LASTRESULT 0x1
if b_true goto @getchar
msgbox @squirtle 0x5
compare LASTRESULT 0x1
if b_true goto @getsquirt
msgbox @cant 0x6
applymovement 0x2 @moveman
waitmovement 0x0
applymovement 0xFF @sendback
waitmovement 0x0
release
end

#org @nevermind
release
end

#org @bulbasaur
= Hello there, young traveler!\nI see that you're new here, aren't you?\pThat's quite alright.\nEverybody was a newbie at some point.\lEven me!\pBut enough with this idle chatter.\nToday, you will recieve your first\lPOKéMON!\pIt's exciting, I know\pFor I was once in your shoes...\nAhh.....\lThe glory days...\p... ... ... ... ... ... ... ...\pOh!\pI've been daydreaming a lot lately...\nBut anywho... on to business!\pWill you take BULBASAUR, the leaf\nPOKéMON?

#org @getbulb
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotbulb 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @charmander
= Will you take CHARMANDER, the fire\nPOKéMON?

#org @getchar
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotchar 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @squirtle
= Will you take SQUIRTLE, the water\nPOKéMON?

#org @getsquirt
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotsquirt 0x6
msgbox @meetagain 0x6
fadescreen 0x0
hidesprite 0x2
setflag 0x1500
release
end

#org @gotbulb
= [red_rs]You recieved a BULBASAUR!

#org @gotchar
= [red_rs]You recieved a CHARMANDER!

#org @gotsquirt
= [red_rs]You recieved a SQUIRTLE!

#org @meetagain
= Now go, young adventurer!\nGo into the world and show them\lhow great you are!!

#org @cant
= As long as I am here, you may not pass\nwithout a POKéMON.

#org @moveman
#raw 0x07 0x06 0x03 0xFE

#org @sendback
#raw 0x04 0xFE
__________________

If you choose not to decide, you still have made a choice.
  #1672    
Old July 12th, 2009 (08:45 PM).
ExitWound's Avatar
ExitWound ExitWound is offline
Boggle
 
Join Date: Aug 2007
Age: 23
Posts: 72
Quote originally posted by JohnPaulJones:
Actually... Shouldn't you have another waitmovement? I presume he doesn't want to have them both occur at the same time. If not just take out the first waitmovement. And it would be best to combine the two msgboxes at the beginning into one 0x5 box. Changes to Changes in spoiler lol
Spoiler:
#dynamic 0x800089

#org @start
checkflag 0x1500
if 0x1 goto @nevermind
msgbox @bulbasaur 0x5
compare LASTRESULT 0x1
if b_true goto @getbulb
msgbox @charmander 0x5
compare LASTRESULT 0x1
if b_true goto @getchar
msgbox @squirtle 0x5
compare LASTRESULT 0x1
if b_true goto @getsquirt
msgbox @cant 0x6
applymovement 0x2 @moveman
waitmovement 0x0
applymovement 0xFF @sendback
waitmovement 0x0
release
end

#org @nevermind
release
end

#org @bulbasaur
= Hello there, young traveler!\nI see that you're new here, aren't you?\pThat's quite alright.\nEverybody was a newbie at some point.\lEven me!\pBut enough with this idle chatter.\nToday, you will recieve your first\lPOKéMON!\pIt's exciting, I know\pFor I was once in your shoes...\nAhh.....\lThe glory days...\p... ... ... ... ... ... ... ...\pOh!\pI've been daydreaming a lot lately...\nBut anywho... on to business!\pWill you take BULBASAUR, the leaf\nPOKéMON?

#org @getbulb
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotbulb 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @charmander
= Will you take CHARMANDER, the fire\nPOKéMON?

#org @getchar
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotchar 0x6
msgbox @meetagain 0x6
fadescreen 0x0
setflag 0x1000
release
end

#org @squirtle
= Will you take SQUIRTLE, the water\nPOKéMON?

#org @getsquirt
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
msgbox @gotsquirt 0x6
msgbox @meetagain 0x6
fadescreen 0x0
hidesprite 0x2
setflag 0x1500
release
end

#org @gotbulb
= [red_rs]You recieved a BULBASAUR!

#org @gotchar
= [red_rs]You recieved a CHARMANDER!

#org @gotsquirt
= [red_rs]You recieved a SQUIRTLE!

#org @meetagain
= Now go, young adventurer!\nGo into the world and show them\lhow great you are!!

#org @cant
= As long as I am here, you may not pass\nwithout a POKéMON.

#org @moveman
#raw 0x07 0x06 0x03 0xFE

#org @sendback
#raw 0x04 0xFE
Yeah I had already fixed this once I saw what I was wrong. Thanks for the help though. And there should be only 1 waitmovement because the player is going to step back when the old man steps forward. But the only thing that is wrong now is that when he pushes you back, he doesn't face the way he was facing before (right). Instead, after he pushes you back, he's left facing the tree... And as you can see, there is a face right in the movement.
__________________

+====================Supports====================+


+====================Supports====================+
  #1673    
Old July 13th, 2009 (06:14 AM). Edited July 13th, 2009 by tool.
tool's Avatar
tool tool is offline
Novice Hacker
 
Join Date: Sep 2007
Location: Italy
Age: 21
Gender: Male
Nature: Relaxed
Posts: 2
Hello to everyone. I'm new to this forum.

I'm Hacking Pokémon Ruby, but i need help with a scipt!

Spoiler:
'---------------
#org 0x1B2CCB
lockall
msgbox 0x81B37BB MSG_KEEPOPEN '"The power contained in the METEORI..."
applymovement 0x2 0x81A0839
waitmovement 0x0
sound 0x15
applymovement 0x2 0x81A0833
waitmovement 0x0
applymovement 0x2 0x81A0835
waitmovement 0x0
msgbox 0x81B38B3 MSG_KEEPOPEN '"MAXIE: You again...\pNow listen.\n..."
trainerbattle 0x3 0x25A 0x0 0x81B3A68
msgbox 0x81B3A90 MSG_KEEPOPEN '"MAXIE: Ah, whatever.\nI will give ..."
closeonkeypress
pause 0x1E
fadescreen 0x1
hidesprite 0x2
hidesprite 0x3
hidesprite 0x16
setflag 0x39E
fadescreen 0x0
movesprite2 0x1 0xA 0xC
showsprite 0x1
compare PLAYERFACING 0x4
if 0x1 call 0x81B2D7D
compare PLAYERFACING 0x2
if 0x1 call 0x81B2D88
applymovement MOVE_PLAYER 0x81A083F
waitmovement 0x0
msgbox 0x81B3FFE MSG_KEEPOPEN '"ARCHIE: [player]\v\h05! Thank you!..."
closeonkeypress
compare PLAYERFACING 0x4
if 0x1 call 0x81B2D93
compare PLAYERFACING 0x2
if 0x1 call 0x81B2D9E
hidesprite 0x1
setflag 0x39F
setflag 0x8B
clearflag 0x3A0
setflag 0x3AE
releaseall
end

'---------------
#org 0x1B2D7D
applymovement 0x1 0x815D025
waitmovement 0x0
return

'---------------
#org 0x1B2D88
applymovement 0x1 0x815D036
waitmovement 0x0
return

'---------------
#org 0x1B2D93
applymovement 0x1 0x815D02D
waitmovement 0x0
return

'---------------
#org 0x1B2D9E
applymovement 0x1 0x815D03E
waitmovement 0x0
return


'---------
' Strings
'---------
#org 0x1B37BB
= The power contained in the METEORITE...\pBy amplifying its power with this\nmachine, MT. CHIMNEY's volcanic activity\lwill instantly intensify...\pFufufu... The volcano will erupt, spewing\nlava that will cool and harden.\lIt will expand the landmass...

#org 0x1B38B3
= MAXIE: You again...\pNow listen.\nWe humans have grown on dry land.\pThe land is everything!\nIts importance is paramount!\pThat is why we of TEAM MAGMA are\ncommitted to expanding the landmass.\pIt will create space for new species\nof POKéMON to evolve.\pIt will give us humans more space to\nadvance.\pThat is TEAM MAGMA's vision!\pI can't allow an ignorant child like\nyou to get in our way.\pI, MAXIE, will show you the\nconsequences of meddling!

#org 0x1B3A68
= What?!\pI, MAXIE, was caught off guard?!

#org 0x1B3A90
= MAXIE: Ah, whatever.\nI will give up our plans for MT. CHIMNEY\lfor the time being...\pBut no one can ever stop us!\nTEAM MAGMA will prevail!\pDon't you ever forget that!

#org 0x1B3FFE
= ARCHIE: [player]\v\h05! Thank you!\pWith your help, we thwarted TEAM\nMAGMA's destructive plan!\pBut... This victory doesn't mean the\nend of their evil plans.\pWe will remain vigilant and keep up\nour pursuit of TEAM MAGMA.\p[player]\v\h05, we shall meet again!


'-----------
' Movements
'-----------
#org 0x1A0839
#raw 0x3E 'Face Player
#raw 0xFE 'End of Movements

#org 0x1A0833
#raw 0x56 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x1A0835
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0x14 'Delay5
#raw 0xFE 'End of Movements

#org 0x1A083F
#raw 0x27 'Step on the Spot Left (Fastest)
#raw 0xFE 'End of Movements

#org 0x15D025
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xFE 'End of Movements

#org 0x15D036
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xB 'Step Right (Normal)
#raw 0xFE 'End of Movements

#org 0x15D02D
#raw 0xA 'Step Left (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x15D03E
#raw 0xA 'Step Left (Normal)
#raw 0xA 'Step Left (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0x8 'Step Down (Normal)
#raw 0xFE 'End of Movements


This is Maxie(The Team Magma leader)'s script on Mt. Chimney.
I don't want Archie(The Team Idro leader) to show up and say anything at all, so after the battle with Maxie, he says something to you then he and the Magma grunts disappear.
Can anyone help me?:\

Note: Sorry if my English is bad sometimes, I'm Italian
  #1674    
Old July 14th, 2009 (12:22 AM).
ExitWound's Avatar
ExitWound ExitWound is offline
Boggle
 
Join Date: Aug 2007
Age: 23
Posts: 72
Ugh... Here we go again... I'm having troubles with a moving/battling script... again... This is what it's supposed to do:

Exclamation mark above your head followed by turning right.
Person walks 7 spaces left from out of screen to in front of you.
Wait for movement to complete.
Talks
Battles
Talks
Leaves
Wait for movement to complete
Done

This is what it does:
Exclamation mark above your head followed by turning right.
Wait for movement to complete (but doesn't move)
Talks
Battles
Talks
Wait for movement to complete (but doesn't move)
Done

The guy's Person ID is 1001 so you can't see him until the script kicks in. Which works. The only thing that doesn't is that he doesn't move (to my understanding). You can't see him because he is out of screen but that's what I think happens. The scripts var number is set to 5240 and this is a hack for Pokemon Sapphire.

Here is my script:

Spoiler:
#dynamic 0x8034F4

#org @start
checkflag 0x1002
if b_true goto @nevermind
clearflag 0x1001
release
playsong 0x1BF 0x1
applymovement 0xFF @1move
applymovement 9 @2move
waitmovement 0x0
msgbox @1msg 0x6
trainerbattle 0x1 0x89 0x0 @before @after @whatever
waitstate
end

#org @nevermind
release
end

#org @1msg
= Are you the one everbody knows as\n[player]?\p... ... ... ... ... ... ... ... ... ...\n... ... ... ... ... ... ... ... ... ...\pGood.\nI was hoping I could find you.\pMy name is NEIL. I've been researching\nthe skills of some of the trainers\laround here.\pNot many of them have what it takes\nto become the greatest.\pBut that is enough of my calling.\nIt's time to see just how good you\lare.\pUnfair?\nExcellent.

#org @before
= I'm not here to make friends.

#org @after
= Most superb!\nYou fared very well against me!\pBut don't think this is over.\nI've got special plans for you.

#org @whatever
lock
msgbox @2msg 0x6
applymovement 9 @3move
waitmovement 0x0
setflag 0x1001
setflag 0x1002
release
end

#org @2msg
= You, [player], are not the average\ntrainer.\pYou possess something these rookies\ndo not.\pWe'll certainly meet again.

#org @1move
#raw 0x03 0x56 0xFE

#org @2move
#raw 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0xFE

#org @3move
#raw 0x9 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x54 0xFE
__________________

+====================Supports====================+


+====================Supports====================+
  #1675    
Old July 14th, 2009 (09:01 AM).
Quickster's Avatar
Quickster Quickster is offline
Dream or Drop?
 
Join Date: Oct 2007
Gender: Male
Nature: Quiet
Posts: 350
Quote originally posted by ExitWound:
Ugh... Here we go again... I'm having troubles with a moving/battling script... again... This is what it's supposed to do:

Exclamation mark above your head followed by turning right.
Person walks 7 spaces left from out of screen to in front of you.
Wait for movement to complete.
Talks
Battles
Talks
Leaves
Wait for movement to complete
Done

This is what it does:
Exclamation mark above your head followed by turning right.
Wait for movement to complete (but doesn't move)
Talks
Battles
Talks
Wait for movement to complete (but doesn't move)
Done

The guy's Person ID is 1001 so you can't see him until the script kicks in. Which works. The only thing that doesn't is that he doesn't move (to my understanding). You can't see him because he is out of screen but that's what I think happens. The scripts var number is set to 5240 and this is a hack for Pokemon Sapphire.

Here is my script:

Spoiler:
#dynamic 0x8034F4

#org @start
checkflag 0x1002
if b_true goto @nevermind
clearflag 0x1001
release
playsong 0x1BF 0x1
applymovement 0xFF @1move
applymovement 0x9 @2move
waitmovement 0x0
msgbox @1msg 0x6
trainerbattle 0x1 0x89 0x0 @before @after @whatever
waitstate
end

#org @nevermind
release
end

#org @1msg
= Are you the one everbody knows as\n[player]?\p... ... ... ... ... ... ... ... ... ...\n... ... ... ... ... ... ... ... ... ...\pGood.\nI was hoping I could find you.\pMy name is NEIL. I've been researching\nthe skills of some of the trainers\laround here.\pNot many of them have what it takes\nto become the greatest.\pBut that is enough of my calling.\nIt's time to see just how good you\lare.\pUnfair?\nExcellent.

#org @before
= I'm not here to make friends.

#org @after
= Most superb!\nYou fared very well against me!\pBut don't think this is over.\nI've got special plans for you.

#org @whatever
lock
msgbox @2msg 0x6
applymovement 0x9 @3move
waitmovement 0x0
setflag 0x1001
setflag 0x1002
release
end

#org @2msg
= You, [player], are not the average\ntrainer.\pYou possess something these rookies\ndo not.\pWe'll certainly meet again.

#org @1move
#raw 0x03 0x56 0xFE

#org @2move
#raw 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0xFE

#org @3move
#raw 0x9 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x0B 0x54 0xFE

See if that works any better.Fixes are in bold.
__________________
I laugh looking at this.

But sometimes I want to come back to it...

Closed Thread
Quick Reply

Sponsored Links

You may also like.. (Beta)
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 UTC -8. The time now is 04:51 AM.