trebornosliw
Learning
- 516
- Posts
- 15
- Years
- Seen Jul 22, 2012
4050, actually. I don't know of any others.
Okay, so ignore the sub-blargh error when you start the rom, that's just a clock issue that won't affect your script. Your setflag needs to come right before the end of your script, after the pause 0x30 would be great. However, 0x200 isn't a good flag to use, are you aiming for a specific event flag? 0x1000 is a lot safer, as it isn't used by the game.
You can't use the same variable for other scripts can you? If not how do you find out the other variables?Think before you post, 4050 is not the only free var there are tons of them. The one I personally use is 5050.
You can't use the same variable for other scripts can you? If not how do you find out the other variables?
Yes, you can use the same variable for every level.
if you use 4050, you can use it for EVERY script.
Well, yeah you can but I'd recommend one that the game doesn't use. Even if you don't reuse any of the original scripts beyond the PokéCenters et al., it's probably a good idea to err on the safe side and use different variables.
But yes, you can reuse variables. For example, I use 0x7000 as a general story progress meter.
Well did you compile it to the right rom?im learning how to script and each time i compile the script is not as i put it my game is fire red look
#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @1 0x6
release
end
#org @1
= Do you have any pokemon.\nCheck if PROF.OAK\lgives you one.
and this is how it looks after i compile it and put it on a sprite in a-map
'-----------------------
#org 0x4567DE
lock
faceplayer
msgbox 0x84567E9 '"Will you get any\npokemon check if\..."
release
end
'---------
' Strings
'---------
#org 0x4567E9
= Will you get any\npokemon check if\lPROF.OAK will give you\lany
and i dont get it and then when i talk to the person it doesn't say anything i just hear the ping sound and nothing else help!!!
'---------------
#org 0x34EB8C
lockall
applymovement MOVE_PLAYER 0x834EBC6
waitmovement 0x0
applymovement MOVE_PLAYER 0x834EBFE
waitmovement 0x0
msgbox 0x834EC0E MSG_KEEPOPEN '"[player]: Hmm, where am I?"
closeonkeypress
applymovement 0x1 0x834EBCC
waitmovement 0x0
msgbox 0x834EBDC MSG_KEEPOPEN '"Julia: Hey! Where'd you come from?..."
closeonkeypress
msgbox 0x834EC59 MSG_KEEPOPEN '"[player]: I don't know."
releaseall
end
'---------
' Strings
'---------
#org 0x34EC0E
= [player]: Hmm, where am I?
#org 0x34EBDC
= Julia: Hey! Where'd you come from?
#org 0x34EC59
= [player]: I don't know.
'-----------
' Movements
'-----------
#org 0x34EBC6
#raw 0x62 'Exclamation Mark (!)
#raw 0x1A 'Delay3
#raw 0x2F 'Face Left (Delayed)
#raw 0x1A 'Delay3
#raw 0x30 'Face Right (Delayed)
#raw 0xFE 'End of Movements
#org 0x34EBFE
#raw 0x1A 'Delay3
#raw 0x2E 'Face Up (Delayed)
#raw 0x1A 'Delay3
#raw 0x2D 'Face Down (Delayed)
#raw 0xFE 'End of Movements
#org 0x34EBCC
#raw 0x62 'Exclamation Mark (!)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements
'---------------
#org 0x34EB8C
lockall
applymovement MOVE_PLAYER 0x834EBC6
waitmovement 0x0
applymovement MOVE_PLAYER 0x834EBFE
waitmovement 0x0
msgbox 0x834EC0E MSG_KEEPOPEN '"[player]: Hmm, where am I?"
closeonkeypress
applymovement 0x1 0x834EBCC
waitmovement 0x0
msgbox 0x834EBDC MSG_KEEPOPEN '"Julia: Hey! Where'd you come from?..."
closeonkeypress
msgbox 0x834EC59 MSG_KEEPOPEN '"[player]: I don't know."
releaseall
settrainerflag 0x2F1A
copyvarifnotzero 0xFE30 0x1262
loadbytefrompointer 0x2E 0xFFFFFFFE
'---------
' Strings
'---------
#org 0x34EC0E
= [player]: Hmm, where am I?
#org 0x34EBDC
= Julia: Hey! Where'd you come from?è+è&\n
#org 0x34EC59
= [player]: I don't know.
'-----------
' Movements
'-----------
#org 0x34EBC6
#raw 0x62 'Exclamation Mark (!)
#raw 0x1A 'Delay3
#raw 0x2F 'Face Left (Delayed)
#raw 0x1A 'Delay3
#raw 0x30 'Face Right (Delayed)
#raw 0xFE 'End of Movements
#org 0x34EBFE
#raw 0x1A 'Delay3
#raw 0x2E 'Face Up (Delayed)
#raw 0x1A 'Delay3
#raw 0x2D 'Face Down (Delayed)
#raw 0xFE 'End of Movements
#org 0x34EBCC
#raw 0x62 'Exclamation Mark (!)
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0x2E 'Face Up (Delayed)
#raw 0xFE 'End of Movements
So what should I do to fix it? Give it a different offset or what?You extended the offset 0x34EB8C.
It's normal when you add something to old offset and don't delete something else.
Well, as far as I know, it's best to avoid flags used by the game either way, but it's your call. Also, certain flags already have set effects that I don't know how to edit (for instance, the gym badges, firstpokemon, and pokedex flags).I'm'a delete all events in the game at one point anyway, so 0x200 shouldn't matter much, nyaa? or should I still change it regardless?
does anyone know why this doesnt work? i kind of need help on the givepoemon line
'-----------------------
#org 0x1B1439
msgbox 0x904734 0x6 "theres a note\pit reads: i cant do this, please\capture my pokemon"
msgbox 0x904735 0x5 "will you accept the challenge?"
compare LASTRESULT 0x0
if 0x1 call 0x85FB257
releaseall
end
#org 0x5FB257
givepokemon 0x054 0x5 0x0 0x0 0x0 0x0
return
and it isnt the #dynamic
Being you I'd start again with the new ROM.So what should I do to fix it? Give it a different offset or what?
'---------------
#org 0x800008
lock
msgbox 0x800027 MSG_NORMAL '"Hmm. Where am I?"
closeonkeypress
applymovement 0x1 0x880003A
waitmovement 0x0
applymovement 0x1 0x8800040
waitmovement 0x0
release
end
'---------
' Strings
'---------
#org 0x800027
= Hmm. Where am I?
'-----------
' Movements
'-----------
#org 0x80003A
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0x13 'Step Right (Normal)
#raw 0xFE 'End of Movements
#org 0x800040
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements
I have a question about dynamic offsets. When I made the below code as dynamic and then compiled it and copied the first offset into the Advance Map, and opened it up again it changed to the code below. Is that supposed to happen?
Also, why is it when I walk into this script nothing happens?
Code:'--------------- #org 0x800008 lock msgbox 0x800027 [B]0x4[/B] '"Hmm. Where am I?" closeonkeypress applymovement 0x1 0x880003A waitmovement 0x0 release end '--------- ' Strings '--------- #org 0x800027 = Hmm. Where am I? '----------- ' Movements '----------- #org 0x80003A #raw 0x13 'Step Right (Normal) #raw 0x13 'Step Right (Normal) #raw 0x13 'Step Right (Normal) #raw 0x13 'Step Right (Normal) [B]#raw 0x10 'Step Down (Normal) #raw 0x10 'Step Down (Normal) #raw 0x10 'Step Down (Normal) [/B]#raw 0xFE 'End of Movements