Registrarse

New problem about my level script

Estado
Cerrado para nuevas respuestas.

jiangzhengwenjz

Usuario mítico
Today I intended to improve my level script posted last time, but I encountered a problem that an "applymovement" event did not occur.

The move script was @move8 in the following level script: (As we all know, type2)(As @move8 didn't occur, @move9 also wouldn't occur, which was designed to be associated with @move10. (Looks like the 0xA(10) OW leading the player))
#org @start
lockall
msgbox @String1 MSG_KEEPOPEN '"Huh? Something strange... "
closeonkeypress
fadescreen 0x3
fadescreen 0x2
special 0x113
applymovement MOVE_CAMERA @move1
waitmovement 0x0
special 0x114
applymovement 0x8 @move2
waitmovement 0x0
msgbox @String2 MSG_KEEPOPEN '"Why are you here? \pI am exploring..."
closeonkeypress
applymovement 0x9 @move3
waitmovement 0x0
applymovement 0x8 @move4
waitmovement 0x0
msgbox @String3 MSG_KEEPOPEN '"Hey, Gary!\pI've found a strange r..."
closeonkeypress
applymovement 0x9 @move5
waitmovement 0x0
hidesprite 0x9
setflag 0x3023
applymovement 0x8 @move6
waitmovement 0x0
msgbox @String4 MSG_KEEPOPEN '"Gary: I will go.\nIf you find some..."
closeonkeypress
applymovement 0x8 @move7
waitmovement 0x0
hidesprite 0x8
setflag 0x3021
applymovement 0xA @move8
waitmovement 0x0
msgbox @String5 MSG_KEEPOPEN '"Let me bring you there. "
closeonkeypress
applymovement 0xA @move9
applymovement MOVE_PLAYER @move10
waitmovement 0x0
setvar 0x4037 0x1
lockall
faceplayer
showpokepic 0xFB 0x3 0x3
msgbox @String6 MSG_NORMAL '"Battle me?\pThat's really interest..."
cry 0xFB 0x0
hidepokepic
wildbattle 0xFB 0x1E 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x7
setflag 0x301B
releaseall
end


'---------
' Strings
'---------
#org @String1
= Huh? Something strange...

#org @String2
= Why are you here? \pI am exploring the cave. \nBe careful.

#org @String3
= Hey, Gary!\pI've found a strange rock.\nCome with me.

#org @String4
= Gary: I will go.\nIf you find something,\ljust come here and tell me.

#org @String5
= Let me bring you there.

#org @String6
= Battle me?\pThat's really interesting.\nJust show me your determination.


'-----------
' Movements
'-----------
#org @move1
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (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 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 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 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

#org @move2
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org @move3
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x2 'Face Left
#raw 0xFE 'End of Movements

#org @move4
#raw 0x3 'Face Right
#raw 0xFE 'End of Movements

#org @move5
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org @move6
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements

#org @move7
#raw 0x9 'Step Up (Very Slow)
#raw 0x9 'Step Up (Very Slow)
#raw 0x9 'Step Up (Very Slow)
#raw 0x9 'Step Up (Very Slow)
#raw 0xFE 'End of Movements

#org @move8
#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 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0xFE 'End of Movements

#org @move9
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements

#org @move10
#raw 0x65 'Double Exclamation Mark (!!)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1 'Face Up
#raw 0x66 'Happy (^_^)
#raw 0xFE 'End of Movements
And of course there's also a type3 level script about movesprite2:(helped by Sayer)
#org @start
checkflag 0x3022
if 0x1 goto @snippet1
movesprite2 0x8 0x1D 0x20
movesprite2 0x9 0x1E 0x1C
movesprite2 0xA 0x1F 0x18
setflag 0x3022
release
end

'---------------
#org @snippet1
release
end
I hope somebody could help. Great thanks. :rolleyes:
I'm sorry for I may not reply quickly for time difference.
 
Última edición:

Sayer301!

UnityLord!
Miembro de honor
If you tried change "waitmovement 0x0" (under the comand "applymovement 0x8")
to "waitmovement 0x8"?

Why do you use those flags? The flags than you should use are there:
From 0x200 to 0x29F
From 0x500 to 0x79F
From 0x1000 to 0x109F


And agains, sorry for my bad english ;)
 

jiangzhengwenjz

Usuario mítico
Re: Respuesta: New problem about my level script

If you tried change "waitmovement 0x0" (under the comand "applymovement 0x8")
to "waitmovement 0x8"?

Why do you use those flags? The flags than you should use are there:
From 0x200 to 0x29F
From 0x500 to 0x79F
From 0x1000 to 0x109F


And agains, sorry for my bad english ;)
Which one? There're several "applymovement 0x8". (Only @move8 & @move9 didn't work, they were both related to the number 10 OW (0xA))

For the flag case, I got the range of usable flag last summer but now I forgot where to find it. :s I think they're right for the OW 0x8 & 0x9 have disappeared and all 3 movesprite2 command really work.

Anyway, thank you for your help and I hope to get further help from you. :D
If you still can't get the problem, I can give the ROM to you. (For my English is also bad xD)

Edit: Another question: I have some problem with your tutorial "VS Bars antes de una batalla". It's really hard for me to read it for I do not know even a bit Spanish. My problem is that I didn't find "FF FF FF FF" in ASM3.bin, only "FF FF FF 08". If the problem is not related to the thread, I can just ask you through private message or other ways.
 
Última edición:

Sayer301!

UnityLord!
Miembro de honor
Respuesta: Re: Respuesta: New problem about my level script

Which one? There're several "applymovement 0x8". (Only @move8 & @move9 didn't work, they were both related to the number 10 OW (0xA))
Sorry, under the @move7

For the flag case, I got the range of usable flag last summer but now I forgot where to find it. :s I think they're right for the OW 0x8 & 0x9 have disappeared and all 3 movesprite2 command really work.

Anyway, thank you for your help and I hope to get further help from you. :D
If you still can't get the problem, I can give the ROM to you. (For my English is also bad xD)
try with the flags that I give you in the last post.

Edit: Another question: I have some problem with your tutorial "VS Bars antes de una batalla". It's really hard for me to read it for I do not know even a bit Spanish. My problem is that I didn't find "FF FF FF FF" in ASM3.bin, only "FF FF FF 08". If the problem is not related to the thread, I can just ask you through private message or other ways.
Sorry, it's a Epic Fail. You have all reason, it's FF FF FF 08 sorry. I will fix it.
 

jiangzhengwenjz

Usuario mítico
Re: Respuesta: Re: Respuesta: New problem about my level script

Sorry, under the @move7


try with the flags that I give you in the last post.



Sorry, it's a Epic Fail. You have all reason, it's FF FF FF 08 sorry. I will fix it.
I have done these but it seemed that there's no change. T_T

Maybe you can see my ROM so you may know what happened? Because it's just a ROM for test, not my hack project.

Edit: After my try, I found another mistake in your tutorial "VS Bars antes de una batalla". when listing the pointers of palettes, they should be "00 00 80 08 00 30 80 08 00 80 80 08" instead of "00 00 80 00 30 80 00 80 80", which is to say that "08" should be added to every reversed offset.

These are my results:
 
Última edición:
Estado
Cerrado para nuevas respuestas.
Arriba