Script Help Thread (DO NOT REQUEST SCRIPTS) Page 127

Started by HackMew December 20th, 2008 5:10 AM
  • 625760 views
  • 9682 replies
Male
OZ
Seen September 17th, 2022
Posted September 2nd, 2017
57 posts
14.4 Years
Hi,

I am kind of new to this and I need some help. I started out with small scripts first, but now I am trying something new. It complies fine and stuff, but it just wont run when I step on the script square.



Any ideas?
have you set the var number in advance map to match the var you set in the script?
Male
Seen June 15th, 2016
Posted July 21st, 2011
12 posts
13.3 Years
I have an error in the battles with Gary, I'm making a Yellow Remake (in Brazilian Portuguese, yes, I'm Brazilian :P), but in the first battle with Gary, after I defeat he, Pikachu learns "Tail Whip", and the message appears "TAIL WHIP derrotou RIVAL GARY!" (TAIL WHIP defeated RIVAL GARY!), and ALL the battles with he, after I defeat he, appears: " derrotou RIVAL GARY!" ( defeated RIVAL GARY!). How I solve this?!?!

Satoshi Ookami

Memento Mori

Age 30
Male
Abyss of Time, Great Seal
Seen August 5th, 2018
Posted July 3rd, 2018
14,253 posts
14.8 Years
Any ideas?
Start using XSE ;)
That way you will surely get more help.
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List
Seen July 31st, 2010
Posted March 1st, 2010
5 posts
13.2 Years
Start using XSE ;)
That way you will surely get more help.
I dont really like XSE, but I fixed the problem. All I had to do was update the Advmap. I do have a question though. In FireRed, when you start a new game, and go outside the house, you do not see Prof. Oak until you go to the script boxes above. Once you go to the script boxes above he randomly appears on the tile that it shows him on in Advmap, how do I do this?

0m3GA ARS3NAL

Im comin' home...

Age 30
Male
Superjail Penitentiary
Seen February 25th, 2023
Posted September 12th, 2013
1,816 posts
15.3 Years
I dont really like XSE, but I fixed the problem. All I had to do was update the Advmap. I do have a question though. In FireRed, when you start a new game, and go outside the house, you do not see Prof. Oak until you go to the script boxes above. Once you go to the script boxes above he randomly appears on the tile that it shows him on in Advmap, how do I do this?
Try looking at how Professor Oak is set up... his settings ya know?
>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...

>

Matteron (96)

Can't Read Lookin Ass

Age 26
Seen December 4th, 2022
Posted April 3rd, 2011
270 posts
15 Years
@smoktomb:
hmm...what's this...oh! "Hidden"
Matteron(96)
Currently Playing--->
Progress: Post-Game
Current Team:


In Terms of Hacking...
Favorite ROM
Skills
Working On
In Terms of Game Dev...
Working On
News
I'm currently up for hire, for almost anything in ROM hacking, so just send me a PM.
Male
Sweden
Seen February 28th, 2023
Posted March 5th, 2010
28 posts
14.2 Years
I need help with my givepokemon script. The character doesn't say or give anything, just a clicking sound...

Game: FireRed
Program: XSE
#dynamic 0x8015BB

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @take
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @6 0x6
release
end

#org @1
= BLU: Hello!\nI've been waiting for you.\n[...]With your new POKéMON in hand, a new life starts.\nYou will meet new POKéMON,\nother trainers and explore the world!\pWell, enough chitchatting, now here you go.

#org @2
= What? You won't accept it!?

#org @3
= [black_fr]You received a Whismur!

#org @4
= [black_fr]Would you like to give a\nnickname to Whismur?

#org @5
= Good luck!

#org @6
= Ah, hello.\nHow's it going?


Goldie

Trainer from the Boonies

Northern Alberta
Seen October 9th, 2014
Posted August 22nd, 2014
80 posts
15 Years
Game: Pokemon Ruby
Script editor: XSE
Script type: Person event





I am trying to edit the script of your rival in Oldale town, after you battle him/her for the first time. I've changed the text of what they say, but now I need to make him/her move to the right, rather than down. I tried changing all of the #raw 0x8 'Step Down (Normal) to #raw 0x8 'Step Right (Normal), and compiling the script. But if I go back to editing it again, it goes right back to being 'Step Down (Normal), no matter how much I try to change it. I'm guessing that I'm probably making some silly mistake. Anyways, as you can see in the picture above, I want the rival to move to the right, jump over that ledge, and leave the map. I'll post the entire script below.
Also, I was wondering if there would be anyway to remove the option to play as a girl in the game. Any way to exclude the gender option from the introduction, so you must play as a boy, like in the older generation games.


Thanks in advance for your help! I'd prefer if you send your help via PM, because I think I'd have trouble finding it here. Your help is much appreciated.


Spoiler:
'---------------
#org 0x14DF30
lockall
applymovement 0x4 0x81A0839
waitmovement 0x0
goto 0x814DF92


'---------------
#org 0x14DF92
checkgender
compare LASTRESULT 0x0
if 0x1 goto 0x814DFAA
compare LASTRESULT 0x1
if 0x1 goto 0x814DFB8
end


'---------------
#org 0x14DFAA
msgbox 0x816B196 MSG_KEEPOPEN '"WINTER: Come on, [player], let's g..."
goto 0x814DFC6


'---------------
#org 0x14DFB8
msgbox 0x816B1BE MSG_KEEPOPEN '"re... I've got a really, really\lb..."
goto 0x814DFC6


'---------------
#org 0x14DFC6
closeonkeypress
applymovement 0x4 0x86B269C
waitmovement 0x0
hidesprite 0x4
setvar 0x40C7 0x2
setflag 0x3D3
releaseall
end




'---------
' Strings
'---------
#org 0x16B196
= WINTER: Come on, [player], let's get out\nof here... I've got a really, really\lbad feeling about this place...


#org 0x16B1BE
= re... I've got a really, really\lbad feeling about this place...




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


#org 0x6B269C
#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

3DS FC: 5472-7039-8692
Male
Seen August 17th, 2016
Posted May 9th, 2015
673 posts
14.2 Years
Game: Pokemon Ruby
Script editor: XSE
Script type: Person event





I am trying to edit the script of your rival in Oldale town, after you battle him/her for the first time. I've changed the text of what they say, but now I need to make him/her move to the right, rather than down. I tried changing all of the #raw 0x8 'Step Down (Normal) to #raw 0x8 'Step Right (Normal), and compiling the script. But if I go back to editing it again, it goes right back to being 'Step Down (Normal), no matter how much I try to change it. I'm guessing that I'm probably making some silly mistake. Anyways, as you can see in the picture above, I want the rival to move to the right, jump over that ledge, and leave the map. I'll post the entire script below.
Also, I was wondering if there would be anyway to remove the option to play as a girl in the game. Any way to exclude the gender option from the introduction, so you must play as a boy, like in the older generation games.


Thanks in advance for your help! I'd prefer if you send your help via PM, because I think I'd have trouble finding it here. Your help is much appreciated.


Spoiler:
'---------------
#org 0x14DF30
lockall
applymovement 0x4 0x81A0839
waitmovement 0x0
goto 0x814DF92


'---------------
#org 0x14DF92
checkgender
compare LASTRESULT 0x0
if 0x1 goto 0x814DFAA
compare LASTRESULT 0x1
if 0x1 goto 0x814DFB8
end


'---------------
#org 0x14DFAA
msgbox 0x816B196 MSG_KEEPOPEN '"WINTER: Come on, [player], let's g..."
goto 0x814DFC6


'---------------
#org 0x14DFB8
msgbox 0x816B1BE MSG_KEEPOPEN '"re... I've got a really, really\lb..."
goto 0x814DFC6


'---------------
#org 0x14DFC6
closeonkeypress
applymovement 0x4 0x86B269C
waitmovement 0x0
hidesprite 0x4
setvar 0x40C7 0x2
setflag 0x3D3
releaseall
end




'---------
' Strings
'---------
#org 0x16B196
= WINTER: Come on, [player], let's get out\nof here... I've got a really, really\lbad feeling about this place...


#org 0x16B1BE
= re... I've got a really, really\lbad feeling about this place...




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


#org 0x6B269C
#raw 0x13 'Step Down (Normal)
#raw 0x13 'Step Down (Normal)
#raw 0x13 'Step Down (Normal)
#raw 0x13 'Step Down (Normal)
#raw 0x13 'Step Down (Normal)
#raw 0x13 'Step Down (Normal)
#raw 0xFE 'End of Movements
You have to change the number, not the wording. For "step right" you use #raw 0x13.

Satoshi Ookami

Memento Mori

Age 30
Male
Abyss of Time, Great Seal
Seen August 5th, 2018
Posted July 3rd, 2018
14,253 posts
14.8 Years
I need help with my givepokemon script. The character doesn't say or give anything, just a clicking sound...
Do you have flag 828 already set?
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List
Male
Sweden
Seen February 28th, 2023
Posted March 5th, 2010
28 posts
14.2 Years
Do you have flag 828 already set?
Oh, that was the problem. xD
Thank you. ^^


Okay, I have another problem...
XSE, FireRed, trainer script with movement:

#dynamic 0x803E7E

#org @start
trainerbattle 0x0 0x001 0x0 @before @after
end

#org @before
msgbox @1 0x6
end

#org @after
msgbox @2 0x6
applymovement 0x10 @end
end

#org @1
= Hey!\nStop there!

#org @2
= We will meet again...

#org @end
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
end

The trainer says something like ''Ó ÉA!'' and after you've defeated him, he doesn't walk away...


Male
Seen August 17th, 2016
Posted May 9th, 2015
673 posts
14.2 Years
Oh, that was the problem. xD
Thank you. ^^


Okay, I have another problem...
XSE, FireRed, trainer script with movement:

#dynamic 0x803E7E

#org @start
trainerbattle 0x1 0x001 0x0 @1 @2 @after
end

#org @after
applymovement 0x10 @end
end

#org @1
= Hey!\nStop there!

#org @2
= We will meet again...

#org @end
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xfe
end

The trainer says something like ''Ó ÉA!'' and after you've defeated him, he doesn't walk away...
For trainerbattle 0x0, the @after is the defeated text, so it's trying to say what you scripted there. For a script that executes itself after the battle use 0x1 instead - some sorta changes in bold. Also, make sure the applymovement # is the same as the person event #, and that you're converting it to hex. 10 is 0xA in hex.

videoman

I'm no hero. And never was.

Age 32
Male
In my own Videogame World
Seen January 18th, 2018
Posted April 23rd, 2017
43 posts
14.8 Years
Hi there! I have a rather good question...I am in the process of making a game hack and have run into a couple of questions. So here they are: Is it possible to making a event script that can change the structure of the map? Like if at one point in the game you can not cross a bridge because it is broken in the middle...but later on you can cross it because it has been fixed. and also...is it possible to make a map under water? Like you are in a underwater building and you can see fish Pokemon swimming around. Like you are in a Aquarium that is underwater and you are walking in a tube. can that be done? Also for those of you who have played: Pokemon Shiny Gold....is it possible to improve the Magnet Train scene? Like if you open the the map in Advance map, you will notice that the train actually never moves in the game, it just looks like it. On a side note for the train...can you make a scene that two trains are running along side each other and people are hopping from one train to yours? People like Team Rocket? and then they stop the train. Sorry if i am asking a lot but, i was just wondering if all of this can be done through scripting?
Thanks
I'm a shadow, one that no light will shine on. As long as you follow me, you'll never see the day.
-Old Snake from Metal Gear Solid 4: Guns of the Patriots
Male
Sweden
Seen February 28th, 2023
Posted March 5th, 2010
28 posts
14.2 Years
For trainerbattle 0x0, the @after is the defeated text, so it's trying to say what you scripted there. For a script that executes itself after the battle use 0x1 instead - some sorta changes in bold. Also, make sure the applymovement # is the same as the person event #, and that you're converting it to hex. 10 is 0xA in hex.
Thank you very much! :D

But if I want to make the trainer disappear after applymovement...? And he will never be there again.


Satoshi Ookami

Memento Mori

Age 30
Male
Abyss of Time, Great Seal
Seen August 5th, 2018
Posted July 3rd, 2018
14,253 posts
14.8 Years
Thank you very much! :D

But if I want to make the trainer disappear after applymovement...? And he will never be there again.
Use setflag command and the number of flag must be written to ID bar in A-Map .)
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List
Male
Austin TX.
Seen December 1st, 2011
Posted February 7th, 2011
27 posts
13.5 Years
Hmm...setflag 0x??? (Which number?) in #org @start and then I put the setflag number on a Person ID?
Exactly. Look in Advancemap to find the person ID of the sprite you want to make vanish. (e.g. 004) Then just set that flag and away they go! (setflag 0x004) and if you ever want them back just clear the flag. (clearflag 0x004)
(Enter clever observation here)
Shukumei's PokePet

Shade the level 50 Umbreon!

tinix

PearlShipper & C Programmer

Age 26
Male
Bratislava, Slovakia
Seen June 19th, 2021
Posted December 31st, 2012
86 posts
13.2 Years
Game: fire red
editor: PKSV
script:
Spoiler:
#org 0x87400DC
'-----------------------------------
lock
faceplayer
checkflag 0x205
if true jump 0x8740105 ' Flag is set
applymovement 0x3 0x8740177 ' walk_down walk_down ...
msgbox 0x8740109 ' Hey You!
callstd MSG_NOCLOSE ' Non-closing message
setflag 0x205
call 0x874017F
applymovement 0x3 0x8026C7A ' look_up walk_up walk...
release
end

#org 0x8740105
'-----------------------------------
release
end

#org 0x874017F
'-----------------------------------
trainerbattle 0x0 0x3 0x0 0x8740112
return


#org 0x8740109
= Hey You!

#org 0x8740112
= You are rookie trainer arent you? \nLets have a battle.

#org 0x8740177
M walk_down walk_down end

#org 0x8026C7A
M look_up walk_up walk_up look_down end


I have there applymovement after trainerbattle but it doesnt execute how can i get it to work ? (other parts work)
Male
Sweden
Seen February 28th, 2023
Posted March 5th, 2010
28 posts
14.2 Years
Exactly. Look in Advancemap to find the person ID of the sprite you want to make vanish. (e.g. 004) Then just set that flag and away they go! (setflag 0x004) and if you ever want them back just clear the flag. (clearflag 0x004)
Okay, thanks! :D
But how do I know which People ID the event have? 'Cuz now it says 0000. :S


Male
OZ
Seen September 17th, 2022
Posted September 2nd, 2017
57 posts
14.4 Years
Game: fire red
editor: PKSV
script:
Spoiler:
#org 0x87400DC
'-----------------------------------
lock
faceplayer
checkflag 0x205
if true jump 0x8740105 ' Flag is set
applymovement 0x3 0x8740177 ' walk_down walk_down ...
msgbox 0x8740109 ' Hey You!
callstd MSG_NOCLOSE ' Non-closing message
setflag 0x205
call 0x874017F
applymovement 0x3 0x8026C7A ' look_up walk_up walk...
release
end

#org 0x8740105
'-----------------------------------
release
end

#org 0x874017F
'-----------------------------------
trainerbattle 0x0 0x3 0x0 0x8740112
return


#org 0x8740109
= Hey You!

#org 0x8740112
= You are rookie trainer arent you? \nLets have a battle.

#org 0x8740177
M walk_down walk_down end

#org 0x8026C7A
M look_up walk_up walk_up look_down end


I have there applymovement after trainerbattle but it doesnt execute how can i get it to work ? (other parts work)
Is the person event no. of the person you're applying the movement to number 3?

Satoshi Ookami

Memento Mori

Age 30
Male
Abyss of Time, Great Seal
Seen August 5th, 2018
Posted July 3rd, 2018
14,253 posts
14.8 Years
You get to choose. If you do setflag 0x8001, then the People ID should be 8001.
8001? That's kinda high number =)
If I'm right then 7FFF is maximum value for flag with expanded ROM and 3FFF with the normal one.
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List