Andrut
Collecting dust since 1898
- 284
- Posts
- 15
- Years
- Age 26
- Warsaw, Poland
- Seen Jan 21, 2023
In Ruby, how can i change the poxedex given be already national? What's the special for it?
I'm having some trouble with my script. For one, the people I move, they don't appear, they're just invisible. Second, when the script finishes, you take control of the guy standing next to you and his palette is messed up. WHat went wrong? Oh yeah, it's XSE.
Spoiler:'---------------
#org 0x26E1C0
lockall
goto 0x826E1D0
'---------------
#org 0x26E1D0
msgbox 0x817F614 0x4 '"This job is soo boring...\pI need ..."
applymovement 0x7 0x81650D1
msgbox 0x81827BE 0x4 '"You, stupid kid.\nLet's fight. NOW..."
trainerbattle 0x3 0x161 0x0 0x8172DAF
msgbox 0x8172CFC 0x4 '"We, /B/, are Pokémon gangsters!\nW..."
showsprite 0x4
applymovement 0x4 0x8165992
movesprite 0x5 0x11 0x7
applymovement 0x5 0x8163F18
movesprite 0x6 0x11 0x7
applymovement 0x6 0x816441C
waitmovement 0x0
applymovement 0x4 0x81643ED
waitmovement 0x0
msgbox 0x818056E 0x4 '"[grey_fr]Anon, calm down.\nWe got ..."
applymovement 0x4 0x80000DC
waitmovement 0x0
msgbox 0x81B146A 0x4 '"[grey_fr]As for you, young "hero",..."
fadescreen 0x0
hidesprite 0x3
hidesprite 0x4
hidesprite 0x5
hidesprite 0x6
setflag 0x2C
releaseall
return
'---------
' Strings
'---------
#org 0x17F614
= This job is soo boring...\pI need something to do.
#org 0x1827BE
= You, stupid kid.\nLet's fight. NOW.
#org 0x172DAF
= So, you are good[.]
#org 0x172CFC
= We, PLASMA, are Pokémon gangsters!\nWe strike fear with our strength!
#org 0x18056E
= [grey_fr]Anon, calm down.\nWe got what we came here for.
#org 0x1B146A
= [grey_fr]As for you, young "hero",\ndon't interfere with our plans.\lIf we meet next time on opposite sides,\lI WILL crush you...
'-----------
' Movements
'-----------
#org 0x1650D1
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0xFE 'End of Movements
#org 0x165992
#raw 0x14 'Jump2 Down
#raw 0xFE 'End of Movements
#org 0x163F18
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0xFE 'End of Movements
#org 0x16441C
#raw 0x10 'Step Down (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements
#org 0x1643ED
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0xFE 'End of Movements
#org 0xDC
#raw 0x10 'Step Down (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x4A 'Face Player
#raw 0xFE 'End of Movements
In Ruby, how can i change the poxedex given be already national? What's the special for it?
Okay, I admit to being a newbie to scripting.
You appear from the intro screen and the script starts when you walk forward (into the script), the person talks to you. I have got most of it but it seems that you have to get the PokeDex first then talk to the person.
Here it is:
Spoiler:
'---------------
#org 0x800557
if 0x1 goto 0x880056B
msgbox 0x88005BA MSG_NORMAL '"Your parents disowned you?\nThat i..."
release
end
'---------------
#org 0x80056B
givepokemon 0x178 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8800609 MSG_KEEPOPEN '"[black_fr]You recieved an Absol!"
waitfanfare
closeonkeypress
setflag 0x828
msgbox 0x8800625 MSG_YESNO '"[black_fr]Would you like to give a..."
compare LASTRESULT 0x1
if 0x1 call 0x88005A8
msgbox 0x8800656 MSG_NORMAL '"You are young, go on an adventure\..."
release
end
'---------------
#org 0x8005A8
call 0x81A74EB
return
'---------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return
'---------
' Strings
'---------
#org 0x8005BA
= Your parents disowned you?\nThat is sad.\pHere, I want you to have my\nPokemon.
#org 0x800609
= [black_fr]You recieved an Absol!
#org 0x800625
= [black_fr]Would you like to give a\nnickname to Absol?
#org 0x800656
= You are young, go on an adventure\nfor me please!
It is done on XSE, all i need help with is to make it so that the person does not give you another Absol when you talk to them, turns to face you when you step forward (into the script) and make it so you don't have to get the PokeDex to obtain the Absol.
Can someone please point out where I have gone wrong, what i need to fix and help me please?
Go to XSE > Help > Guide > Appendix > Specials > R/S Specials. Oops, I see there is no national dex special there. Well then I don't know. Diegoisawesomes tutorial doesn't have the special either. Maybe you should decompile a script from ruby. When you complete the Hoenn dex you recieve the nat. dex right?xoax said:I'm posting this again.......
Quote:
In Ruby, how can i change the poxedex given be already national? What's the special for it?
'-----------------------
#org 0x6B2418
msgbox 0x6B2418 '"It is hard to get through\nthis..."
callstd 0x2
fadescreen 0x1
special 0x0
fadescreen 0x0
end
'---------
' Strings
'---------
#org 0x6B2418
= It is hard to get through\nthis cave.\pLet me heal your POKéMONS.
'-----------------------
#org 0x6B2418
cmdC3 0xE8
nop
'-----------------------
#org 0x8189BB
lockall
checkflag 0x1006 [U][B]////If you go to bed, this flag activates////[/B][/U]
if 0x0 goto 0x880000C
setvar 0x6061 0x1
releaseall
end
'-----------------------
#org 0x80000C
showsprite 0x1
sound 0x9
applymovement 0x1 0x882023B
applymovement MOVE_PLAYER 0x8820307
waitmovement 0x0
applymovement 0x1 0x882030C
applymovement MOVE_PLAYER 0x8801DE6
textcolor 0x0
msgbox 0x881D2FD '"\c\h01ÇMOM: [player]! Get to bed!\n..."
callstd 0x4
closeonkeypress
applymovement 0x1 0x8820311
sound 0x9
waitmovement 0x1
hidesprite 0x1
setflag 0x2C
releaseall
end
'-----------
' Movements
'-----------
#org 0x82023B
#raw 13 'Step Right (Normal)
#raw FE 'End of Movements
#org 0x820307
#raw 10 'Step Down (Normal)
#raw 62 'Exclamation Mark (!)
#raw 3 'Face Right
#raw FE 'End of Movements
#org 0x82030C
#raw 4A 'Face Player
#raw FE 'End of Movements
#org 0x801DE6
#raw 1 'Face Up
#raw FE 'End of Movements
#org 0x820311
#raw 12 'Step Left (Normal)
#raw FE 'End of Movements
'---------
' Strings
'---------
#org 0x81D2FD
= \c\h01ÇMOM: [player]! Get to bed!\nIt's 11:00! You should be asleep!\pGo to bed and don't forget to\nchange into your pajamas!
'-----------------------
#org 0x6B16AC
lockall
checkflag 0x1006
if 0x0 goto 0x6B2600
setvar 0x6061 0x1
releaseall
end
'-----------------------
#org 0x6B2600
showsprite 0x14
sound 0x9
applymovement MOVE_PLAYER 0x6B2618
applymovement 0x1 0x6B260C
waitmovement 0x0
applymovement 0x1 0x6B2624
applymovement MOVE_PLAYER 0x22F1A8
textcolor 0x0
msgbox 0x23CE28 '"[player]! Get to bed!\n..."
callstd 0x4
closeonkeypress
applymovement 0x1 0x23CE1C
sound 0x9
waitmovement 0x1
hidesprite 0x14
setflag 0x2C
releaseall
end
'-----------
' Movements
'-----------
#org 0x6B2618
#raw 10 'Step Down (Normal)
#raw 62 'Exclamation Mark (!)
#raw FE 'End of Movements
#org 0x6B260C
#raw 13 'Step Down (Normal)
#raw FE 'End of Movements
#org 0x6B2624
#raw 4A 'Face Player
#raw FE 'End of Movements
#org 0x22F1A8
#raw 1 'Face Up
#raw FE 'End of Movements
#org 0x23CE1C
#raw 12 'Step Up (Normal)
#raw FE 'End of Movements
'---------
' Strings
'---------
#org 0x23CE28
= \c\h01ÇMOM: [player]! Get to bed!\nIt's 11:00! You should be asleep!\pGo to bed!!
1. Are you sure you've got a right offset with enough space? Do you use FreeSpaceFinder? It happens to me sometimes too, just try to find another offset. Check the size of the script in Windows Explorer or similar. Always take a few ten bytes extra.First of, I want to make one thing clear: I just started scripting some hours ago with givepokemon, wildbattle etc. scripts. So I'm a biiig n00b.
Game: Pokemon Ruby
Type: AXV
Editor: XSE
I wanted to insert a person that heals your Pokémons into the Petalburg Cave (Yeah, cave)
Well, I don't really know how to make it work, but I've tried this:
(...)
I have done something wrong, I know. But what it is... I'm completely lost. Some help would be apprieciated.
Furthermore, I found this script in Pokemon AshGray (A hacked FireRed made by Hirakuanh ... dl.poke-mega dot org/pokemon-ash-gray-1-65 ...) and edited it a little, just to see, if it would work. (Then I will make another one that looks kinda the same, just to prevent extreme credit-madness. Of course I will still give credit.)
(...)
I edited it a little to see, if it would work in my Ruby. (I heard the movements/raw-thing are different from Firered?) ... Well, it didn't work.
(...)
The script itself just doesn't activate. NOTHING happens, when I step on the green S-tile. Nothing. The Game froze before, but now nothing happens. The ID of the mom is 002C, the var-number is 6061 (Is that the problem?) and var-value 0000. When I compile it and open the script again, only the part from #org 0x6B16AC to applymovement MOVE_PLAYER 0x6B2618 is left. Everything else is gone. What do I do wrong? And how do I find out what the movements in Ruby are?
And can somebody please send me a link to XSE download? The one I have is outdated (I think..) And all the links I find are outdated too.. Or maybe I'm wrong, but better be safe than sorry.
First of all, what is the person event number of 'mom'? In your script, you use 0x1 when using msgbox, and 0x14 when using applymovement. Correct me if I'm wrong, but I think those have to be the same if they apply to the same overworld.1. I have downloaded FSF some days ago, but never actually tried it. I might give it a try in a few minutes.
2. Hm.. I'll try the messagebox. If that doesn't work, I'll take a look on the flag again.
3. Okay, thanks.
Thank you for your answer.
Okay, now everything is intact when I save (Found a offset with enough space).. Everything seems to work when I save it.
I changed var-number to 4050 and unknown to 0300 and now it works (d'oh)
But.. The sprite of my mom is visible all the time. She is standing on the staircase. But she doesn't move. The 'hero' is the only one that moves. And the message is displayed twice.. D:
'---------------
#org 0x6BB844
checkflag 0x2002
if 0x0 goto 0x6B2744
'---------------
#org 0x6B2744
lock
msgbox 0x6B2594 MSG_KEEPOPEN '"Hello, I'm the Cutter...."
closeonkeypress
applymovement 0x1 0x6B2710
waitmovement 0x0
msgbox 0x6B26A0 MSG_KEEPOPEN '"How dare you wear shoes..."
closeonkeypress
clearflag 0x860
msgbox 0x6B25DC MSG_KEEPOPEN '"The Cutter took your..."
closeonkeypress
applymovement MOVE_PLAYER 0x6B271C
applymovement 0x1 0x6B2744
setflag 0x2002
release
end
'---------
' Strings
'---------
#org 0x6B2594
= Hello, I'm the Cutter.
#org 0x6B26A0
= How dare you wear shoes in MY house?!\Get out! NOW!
#org 0x6B25DC
= The Cutter took your Running Shoes!
'-----------
' Movements
'-----------
#org 0x6B2710
#raw 0x56 'Exclamation Mark (!)
#raw 0x46 'Jump in Place (Facing Down)
#org 0x6B271C
#raw 0x08 'Step Down (Normal)
#raw 0x0A 'Step Left (Normal)
#raw 0x0A 'Step Left (Normal)
#raw 0x0A 'Step Left (Normal)
#raw 0x0A 'Step Left (Normal)
#raw 0x0A 'Step Left (Normal)
#raw 0x08 'Step Down (Normal)
#raw 0x08 'Step Down (Normal)
#org 0x6B2744
#raw 0x08 'Step Down (Normal)
#raw 0x0A 'Step Left (Normal)
#raw 0x0A 'Step Left (Normal)
#raw 0x0A 'Step Left (Normal)
#raw 0x0A 'Step Left (Normal)
#raw 0x0A 'Step Left (Normal)
#raw 0x08 'Step Down (Normal)
#raw 0x08 'Step Down (Normal)
'---------------
#org 0x6BB844
checkflag 0x2002
if 0x0 goto 0x86B2744
'---------------
#org 0x6B2744
gotostd 0xA
'---------------
#org 0x163CAF
lockall
special 0x113
applymovement MOVE_CAMERA 0x8163D1A
waitmovement 0x0
applymovement 0x1 0x8163D29
waitmovement 0x0
pause 0x20
applymovement 0x1 0x8163D2D
waitmovement 0x0
pause 0x20
applymovement 0x1 0x8163D32
waitmovement 0x0
applymovement MOVE_CAMERA 0x8163D3A
waitmovement 0x0
applymovement MOVE_PLAYER 0x8163D41
waitmovement 0x0
msgbox 0x8163D4B MSG_NORMAL '"Hello, [player]! I'm glad you came..."
applymovement 0x1 0x8163D37
waitmovement 0x0
setvar 0x7001 0x1
setvar 0x7002 0x0
setflag 0x1003
special 0x114
releaseall
end
'---------
' Strings
'---------
#org 0x163D4B
= Hello, [player]! I'm glad you came.
'-----------
' Movements
'-----------
#org 0x163D1A
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
#org 0x163D29
#raw 0xE 'Step Left (Slow)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
#org 0x163D2D
#raw 0xF 'Step Right (Slow)
#raw 0xF 'Step Right (Slow)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
#org 0x163D32
#raw 0xE 'Step Left (Slow)
#raw 0x0 'Face Down
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements
#org 0x163D3A
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements
#org 0x163D41
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements
#org 0x163D37
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
'-----------------------
#org 0x16575C
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
special 0x188
lock
faceplayer
startwildbattle 0xFC 0x50 0x0
checksound
msgbox2 0x81A6448 '"[.][.][.]"
waitmsgbox
pause 0xA
playsong 0x2 0x2
waitkeypress
setflag 0x807
special 0x138
waitstate
clearflag 0x807
special2 LASTRESULT 0xB4
compare LASTRESULT 0x1
if 0x1 goto 0x816381B
compare LASTRESULT 0x4
if 0x1 goto 0x8163824
compare LASTRESULT 0x5
if 0x1 goto 0x8163824
setflag 0x2BF
release
end
'-----------------------
#org 0x1A7AE0
release
end
'-----------------------
#org 0x16381B
setflag 0x2BF
goto 0x81A922D
end
'-----------------------
#org 0x163824
setvar 0x8004 0x91
goto 0x81A9236
end
'-----------------------
#org 0x1A922D
fadescreen 0x1
hidesprite LASTTALKED
fadescreen 0x0
release
end
'-----------------------
#org 0x1A9236
fadescreen 0x1
hidesprite LASTTALKED
fadescreen 0x0
bufferpokemon 0x0 0x8004
msgbox 0x83291D8 '"[.][.][.]"
callstd 0x4
release
end
'---------
' Strings
'---------
#org 0x1A6448
= [.][.][.]
#org 0x3291D8
= [.][.][.]
Okay, so I changed a script to add in an extra legendary battle, and now all of a sudden, any event sprites that should be invisible until a certain flag is triggered (i.e. Oak before you try to walk into the grass, the Silph Scope before you defeat Giovanni) are all visible, and I don't have any idea why. ;-;
Yeah, I realized that right after I posted, so I added it.It would be helpful if you included the script you used in your post.
'---------------
#org 0x800716
checkflag 0x828
if 0x1 goto 0x8800470
lock
applymovement 0x1 0x880031F
waitmovement 0x0
applymovement MOVE_PLAYER 0x8800323
pause 0x10
msgbox 0x8800331 MSG_KEEPOPEN '"Hey! You look like you could use a..."
preparemsg 0x8800364 '"How about a Charmander?"
waitmsg
multichoice 0x7 0x9 0x0 0x1
compare 0x8000 0x0
if 0x1 goto 0x8800894
compare 0x8000 0x1
if 0x1 goto 0x88008E0
bufferitem 0x79 0x4
goto 0x0
'---------------
#org 0x800470
hidesprite 0x1
release
end
'---------------
#org 0x800894
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x88003DC MSG_KEEPOPEN '"[black_fr]You received a Charmande..."
waitfanfare
closeonkeypress
setflag 0x200
msgbox 0x8800638 MSG_YESNO '"[black_fr]Would you like to give a..."
compare LASTRESULT 0x1
if 0x1 call 0x88009F6
msgbox 0x88003AF MSG_NORMAL '"Oh, and here is a Pokedex! Enjoy!\..."
setflag 0x828
setflag 0x829
applymovement 0x1 0x8800326
waitmovement 0xFE
return
'---------------
#org 0x8008E0
preparemsg 0x880037E '"How about a Squirtle?"
waitmsg
multichoice 0x7 0x9 0x0 0x1
compare 0x8000 0x0
if 0x1 goto 0x8800902
compare 0x8000 0x0
if 0x0 goto 0x880094E
'---------------
#org 0x8009F6
countpokemon
subvar LASTRESULT 0x1
copyvar 0x8004 LASTRESULT
fadescreen 0x1
special 0x166
waitstate
return
'---------------
#org 0x800902
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x880041B MSG_KEEPOPEN '"[black_fr]You received a Squirtle!"
waitfanfare
closeonkeypress
setflag 0x200
msgbox 0x8800638 MSG_YESNO '"[black_fr]Would you like to give a..."
compare LASTRESULT 0x1
if 0x1 call 0x88009F6
msgbox 0x88003AF MSG_NORMAL '"Oh, and here is a Pokedex! Enjoy!\..."
setflag 0x828
setflag 0x829
applymovement 0x1 0x8800326
waitmovement 0xFE
end
'---------------
#org 0x80094E
preparemsg 0x8800396 '"How about a Bulbasaur?"
waitmsg
multichoice 0x7 0x9 0x0 0x1
compare 0x8000 0x0
if 0x1 goto 0x8800970
compare 0x8000 0x0
if 0x0 goto 0x88009BD
'---------------
#org 0x800970
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x88003FC MSG_KEEPOPEN '"[black_fr]You received a Bulbasaur..."
waitfanfare
closeonkeypress
setflag 0x200
msgbox 0x8800638 MSG_YESNO '"[black_fr]Would you like to give a..."
compare LASTRESULT 0x1
if 0x1 call 0x88009F6
msgbox 0x88003AF MSG_NORMAL '"Oh, and here is a Pokedex! Enjoy!\..."
setflag 0x828
setflag 0x829
applymovement 0x1 0x8800326
waitmovement 0xFE
release
end
'---------------
#org 0x8009BD
preparemsg 0x8800364 '"How about a Charmander?"
waitmsg
multichoice 0x7 0x9 0x0 0x1
compare 0x8000 0x0
if 0x1 goto 0x8800894
compare 0x8000 0x0
if 0x0 goto 0x88008E0
'---------
' Strings
'---------
#org 0x800331
= Hey! You look like you could use a\nfree pokemon.
#org 0x800364
= How about a Charmander?
#org 0x8003DC
= [black_fr]You received a Charmander!
#org 0x800638
= [black_fr]Would you like to give a\nnickname to your pokemon?
#org 0x8003AF
= Oh, and here is a Pokedex! Enjoy!\nHehehehe
#org 0x80037E
= How about a Squirtle?
#org 0x80041B
= [black_fr]You received a Squirtle!
#org 0x800396
= How about a Bulbasaur?
#org 0x8003FC
= [black_fr]You received a Bulbasaur!
'-----------
' Movements
'-----------
#org 0x80031F
#raw 0x62 'Exclamation Mark (!)
#raw 0x2F 'Face Left (Delayed)
#raw 0xFE 'End of Movements
#org 0x800323
#raw 0x30 'Face Right (Delayed)
#raw 0xFE 'End of Movements
#org 0x800326
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0xFE 'End of Movements
Is that an answer on my question? If so, what 'unknown' number to you mean? It is a level script.I had that issue as well. In advancemap, make sure the 'unknown' number is set 0003 and the VAR number is 4050.