• 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.

x Necromorph x

Super Saiyan 4
295
Posts
13
Years
Im using XSE and I made a Gym Leader script, and it says I am missing a dynamic label on line 9(trainerbattle 0x1 0x67 0x1)

Whats wrong?
Here is the script
Spoiler:
 
80
Posts
14
Years
Im using XSE and I made a Gym Leader script, and it says I am missing a dynamic label on line 9(trainerbattle 0x1 0x67 0x1)

Whats wrong?
Here is the script
Spoiler:

It's here:
Code:
#org #after
= Maybe next time Trainer.
It must look like this:
Code:
#org @after
= Maybe next time Trainer.
You put a "#" instead of a "@" so the script can't load @after.
 

Shadow Dawn

A New Dawn
15
Posts
13
Years
  • Seen Jul 7, 2010
Okay, my script is supposed to make the Pokeball disappear after it's used, yet it doesn't.

Code:
#dynamic 0x800000

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

#org @take
givepokemon 0x5C 0xA 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
hidesprite 00 (It's people ID is 0000)
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @6 0x6
release
end

#org @1
= Would you like to take Gastly?

#org @2
= Oh. Okay...

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

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

#org @5
= Be sure to Gastly however\nneccesary to accomplish our goals.

#org @6
= It's a Pokeball...
Instead, I can get infinite Gastlys.
 

vietazn654

A sound soul dwells within me
371
Posts
14
Years
Okay, my script is supposed to make the Pokeball disappear after it's used, yet it doesn't.

Code:
#dynamic 0x800000

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

#org @take
givepokemon 0x5C 0xA 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
hidesprite 00 (It's people ID is 0000)
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @6 0x6
release
end

#org @1
= Would you like to take Gastly?

#org @2
= Oh. Okay...

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

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

#org @5
= Be sure to Gastly however\nneccesary to accomplish our goals.

#org @6
= It's a Pokeball...
Instead, I can get infinite Gastlys.
Uhm, try using hidesprite 0x800F Then make the Pokeball ID 1002, since you used that flag.
 

Zeffy

g'day
6,402
Posts
15
Years
  • Age 27
  • Seen Feb 7, 2024
Okay, my script is supposed to make the Pokeball disappear after it's used, yet it doesn't.

Code:
#dynamic 0x800000

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

#org @take
givepokemon 0x5C 0xA 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
hidesprite 00 (It's people ID is 0000)
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @6 0x6
release
end

#org @1
= Would you like to take Gastly?

#org @2
= Oh. Okay...

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

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

#org @5
= Be sure to Gastly however\nneccesary to accomplish our goals.

#org @6
= It's a Pokeball...
Instead, I can get infinite Gastlys.
Nonononono~

You don't use the Person ID you use the Person EVENT No., located right under the button "Delete Event".
neede.png


Uhm, try using hidesprite 0x800F Then make the Pokeball ID 1002, since you used that flag.
Wrong. See my answer above.
 
Last edited:

Logan

[img]http://pldh.net/media/pokecons_action/403.gif
10,417
Posts
15
Years
Actually, it's not totally incorrect as 0x800F hides the last sprite you talked to, therefore does an adequate job.
 
13
Posts
14
Years
  • Seen Jun 22, 2021
How do I use the "checkgender" thingy?
I'm trying to make a simple movement script that depends on the player's gender but I dunno how to use it properly
 

Learath2

Scripter
114
Posts
14
Years
Help me with this script

I made this script but it works until $ohwhy message
I use firered. Why its not working
Code:
#org $script
lock
faceplayer
message $talkguard
$talkguard 1 = Hey You! Stop rıght there.
boxset 6
applymovement 0xFF $moveing
$moveing 1 ; #binary 0x62 0xFE
pausemove 0x0000
message $ohwhy
$ohwhy 1 = \v\h01 But Why that I am supposed to stop?\pGuard I have to check your sixth badge.
boxset 6
checkflag 0x825
if 0x01 goto $done
message $cantpass
$cantpass 1 = Guard You can't pass. You don't have the MARSHBADGE.
applymovement 0xFF $moveback
$moveback ; #binary 0x11 0x11 0xFE
pausemove 0x0000
release
end
#org $done
message $freepass
$freepass 1 = Okay, you can move on.
boxset 6
setvar 0x6000 0x0001
release
end
 

Binary

え?
3,977
Posts
16
Years
  • Age 29
  • Seen Apr 7, 2014
How do I use the "checkgender" thingy?
I'm trying to make a simple movement script that depends on the player's gender but I dunno how to use it properly

Read a tutorial. Please.
I'll give you an example:
Spoiler:
 
13
Posts
14
Years
  • Seen Jun 22, 2021
I apologize for not reading the tutorials but I didn't have time. I had to leave here ASAP for a while and I just thought it would be easier if someone explained it to me here instead of me having to check the tutorials. I know, it was lazy of me but I just wanted to get to work ASAP. Sorry :P
 

tomotaku

KoganStyle
13
Posts
13
Years
  • Seen Mar 28, 2011
i hav a prob, i made a script and get this after pasting the offset to a-map
Spoiler:

what could i do wrong?
 

locoroco

Ginga Densetsu Weed ANIME PWNS
251
Posts
14
Years
ummm you offset why is there 7 digits maybe u compiled it to the wrong offset thats actually all i can tell you because i need to see the original script try compiling it to 880000 and it should not happen again.
 

Jarnakel

Nooblet
10
Posts
13
Years
  • Seen Apr 1, 2011
Edited due to stupid mistake. I figured it out. Yeah. Delete post please.
 
Last edited:

Learath2

Scripter
114
Posts
14
Years
heelp

Can anyone have a look
I only works until $ohwhy message

Code:
#org $script
lock
faceplayer
message $talkguard
$talkguard 1 = Hey You! Stop rıght there.
boxset 6
applymovement 0xFF $moveing
$moveing 1 ; #binary 0x62 0xFE
pausemove 0x0000
message $ohwhy
$ohwhy 1 = \v\h01 But Why that I am supposed to stop?\pGuard I have to check your sixth badge.
boxset 6
checkflag 0x825
if 0x01 goto $done
message $cantpass
$cantpass 1 = Guard You can't pass. You don't have the MARSHBADGE.
applymovement 0xFF $moveback
$moveback ; #binary 0x11 0x11 0xFE
pausemove 0x0000
release
end
#org $done
message $freepass
$freepass 1 = Okay, you can move on.
boxset 6
setvar 0x6000 0x0001
release
end
 
80
Posts
14
Years
I make a givepokemon script and I place it in Hero's house (in a Fire Red rom). It works fine but when I go out of the house and press start, the menu shows boxes like in the Safari game and it shows the Pokédex menu, however I've never set the flag for the Pokédex.
Here is the script:
Spoiler:

So what's wrong ?
 
Last edited:

tomotaku

KoganStyle
13
Posts
13
Years
  • Seen Mar 28, 2011
ummm you offset why is there 7 digits maybe u compiled it to the wrong offset thats actually all i can tell you because i need to see the original script try compiling it to 880000 and it should not happen again.

i get this by using pokescript
no matter what kind of script i get the same result..
 
Status
Not open for further replies.
Back
Top