• 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?".
  • Forum moderator applications are now open! Click here for details.
  • Welcome to PokéCommunity! Register now and join one of the best places on the 'net to talk Pokémon and more! Community members will not see the bottom screen advertisements.
  • Want to share your adventures playing Pokémon?
    Check out our new Travel Journals forum for sharing playthroughs of ROM Hacks, Fan Games, and other Pokémon content!
  • IMPORTANT: Following a takedown request, the following hacks have been delisted from PokéCommunity:

    • Pokémon Glazed
    • Pokémon: Giratina Strikes Back
    • Pokémon Flora Sky
    • Pokémon Stranded
    The downloads and discussion threads for these hacks will no longer be accessible, and staff will be unable to return questions regarding accessing this content.

Script Help Thread (DO NOT REQUEST SCRIPTS)

Status
Not open for further replies.
4
Posts
15
Years
  • Seen Nov 8, 2013
I have a quick question. I have a certain script that announces "This Dratini looks familiar..." and then gives you a dratini. It works flawlessly, but after compiling, and then re-opening, it has a lot of (un-used) extra code in it involving the coin case, and several different checkcoin commands...


Any reason why? It's not a problem, but it's a bit aggravating.

I'm using PKSV as a script editor, by the way. Thanks in advance.
 
53
Posts
15
Years
  • Seen Feb 12, 2014
HEY GUYS
I Found this Script here [Page -6-]
#org 0x2D513F
setvar 0x4060 0x37
givepokemon 0x4060 0x8 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @player 0x4
waitfanfare
closeonkeypress
hidesprite LASTTALKED
setflag 0x828
release
end

#org @player
[player] recieved a Vulpix!
i have a person that will give you a Vulpix

Now
1st How to change the pokemon that you will receive [ i don't know ids ]
2nd the offset for the person is "14D6CD" do i have to change only the "2D513F" to
"14D6CD"

Pleas help
 

Hoshiko Aki

Avatar rules
109
Posts
15
Years
  • Seen Oct 17, 2011
Thats my Script.

Code:
#dynamic 0x26ECB8

#org @start
lock
faceplayer
setvar 0x8008 0x9
call 0x1A8CAD
checkflag 0x1000
if 0x1 goto @how
msgbox @yesno 0x5
compare LASTRESULT 0x0
if 0x1 goto @too
call 0x1A8CBD
compare 0x8004 0x6
if 0x4 goto @too
call 0x1A8CC9
comparevars2 LASTRESULT 0x8009
if 0x5 goto @not
call 0x1A8CD9
msgbox @thanksalot 0x4
setflag 0x1000
release
end

#org @not
bufferpokemon 0x0 0x27
msgbox @not2 0x4
release
end

#org @too
bufferpokemon 0x0 0xD3
msgbox @too2 0x4
release
end

#org @how
msgbox @old 0x4
release
end

#org @thanksalot
= Thanks \nI really mean it!

#org @not2
= That's not [buffer1]\nYou have it or not?

#org @too2
= Dammit, I wanted one [buffer1]!

#org @yesno
= Hey there!\nDo you have a [buffer1]?\lWant to trade it for my\l[buffer2]?

#org @old
= I miss [buffer2]\nYour [buffer1] is doing fine.

He say a don't know comparevars2 on line 17. how can i fix this?

It's a trade script
 
860
Posts
17
Years
Thats my Script.

Spoiler:

He say a don't know comparevars2 on line 17. how can i fix this?

It's a trade script

Did you try comparevar2 whitout the s?
 
162
Posts
15
Years
If I wanted to make 4 people move at the same time is their a special value they need to be assigned?

Spoiler:


I need this to move 4 people at the same time then make them disappear.
 
Last edited:

Binary

え?
3,977
Posts
16
Years
  • Age 29
  • Seen Apr 7, 2014
If I wanted to make 4 people move at the same time is their a special value they need to be assigned?

Spoiler:


I need this to move 4 people at the same time then make them disappear.

do you mean applymovement 0x(person event no.)?
Then, if you want 4 people to move at the same time..
Code:
applymovement 0x(person event no.) @pointer
applymovement 0x(person event no.) @pointer
applymovement 0x(person event no.) @pointer 
applymovement 0x(person event no.) @pointer
waitmovement 0x0
And if you want them all to disappear (at once)
Code:
hidesprite 0x(person event no.)
hidesprite 0x(person event no.)
hidesprite 0x(person event no.)
hidesprite 0x(person event no.)
setflag 0x828 (because there's checkflag 0x828)
And make sure you put the person ID of all four sprites as 828 (In AM)
 

Binary

え?
3,977
Posts
16
Years
  • Age 29
  • Seen Apr 7, 2014
Flag 828 is the Pokemon menu though. They're supposed to leave when you have a pokemon. I'll just use another flag then.

Yeah you could do that. Don't forget to assign the Person ID with the same flag though.
 
162
Posts
15
Years
More help here

Spoiler:


What's wrong?
 

Binary

え?
3,977
Posts
16
Years
  • Age 29
  • Seen Apr 7, 2014
More help here

Spoiler:


What's wrong?

Code:
#dynamic 0x2E4E83

#org @start
checkflag 0x828
if 0x1 goto @none
[B]msgbox @no 0x2
applymovement 0xFF @back
waitmovement 0x0
release
end[/B]

#org @no
= No-one is allowed\nto leave this Village\nuntil we have finished\nsearching.

#org @back
#raw 0x0E 0xFE

#org @none
release
end
I think that should do it.
 
53
Posts
15
Years
  • Seen Feb 12, 2014
HEY GUYS
I Found this Script here [Page -6-]
Quote:
#org 0x2D513F
setvar 0x4060 0x37
givepokemon 0x4060 0x8 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @player 0x4
waitfanfare
closeonkeypress
hidesprite LASTTALKED
setflag 0x828
release
end

#org @player
[player] recieved a Vulpix!
i have a person that will give you a Vulpix

Now
1st How to change the pokemon that you will receive [ i don't know ids ]
2nd the offset for the person is "14D6CD" do i have to change only the "2D513F" to
"14D6CD"

Could Some1 help
 

Andryandrew

Italian Asm Hacker
117
Posts
16
Years
  • Age 30
  • Seen Jul 4, 2015
HEY GUYS
I Found this Script here [Page -6-]

i have a person that will give you a Vulpix

Now
1st How to change the pokemon that you will receive [ i don't know ids ]
2nd the offset for the person is "14D6CD" do i have to change only the "2D513F" to
"14D6CD"

Pleas help
HERE you can find a list of pokemon with their relatives IDs...

2- this scritp is a half with dynamic offset and a half with static offsets and it contain some errors; try this (you have to compile it with XSE):
#dynamic 0x800000

#org @start
givepokemon 0xPKMN id 0xPKMN level 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @player 0x2
waitfanfare
hidesprite LASTTALKED
setflag 0x828
release
end

#org @player
= [player] recieved a Vulpix!
 
53
Posts
15
Years
  • Seen Feb 12, 2014
HERE you can find a list of pokemon with their relatives IDs...

2- this scritp is a half with dynamic offset and a half with static offsets and it contain some errors; try this (you have to compile it with XSE):

Man .. I Swear you are a Scripting Master
I Will test it now:)
 
53
Posts
15
Years
  • Seen Feb 12, 2014
Oh Geeez ... I Got this Message When I Replaced the ID With Pikachu
[For The Fat guy in little root]
i got this message:S
script.jpg

Link http://medo00972.googlepages.com/script.jpg

-Medo0
 
Status
Not open for further replies.
Back
Top