• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.

bian

.............
147
Posts
16
Years
Can you tell me the script in fire red in xse where when the prof gives you the pokedex,
it is already in the national pokedex mode.

sorry,it seems that i can't find that script even when searching in google so i just asked here instead.

pls answer,tnx..
 

JPAN

pokemon rom researcher
104
Posts
15
Years
  • Seen Jul 2, 2016
The National Pokedex script starts on offset 0x8169035, located inside all of Prof.Oak's scripts (starting at 0x8169595).


Is there a limit to the amount of items I can have in a pokemart through scripting. Like can I have one shop person sell all the tms?

It seems able to support any number of items. I tested it with 128 items and it worked, so it should support all 50 tms with no problem.
 

Aethestode

Hacker
1,700
Posts
16
Years
  • Age 31
  • Seen Aug 14, 2023
You accidentally put messages instead of message.

I changed but it's still blank. And do anyone know how to make a script that makes sprite follow the main character (like pikachu following the main characetr in Pokemon Yellow)
 

~Teh Panda~

Back in hacktion
918
Posts
16
Years
  • Seen Jul 20, 2022
Im working on a large script and my smaller one for an offshoot of the will not work when I step on its tile. its not all done but the first one is done and the second one is. Over all there will be four but it should work on the second script!

Main one First:

Code:
   '---------------
#org 0x7A0000
lock
faceplayer
checkflag 0x200
if 0x1 goto 0x87A0074
checkflag 0x201
if 0x1 goto 0x87A0095
checkflag 0x202
if 0x1 goto 0x87A00D1
checkflag 0x203
if 0x1 goto 0x87A007F
checkflag 0x204
if 0x1 goto 0x87A00A9
checkflag 0x205
if 0x1 goto 0x87A010C
checkflag 0x206
if 0x1 goto 0x87A008A
checkflag 0x207
if 0x1 goto 0x87A00BD
checkflag 0x208
if 0x1 goto 0x87A019D
msgbox 0x87A015C MSG_YESNO '"Could you deliver a package as a\n..."
compare LASTRESULT 0x1
if 0x1 goto 0x87A01E6
compare LASTRESULT 0x0
if 0x1 goto 0x87A01BB
release
end

'---------------
#org 0x7A0074
msgbox 0x87A014A MSG_NORMAL '"Well get to it!"
release
end

'---------------
#org 0x7A0095
givemoney 0x100 0x0
msgbox 0x87A02C4 MSG_NORMAL '"Thank you very much! Here is your\..."
clearflag 0x200
clearflag 0x201
setflag 0x202
release
end

'---------------
#org 0x7A00D1
msgbox 0x87A015C MSG_YESNO '"Could you deliver a package as a\n..."
compare LASTRESULT 0x1
if 0x1 goto 0x87A00F2
compare LASTRESULT 0x0
if 0x1 goto 0x87A01BB
release
end

'---------------
#org 0x7A007F
msgbox 0x87A014A MSG_NORMAL '"Well get to it!"
release
end

'---------------
#org 0x7A00A9
givemoney 0x100 0x0
msgbox 0x87A02C4 MSG_NORMAL '"Thank you very much! Here is your\..."
checkflag 0x203
checkflag 0x204
setflag 0x205
release
end

'---------------
#org 0x7A010C
msgbox 0x87A015C MSG_YESNO '"Could you deliver a package as a\n..."
compare LASTRESULT 0x1
if 0x1 goto 0x87A0130
compare LASTRESULT 0x0
if 0x1 goto 0x87A01BB
setflag 0x203
release
end

'---------------
#org 0x7A008A
msgbox 0x87A014A MSG_NORMAL '"Well get to it!"
release
end

'---------------
#org 0x7A00BD
givemoney 0x100 0x0
msgbox 0x87A02C4 MSG_NORMAL '"Thank you very much! Here is your\..."
checkflag 0x206
checkflag 0x207
setflag 0x208
release
end

'---------------
#org 0x7A019D
clearflag 0x208
goto 0x87A0000

'---------------
#org 0x7A01E6
msgbox 0x87A0200 MSG_NORMAL '"Oh great!\nWell this package needs..."
giveitem 0x349 0x1 MSG_OBTAIN
setflag 0x200
setflag 0x209
release
end

'---------------
#org 0x7A01BB
msgbox 0x87A01C6 MSG_NORMAL '"Alright then, thanks anyways."
release
end

'---------------
#org 0x7A00F2
msgbox 0x87A024D MSG_NORMAL '"Oh great! Well this package needs\..."
giveitem 0x349 0x1 MSG_OBTAIN
setflag 0x203
release
end

'---------------
#org 0x7A0130
msgbox 0x87A0284 MSG_NORMAL '"Oh great!\nWell this package needs..."
giveitem 0x349 0x1 MSG_OBTAIN
setflag 0x206
release
end


'---------
' Strings
'---------
#org 0x7A015C
= Could you deliver a package as a\ndelivery boy for our company?

#org 0x7A014A
= Well get to it!

#org 0x7A02C4
= Thank you very much! Here is your\nearned money.\l[player] received  100 to add to \nmoney.

#org 0x7A0200
= Oh great!\nWell this package needs o go to\lthe schoolhouse across the city.

#org 0x7A01C6
= Alright then, thanks anyways.

#org 0x7A024D
= Oh great! Well this package needs\no go to the docks.

#org 0x7A0284
= Oh great!\nWell this package needs o go to\lthe Pokemon center.

Second one:

Code:
'---------------
#org 0x800119
lock
checkflag 0x200
if B_False goto 0x8800131
msgbox 0x8800601 MSG_NORMAL '"Package delivered. \nGo back to re..."
setflag 0x202
release
end

'---------------
#org 0x800131
release
end


'---------
' Strings
'---------
#org 0x800601
= Package delivered. \nGo back to receive your money!
 

Andryandrew

Italian Asm Hacker
117
Posts
17
Years
  • Age 30
  • Seen Jul 4, 2015
I wanted to write over the Player OW's offset in the Ram, yes. I took the offset from a hex editor because I assumed that would work. Guess not. Do you know the offset in the memory viewer that points to the main player's OW?
It's 02020649... Here there is the pointer in RAM

I changed but it's still blank. And do anyone know how to make a script that makes sprite follow the main character (like pikachu following the main characetr in Pokemon Yellow)
it is possible only with ASM... and it's difficult...
 
Last edited:

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
It seems able to support any number of items. I tested it with 128 items and it worked, so it should support all 50 tms with no problem.

Honestly, selling all the TMs doesn't really make a lot of sense...


I changed but it's still blank. And do anyone know how to make a script that makes sprite follow the main character (like pikachu following the main characetr in Pokemon Yellow)

What about using XSE instead? Regarding the follow me question... you may be happy to know that question was asked - and answered - already: using scripting you can't. You need ASM.


Im working on a large script and my smaller one for an offshoot of the will not work when I step on its tile. its not all done but the first one is done and the second one is. Over all there will be four but it should work on the second script!

Main one First:

Spoiler:

Rules must be followed, always. Don't forget it.
Anyway, "the script doesn't work" is way too generic. What the script should do? And what happens instead?

The first problem I can notice is the giveitem, which is wrong.

Code:
giveitem 0x349 0x1 MSG_OBTAIN

Item 0x349 doesn't exists. Item 349 (0x15D) does instead. That's Oak's Parcel.
Of course if you use headers, such things wouldn't happen:

Code:
giveitem ITEM_OAKSPARCEL 0x1 MSG_OBTAIN
 
Last edited:

1KewlDude

Really busy... STRESS!!
124
Posts
16
Years
Can someone help me please! I have this long script which just won't work, you just pass over the spots and nothing happens... Here it is...
Spoiler:
 
14
Posts
16
Years
  • Seen Jul 1, 2009
hey how do i get an other charactor to give the main charactor one item. this is my script but each time i talk to them it gives me another?

#dynamic 0x2DD1F4
#org @start
msgbox @message 0x2
giveitem 0x6 0x6 0x0
release
end
#org @message
= [blue_fr]Here, have a NET BALL.
 

~Teh Panda~

Back in hacktion
918
Posts
16
Years
  • Seen Jul 20, 2022
Honestly, selling all the TMs doesn't really make a lot of sense...




What about using XSE instead? Regarding the follow me question... you may be happy to know that question was asked - and answered - already: using scripting you can't. You need ASM.




Rules must be followed, always. Don't forget it.
Anyway, "the script doesn't work" is way too generic. What the script should do? And what happens instead?

The first problem I can notice is the giveitem, which is wrong.

Code:
giveitem 0x349 0x1 MSG_OBTAIN

Item 0x349 doesn't exists. Item 349 (0x15D) does instead. That's Oak's Parcel.
Of course if you use headers, such things wouldn't happen:

Code:
giveitem ITEM_OAKSARCEL 0x1 MSG_OBTAIN

I dont want it to be Oak's Parcel, actual;y I want it to be question marks since its a delivery package and your not supposed to know what it is. But if this should help I will make it Oaks Parcel and just change the name of the item. Also the first script works properly, its just when I step on the script tile for the second one it should work since that flag is set.
 

Andryandrew

Italian Asm Hacker
117
Posts
17
Years
  • Age 30
  • Seen Jul 4, 2015
hey how do i get an other charactor to give the main charactor one item. this is my script but each time i talk to them it gives me another?

#dynamic 0x2DD1F4
#org @start
checkitem 0x6 0x6
compare LASTRESULT 0x1
if 0x1 goto @alreadygiven

msgbox @message 0x2
giveitem 0x6 0x6 0x0
end

#org @alreadygiven
end

#org @message
= [blue_fr]Here, have a NET BALL.

changes are in BOLD; Oh, you don't need "release"...
 

HackMew

Mewtwo Strikes Back
1,314
Posts
17
Years
  • Seen Oct 26, 2011
hey how do i get an other charactor to give the main charactor one item. this is my script but each time i talk to them it gives me another?

Spoiler:


You need to use flags. See the guide that comes with XSE for further details.
Also, remember the text is automatically blue/red on FR/LG, when you talk to a male or female person. Another thing: better use buffers to display item names, for example.
Yet another thing: release is useless when you use 0x2 for message/msgbox.

Spoiler:



I dont want it to be Oak's Parcel, actual;y I want it to be question marks since its a delivery package and your not supposed to know what it is. But if this should help I will make it Oaks Parcel and just change the name of the item. Also the first script works properly, its just when I step on the script tile for the second one it should work since that flag is set.

In that case use one of those ??????? items, but not something that doesn't exists.
Regarding flags, try changing them. To be even more sure, close the emulator and remove any savestates you may have. Also, make sure to enter and exit a building before testing.
 

Robert Conley

GPXPlus.net/user/Robert+Conley
330
Posts
15
Years
1.How do I make it so that oak give you the national pokedex right after giving you the normal pokedex?

2.I want a script that will stop you from going into certain areas till after the elite four.just not entirely sure how to make it or what flag to set.
 

squire

Upcoming Hacker
13
Posts
16
Years
Can anyone tell me what is wrong with this givepokemon script? oh and I am using XSE

'---------------
#ORG $begin
lock
faceplayer
checkflag 0x200
if B_true goto $done
message $person
boxset 6
givepokemon 1 5 0
setflag 0x200
release
end

#org $done
message $person2
boxset 6
release
end

#org $person
@person = Hello, \v\h01. \nHere is the pokemon \pyou wanted.

#org $person2
$person2 = How is the pokemon \nI gave you.



Every time that I press compile, a message comes up that says "Too less parameters on line 7. The correct number is 2."
 
Last edited:

Gamer2020

Accept no Imitations!
1,062
Posts
15
Years
Can anyone tell me what is wrong with this givepokemon script? oh and I am using XSE

'---------------
#ORG $begin
lock
faceplayer
checkflag 0x200
if B_true goto $done
message $person
boxset 6
givepokemon 1 5 0
setflag 0x200
release
end

#org $done
message $person2
boxset 6
release
end

#org $person
@person = Hello, \v\h01. \nHere is the pokemon \pyou wanted.

#org $person2
$person2 = How is the pokemon \nI gave you.



Every time that I press compile, a message comes up that says "Too less parameters on line 7. The correct number is 2."
Which version of xse are you using? cause i don't think the new one requires boxset
 
219
Posts
16
Years
Can anyone tell me what is wrong with this givepokemon script? oh and I am using XSE

'---------------
#ORG $begin
lock
faceplayer
checkflag 0x200
if B_true goto $done
message $person
boxset 6
givepokemon 1 5 0
setflag 0x200
release
end

#org $done
message $person2
boxset 6
release
end

#org $person
@person = Hello, \v\h01. \nHere is the pokemon \pyou wanted.

#org $person2
$person2 = How is the pokemon \nI gave you.



Every time that I press compile, a message comes up that says "Too less parameters on line 7. The correct number is 2."
givepokemon [pokemon number in hex] [LV in hex] [item number in hex] 0x0 0x0 0x0
We'd better don't lost the last 3 0x0
Example:
Code:
givepokemon 0x3 0x64 0x1 0x0 0x0 0x0
And another mistake:
Code:
msgbox $somewhere 0x2
This the msgbox current version ,I think.
By the way,I advice you to read the Guide.chm in XSE zip.
 
Last edited:

squire

Upcoming Hacker
13
Posts
16
Years
givepokemon [pokemon number in hex] [LV in hex] [item number in hex] 0x0 0x0 0x0
We'd better don't lost the last 3 0x0
Example:
Code:
givepokemon 0x3 0x64 0x1 0x0 0x0 0x0
And another mistake:
Code:
msgbox $somewhere 0x2
This the msgbox current version ,I think.
By the way,I advice you to read the Guide.chm in XSE zip.
thank you ^O^

Yes, because you're still using the old version. Download the new one from my Tools Factory.
and thank you too ^O^
 
Status
Not open for further replies.
Back
Top