Script Help Thread (DO NOT REQUEST SCRIPTS) Page 268

Started by HackMew December 20th, 2008 5:10 AM
  • 625643 views
  • 9682 replies
Age 30
New Zealand
Seen April 9th, 2012
Posted April 3rd, 2012
18 posts
17.2 Years
Hey guys,

I'm having a problem with the FR/LG National Dex enabling script. I've followed instructions as set out on a Youtube video by "Ez3OsO", yet when I come to talk to the guy, the game freezes.

Screenshot:


Here's the code I am using.
Spoiler:
#org 0x800000
lock
faceplayer
checkflag 0x10A
if 1 jump 0x800050
special 0x16F
setflag 0x10A
fanfare 0x13E
msgbox 0x800100
callstd 0x6
waitfanfare
release
end

#org 0x800050
msgbox 0x800070
callstd 0x6
release
end

#org 0x800070
= Like your new POKéDEX?

#org 0x800100
= Your POKéDEX was upgraded!


This is the link to the video tutorial that I followed;
http://youtu.be/9_RGwVHVIoY

If anyone could help me out here that'd be much appreciated!
If anyone could pretty please PM me as to whether I am able to change my username, I'd be very thankful. You come to regret names you gave yourself when you were 13.
Male
Seen April 5th, 2023
Posted August 21st, 2021
5,853 posts
17 Years
Hey guys,

I'm having a problem with the FR/LG National Dex enabling script. I've followed instructions as set out on a Youtube video by "Ez3OsO", yet when I come to talk to the guy, the game freezes.

Screenshot:


Here's the code I am using.
Spoiler:
#org 0x800000
lock
faceplayer
checkflag 0x10A
if 1 jump 0x800050
special 0x16F
setflag 0x10A
fanfare 0x13E
msgbox 0x800100
callstd 0x6
waitfanfare
release
end

#org 0x800050
msgbox 0x800070
callstd 0x6
release
end

#org 0x800070
= Like your new POKéDEX?

#org 0x800100
= Your POKéDEX was upgraded!


This is the link to the video tutorial that I followed;
http://youtu.be/9_RGwVHVIoY

If anyone could help me out here that'd be much appreciated!
Wow that video is from 2009. Have you got the most recent version of XSE?

anyway, this is how I'd write up the script.
#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x10A
if 0x1 goto @end
special 0x16F
setflag 0x10A
fanfare 0x13E
msgbox @2 0x6
waitfanfare
release
end

#org @end
msgbox @1 0x6
release
end

#org @1
= Like your new POKéDEX?

#org @2
= Your POKéDEX was upgraded!
With XSE, you don't have to asign hex codes yourself, and rather than using hex codes to refer to different parts of the script, you can just use @whatever.

I suggest you read one of the script tutorials in the tutorials section. It's much better than watching a video.
Age 30
New Zealand
Seen April 9th, 2012
Posted April 3rd, 2012
18 posts
17.2 Years
Thanks! I'm sorry but I'm a complete noob so would you be able to recommend a certain tutorial that'd help me get this done? Bear in mind I've never scripted ANYTHING prior to this, so I need the very basic nuts and bolts of it.
If anyone could pretty please PM me as to whether I am able to change my username, I'd be very thankful. You come to regret names you gave yourself when you were 13.
Male
Seen July 26th, 2012
Posted July 14th, 2012
30 posts
13.9 Years
So it's been a while since I've hacked, about 2-3 years, and the other day I decided to get into it again.

So I downloaded the tools I usually use, pokescript, and and advanced map, and went to town.

Problem is, the version I downloaded quits if you ask a yes/ no question to the player. Regardless of what they pick, the script ends.

So I have a few questions.

1. Does anyone have a download link to a working version of pokescript that isn't that stupid 4shared one.
2. Is pokescript out dated? Is there something else I should use that's similar?

I love to hack, but I'd hate to have to learn a whole new scripting language.

Anyway, thanks.
Oh, and added a youtube video so you all know I sort of know what I'm doing, and I'm not some noob that took fire red and turned all the houses into caves or something.
http://www.youtube.com/watch?v=XyfwplS1E6o
youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
check out my shiny gold x run!
Male
Seen April 4th, 2016
Posted April 3rd, 2016
351 posts
15.6 Years
So it's been a while since I've hacked, about 2-3 years, and the other day I decided to get into it again.

So I downloaded the tools I usually use, pokescript, and and advanced map, and went to town.

Problem is, the version I downloaded quits if you ask a yes/ no question to the player. Regardless of what they pick, the script ends.

So I have a few questions.

1. Does anyone have a download link to a working version of pokescript that isn't that stupid 4shared one.
2. Is pokescript out dated? Is there something else I should use that's similar?



I love to hack, but I'd hate to have to learn a whole new scripting language.

Anyway, thanks.
Oh, and added a youtube video so you all know I sort of know what I'm doing, and I'm not some noob that took fire red and turned all the houses into caves or something.
http://www.youtube.com/watch?v=XyfwplS1E6o

You should deffinately learn XSE. HackMew made the program and it's fairly similar to PokeScript. You should get the latest version (though I dont know where... :I) and look at Diego's tutorial on it. Its a translated version of thethethethe's PokeScript tutorial.
I laugh looking at this.

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

Male
Seen July 26th, 2012
Posted July 14th, 2012
30 posts
13.9 Years
You should deffinately learn XSE. HackMew made the program and it's fairly similar to PokeScript. You should get the latest version (though I dont know where... :I) and look at Diego's tutorial on it. Its a translated version of thethethethe's PokeScript tutorial.
I have tried XSE before, but was never truly a fan of it, and ended up going back to pokescript.
Ideally I'd like to get the version of pokescript I need, but I will resort to XSE if I have to.

Thanks for the reply!
youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
check out my shiny gold x run!

droomph

weeb

Age 26
Male
nowhere spectacular
Seen February 1st, 2017
Posted January 3rd, 2017
4,282 posts
11.7 Years
I have tried XSE before, but was never truly a fan of it, and ended up going back to pokescript.
Ideally I'd like to get the version of pokescript I need, but I will resort to XSE if I have to.

Thanks for the reply!
I dunno why you would like Pokescript, but it's been out of commission since, like, three years.

Try PKSV. It's kinda the same with the development thing, but it's a lot easier to use, and it's a tiny bit less out of date.

But ultimately try XSE again, I'm sure you'll love it.

Also, remember to try Darthatron's Scripter when it does come out. I heard it's gonna be awwwwweesome ^^
did u no there r 21 letters in the alphabet
o i forgot 5
uraqt


Male
Seen July 26th, 2012
Posted July 14th, 2012
30 posts
13.9 Years
I dunno why you would like Pokescript, but it's been out of commission since, like, three years.

Try PKSV. It's kinda the same with the development thing, but it's a lot easier to use, and it's a tiny bit less out of date.

But ultimately try XSE again, I'm sure you'll love it.

Also, remember to try Darthatron's Scripter when it does come out. I heard it's gonna be awwwwweesome ^^
What's so great about XSE?
it seems exactly the same only it has a built in editor, and replaces things like "#raw 0x53" with "HideSprite" or something.

I guess I could give it a whirl, once again, thanks for the replies!
Anyone have a link to an XSE version guaranteed to work?
youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
check out my shiny gold x run!
Male
Seen April 4th, 2016
Posted April 3rd, 2016
351 posts
15.6 Years
What's so great about XSE?
it seems exactly the same only it has a built in editor, and replaces things like "#raw 0x53" with "HideSprite" or something.

I guess I could give it a whirl, once again, thanks for the replies!
Anyone have a link to an XSE version guaranteed to work?
Well the only thing is that it is sorta simplified, plus a good amount of the community uses it so it has more support.

Ill try to find a link for you too.

EDIT:
In this post, DrFuji posted a link to the newest one.
http://www.pokecommunity.com/showpost.php?p=7103538&postcount=6670
I laugh looking at this.

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

Male
Seen July 26th, 2012
Posted July 14th, 2012
30 posts
13.9 Years
Well the only thing is that it is sorta simplified, plus a good amount of the community uses it so it has more support.

Ill try to find a link for you too.

EDIT:
In this post, DrFuji posted a link to the newest one.
Thanks! I often used thethethethe's tutorials, so I think the other guys tutorial would be useful to me, however you never left his full name, so sadly I'm having trouble finding it.

Do you have a link by chance?

Also very impressed by the community so far, thanks for all the help!
youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
check out my shiny gold x run!

Sierraffinity

Retiring from Pokémon ROM hacking

Age 26
she/her
Somewhere the rains of Africa can be blessed
Seen January 8th, 2023
Posted December 26th, 2022
1,071 posts
15.4 Years
Thanks! I often used thethethethe's tutorials, so I think the other guys tutorial would be useful to me, however you never left his full name, so sadly I'm having trouble finding it.

Do you have a link by chance?

Also very impressed by the community so far, thanks for all the help!
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial ;)
Restarted and revamped.

Public alpha out now!
Male
Seen July 26th, 2012
Posted July 14th, 2012
30 posts
13.9 Years
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial ;)
Ah thank you! I hope you all download and enjoy my hack when it's released.

First XSE script and I'm having minor issues.
So I'm using a hide sprite command, however the sprite only disappears once you leave and re-enter the room. Is there a way to force an update without fading the screen or something?

If you want the code, it's here.

#dynamic 0x2DD100

#org @start
lock
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
release
end

#org @take
hidesprite 0x04
setflag 0x1007
msgbox @2 0x4
waitfanfare
closeonkeypress
setflag 0x829
special 0x16F
release
end

#org @1
= There's a Pokedex on\nthe ground.\pWould you like to pick it up?

#org @2
= [black_fr]You received a Pokedex!
facepalm
Figured it out.
Nevermind
youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
check out my shiny gold x run!
Male
United States
Seen January 9th, 2023
Posted August 13th, 2018
80 posts
11.6 Years
Hey everyone I have a quick question.
#org $script
faceplayer
message $talk
$talk 1 = Hey bro I am going to get \nsome lunch. Seeya later.
boxset 6
applymovement 7 $move
$move 1 ; #binary #raw 0x07 0x07 0x07 0x05 0x05 0x05 0x05 0x54
pausemove 0x0000
#raw 53
#raw 22
#raw 00
setflag 0x200
release
end
This script works, but after I talk to the sprite it freezes my game. He says what he is supposed to and everything, but then when I try to move my character/sprite it wont work. I only want this person that I talk to in the game to happen once. Can someone help me?
Old timer back on the forums.
Age 28
Male
Im an AI. I live in a chip.
Seen December 31st, 2012
Posted May 30th, 2012
27 posts
11.8 Years
I'm having some trouble making a script. I want to basically count the steps a hero takes. I originally was going to use the safari's script but its a special and idk how to edit that. Ant advice?

Nevermind. I basically wanted to make it so a player has to occasionally eat something (items im inserting into the game) or they cant run untill they eat again.

I was going to use a step counter (like the safari zone uses) but it seems way too unnecessary for this type of thing.

I allready know how to check the statysbyte of the RTC so im using that instead. So now if a player doesnt eat every 3 hours the flag for running shoes is reset until they eat again.

Thanks anyways :D
Age 28
Male
Im an AI. I live in a chip.
Seen December 31st, 2012
Posted May 30th, 2012
27 posts
11.8 Years
Is there a way to give a pokemon pkrs? If so what command is used?
You have to use ASM.

(I didnt make this, JPAN did so credits go to him)

This code here allows you to cure, immunize and catch the pokemon virus. To make it work, put in var 0x8005 a number between 0x1 and 0xf to give it, 0x0 to cure but not immunize and 0x10 or higher to immunize the pokemon, preventing him to ever catch the virus again (even with this code)

ASM Code:
Spoiler:
b507 push {r0-r2, lr}
4806 ldr r0, 0x0203f414 ;Misc block data storage address
6800 ldr r0, [r0]
4906 ldr r1, 0x020370C2 ;var 0x8005, keeps pokerus new status
7802 ldrb r2, [r0]
2a0f cmp r2, 0xf ; if immune, do nothing
dc02 bgt end
8809 ldrh r1, [r1] ;time to remain, bigger than 10 to immunize
2910 cmp r1, 0x10
db00 blt infect
2110 mov r1, 0x10
7001 infect:strb r1, [r0]
bd07 end:pop {r0-r2, lr}


Compiled and ready:
Spoiler:
07 B5 06 48 00 68 06 49 02 78 0F 2A 04 DC 09 88
10 29 00 DB 10 21 01 70 07 BD 00 00 14 F4 03 02
C2 70 03 02
Male
Seen May 8th, 2012
Posted April 3rd, 2012
5 posts
12.6 Years
hey everyone i have a quick question, is there a certain way you're supposed to make scripts that happen when you walk on the tile? say for a rival battle, or you can walk here without a certain thing? i've tried a million different ways maybe i'm missing something. this is my simple example of walking to a cave but you cant go there cause you havent gotten a pokemon yet.

Spoiler:

#dyn 0x740000
#org @start
'-----------------------------------
lockall
msgbox @text
callstd MSG_NORMAL
applymovement PLAYER @move
pauseevent 0x0
releaseall
end


#org @move
M walk_right walk_right look_down end

#org @text
= Wait i can't go this way yet.


obviously im gonna spice it up with flags, but am i way off course? i looked at scripts already in the game and they use the lockall command...
p.s. im using pksv, but i have xse worse case scenario

any guidance would be appreciated thanks!
Age 28
Female
EVERYWHERE >:D
Seen May 2nd, 2013
Posted June 25th, 2012
25 posts
11.1 Years
I was just wondering what a good scripting tool would be, as well as how to use it.
Thanks for the help! (if I get it lol)
My deviantART page -- http://cosmic-angel-raine.deviantart.com/
My Nuzlocke on the Nuzlocke Forums -- http://s7.zetaboards.com/Nuzlocke_Forum/topic/8656660/1/

Hacks I've played:

Age 31
Male
Uxbridge
Seen February 18th, 2021
Posted April 9th, 2020
124 posts
11.6 Years
hey everyone i have a quick question, is there a certain way you're supposed to make scripts that happen when you walk on the tile? say for a rival battle, or you can walk here without a certain thing? i've tried a million different ways maybe i'm missing something. this is my simple example of walking to a cave but you cant go there cause you havent gotten a pokemon yet.

Spoiler:

#dyn 0x740000
#org @start
'-----------------------------------
lockall
msgbox @text
callstd MSG_NORMAL
applymovement PLAYER @move
pauseevent 0x0
releaseall
end


#org @move
M walk_right walk_right look_down end

#org @text
= Wait i can't go this way yet.


obviously im gonna spice it up with flags, but am i way off course? i looked at scripts already in the game and they use the lockall command...
p.s. im using pksv, but i have xse worse case scenario

any guidance would be appreciated thanks!
What you're trying to do is a trip script.
I have a video that shows and explains how to make them.
I do believe you have to use XSE to do them though.
Skip to 8:35 for trip script tutorial.
http://www.youtube.com/watch?v=rhvDX1_b8Ek
Currently working on a new Pokemon Hack with an in-depth story line!
That's about as much as you're going to get for now...


miksy91

Dark Energy is back in action! ;)

Male
Finland
Seen September 21st, 2022
Posted September 21st, 2022
1,480 posts
14.6 Years
You have to use ASM.

(I didnt make this, JPAN did so credits go to him)

This code here allows you to cure, immunize and catch the pokemon virus. To make it work, put in var 0x8005 a number between 0x1 and 0xf to give it, 0x0 to cure but not immunize and 0x10 or higher to immunize the pokemon, preventing him to ever catch the virus again (even with this code)

ASM Code:
b507 push {r0-r2, lr}
4806 ldr r0, 0x0203f414 ;Misc block data storage address
6800 ldr r0, [r0]
4906 ldr r1, 0x020370C2 ;var 0x8005, keeps pokerus new status
7802 ldrb r2, [r0]
2a0f cmp r2, 0xf ; if immune, do nothing
dc02 bgt end
8809 ldrh r1, [r1] ;time to remain, bigger than 10 to immunize
2910 cmp r1, 0x10
db00 blt infect
2110 mov r1, 0x10
7001 infect:strb r1, [r0]
bd07 end:pop {r0-r2, lr}

Compiled and ready:
07 B5 06 48 00 68 06 49 02 78 0F 2A 04 DC 09 88
10 29 00 DB 10 21 01 70 07 BD 00 00 14 F4 03 02
C2 70 03 02
Just figured to point out that the assembly code doesn't match with how it's written in hexadecimal below (changes in bold).

Besides, what's up with there being no "command" bytes. So far, the "compiled" code only contains bytes that are stored in different registers etc. although the stuff after 07 BD seems to have something to do with all that code before it.
Pokémon Dark Energy
Some ROM hacking related stuff
Male
Seen May 8th, 2012
Posted April 3rd, 2012
5 posts
12.6 Years


What you're trying to do is a trip script.
I have a video that shows and explains how to make them.
I do believe you have to use XSE to do them though.
Skip to 8:35 for trip script tutorial.
thank you that adds a lot of clarity, but i still cant seem to get it to work. Even after copy and pasting from your tut, it does nothing. usually it just freezes when i trip it, but with yours nothing happens. does it matter im using a fire red rom, patched with a rom base?
Age 31
Male
Uxbridge
Seen February 18th, 2021
Posted April 9th, 2020
124 posts
11.6 Years
thank you that adds a lot of clarity, but i still cant seem to get it to work. Even after copy and pasting from your tut, it does nothing. usually it just freezes when i trip it, but with yours nothing happens. does it matter im using a fire red rom, patched with a rom base?
I don't know about Fire Red unfortunately.
It might not work because the codes are used differently so I'm not sure.
I'm sure someone one this thread will help clear this up for you =]
Currently working on a new Pokemon Hack with an in-depth story line!
That's about as much as you're going to get for now...


Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
thank you that adds a lot of clarity, but i still cant seem to get it to work. Even after copy and pasting from your tut, it does nothing. usually it just freezes when i trip it, but with yours nothing happens. does it matter im using a fire red rom, patched with a rom base?
Try Unknown value: 03, Variable Number: 4050.
Female
Seen May 1st, 2022
Posted May 1st, 2022
28 posts
11.1 Years
When i try and load my ROM the screen stays white. I can load my save state from earlier and it is all buggy until i enter a building. It also freezes occasionally when i go into a new rote/town/building/cave.

Can i fix this? It also will not let me save the project under another name.

Will i have to load up the original rom and restart... if so, how can i prevent this from happening again?