- 5,256
- Posts
- 17
- Years
- Age 27
- Leicester, UK
- Seen May 7, 2025
Then why not delete the old scripts and start afresh?
Game: Pokemon Ruby
Type: Give Pokemon Script
Editor: Notepad
Script:
Spoiler:#org $begin
lock
faceplayer
checkflag 0x232
if B_true goto $gotit
message $q
boxset 6
message $mygod
boxset 6
givepokemon 25 5 0
message $NameCharm
boxset 5
setflag 0x232
setflag 0x800
release
end
#org $gotit
message $hi
boxset 6
release
end
#org $hi
$hi 1 = How's my old PIKACHU?
#org $q
$q 1 = To get past here, you'll\nneed a pokemon.\pTake this PIKACHU.
#org $mygod
$mygod 1 = You received the PIKACHU!
message $NameCharm
$NameCharm 1 = Would You like to give \nPIKACHU a name?
boxset 5
compare LASTRESULT 1
if b_False goto $seeya
Namepokemon
setflag 0x203
message $seeya
$seeya 1 = Thanks!
release
end
Well my problem is that I have everything working perfectly.
It's just that the Pokemon tab doesn't show up but on Fire Red it does.
Also is there any way to edit the script so after I get my Pokemon I can also get a Pokedex and then
make the NPC dissapear?I've tried putting in a dissapear script but my game crashes.And if anyone knows the code for that little fanfare it makes when you receive something that would work too.
Any help would be fine.
Best regards.
PS:Sorry for asking alot.
Tip: use XSE.Alright I have been searching around this forum to see if anyone had my problem. There were many, but none were answered.
ROM used: Pokemon Emerald
After I created my script, I went to A-Map and created a new sprite in Littleroot Town. Then, I inserted my script offset into the new sprite but when I was in-game and tried to talk to that sprite, my no$gba emulator displayed a message saying that the rom has crashed.
But, I tried putting my script into one of the original sprites in Littleroot Town and my script worked when I talk to the sprite.(Not the new sprite)
Anyway, what happened?
If you want my script, here it is, it is just a simple hello script.
#org $begin
lock
faceplayer
message $Hi
$Hi 1 = Hi. Sup?
boxset 6
release
end
#dynamic 0x900403
#org @start
lock
checkflag 0x74
if 0x0 goto @envie
if 0x1 goto @newcheck
release
end
#org @newcheck
lock
checkflag 0x143A
if 0x0 goto @linear
if 0x1 goto @end
release
end
#org @linear
lock
showsprite 0x7
msgbox @SM 0x6
trainerbattle 0x0 0x01D 0x0
@inbattle @outer
hidesprite 0x7
setflag 0x143A
release
end
#org @end
release
end
#org @envie
lock
msgbox @xserocks 0x6
release
end
#org @SM
=Huh?/nWhat's going on?/lWhat is this cloud?/p.../p.../pHuh?!
#org @inbattle
=Gwwaah!
#org @outer
=Ughh...
#org @xserocks
=I've got a strange feeling...
'---------------
#org 0x80F3F3
msgbox 0x880F493 0x5
if 0x1 goto 0x880F4D3
if 0x0 goto 0x880F523
end
'---------------
#org 0x80F4D3
msgbox 0x880F553 0x6 '"Yes"
'---------------
#org 0x80F523
msgbox 0x880F583 0x6 '"No"
'---------
' Strings
'---------
#org 0x80F493
= Yes or no?
#org 0x80F553
= Yes
#org 0x80F583
= No
Umm.. Guys I'm facing yet another problem...
The script freezes the Game, It is supposed to:
-Before getting Pokedex:
Lock, Speech, Release
-After Getting Pokedex:
Lock, Show three hidden sprites with Person Event ID 7, Speech, Trigger a battle, Then hide the sprites, Release.
-After flag set:
Lock, Release aka Nothing
ROM: Pokémon Ruby AXVE :t258:
Scripting Language: XSE
I also took a screenie in Advance Map, and circled (red) the parts I think are the problem. (Attached)Code:#dynamic 0x900403 #org @start lock checkflag 0x74 if 0x0 goto @envie if 0x1 goto @newcheck release end #org @newcheck lock checkflag 0x143A if 0x0 goto @linear if 0x1 goto @end release end #org @linear lock showsprite 0x7 msgbox @SM 0x6 trainerbattle 0x0 0x01D 0x0 @inbattle @outer hidesprite 0x7 setflag 0x143A release end #org @end release end #org @envie lock msgbox @xserocks 0x6 release end #org @SM =Huh?/nWhat's going on?/lWhat is this cloud?/p.../p.../pHuh?! #org @inbattle =Gwwaah! #org @outer =Ughh... #org @xserocks =I've got a strange feeling...
Notes:
-I colored the clouds messed up to avoid ripping.
-The three clouds' Person Event no is the same , 7.
Firered
I've got some trouble with a script of mine. I'm trying to make the mum disappear after you talk to her and not be seen until you clear flag 828. Problem is she won't disappear, before and after.
Help please?
Spoiler:#dynamic 0x71B79F
#org @start
checkflag 0x828
if 0x1 goto @done
hidesprite 0x24
release
end
#org @done
showsprite 0x24
lock
faceplayer
msgbox @2 0x6
setflag 0x82F
msgbox @3 0x6
clearflag 0x828
release
end
#org @2
= Your finally going to fulfil \nyour dream and start\p your Pokemon training.\nBut, but I'm going to miss\p you so much.\p...\pI packed your sneakers, jeans,\n nice clean shirts, underwears\p, your favourite snacks\n and some hot chocolate\pincase you want something hot.\n But be careful not to burn\p yourself.
#org @3
= [black_fr] You got Sneakers![blue_fr] Your Pikachu is a little weird...
#dynamic 0x800000
#org @start
checkflag 0x3F4
if 0x1 goto @appear
setwarpplace 0x2 0x27 0x0 0x26 0x8
end
#org @appear
setwarpplace 0x3 0x28 0x0 0x26 0x8
end
Putting 0x in front of a number means that it is a hexadecimal number. 0x27 is something completely different in hex, and so is 0x28. If you want to use those numbers without converting them to hex, take away the 0x.What I want: if you solve a puzzle pokémon start to appear in a cave.
Yes I found a post explaining how to do it, but it doesn't work (I think I'm doing it wrong). What I did:
- I have two caves: one without pokémon data (2.27) and one with the pokémon data (3.28)
(Yes the different bank thing was a mistake)
- One map with the entrance to the cave with a warp. The warp goes to map bank 127, map no. 127 and warp no. 127. This is what the person said.
- On the map with the entrance I have the following map script:
This does not work. I think I did the setwarpplace thing wrong.Code:#dynamic 0x800000 #org @start checkflag 0x3F4 if 0x1 goto @appear setwarpplace 0x2 0x27 0x0 0x26 0x8 end #org @appear setwarpplace 0x3 0x28 0x0 0x26 0x8 end
What I did is:
first parameter: the bank the warp goes to
second parameter: the map the warp goes to
third parameter: the warp no the warp goes to
fourth parameter: the x coordinate of the warp that leads to the caves. This is on the entrance map.
fifth parameter: same as above but with the y coordinate
I'm using XSE.
The clouds aren't causing the problem.
You need to set the scripts' "unknown" to 0300 and "var number" to 4050.
In a script before you even get to the part where you can see your dad, set flag 0x1002, and when you've beaten the trainer, use clearflag 0x1002. For example, a script in the very beginning of the game, like a level script on the map where you start the game.Hi, I need some help again =) Fire Red hack
I'm trying to make your dad not be seen until you beat a trainer, where i put in setflag 0x1002. However , he doesn't disappear before, and you can see him before you set the flag 0x1002.
When i HAVE set flag 0x1002, he is missing when he is supposed to be there. any ideas? thanks.
Spoiler:#dynamic 0x2FD8DE
#org @start
checkflag 0x1002
if 0x0 goto @notyet
checkflag 0x1003
if 0x1 goto @notyet
applymovement 0x6 @move
setflag 0x1003
msgbox @1 0x2
applymovement 0x6 @move1
msgbox @2 0x2
applymovement 0xFF @move2
warp 0x0 0x6 0x0 0x0 0x0
release
end
#org @notyet
hidesprite 0x1002
release
end
#org @move
#raw 0x62 0xFE
#org @1
= [player], what happened up there?
#org @move1
#raw 0x63 0x0E 0x0F 0x0F 0x0E 0x01 0xFE
#org @2
= Hmm...you beat the Pirate Leader?\n Maybe you should travel the\pworld and take the elite four\nchallenge. You may also help\lcitizens get rid of \lTeam Pirate!\pYou should go get yourself a\nsailor license.
#org @move2
#raw 0x13 0x10 0x10 0x10 0x10 0x10 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x11 0x11 0xFE