Quote:
Originally Posted by jirachi155
Hi,
i'm italian..i tried to follow your tutorials but i can't add a wildbattle scritp..
can anyone adjust my script? (when I play the people whit this script... the screen become black and the rom crash)
#org $Startscript
lock
faceplayer
wildbattle 0x196 0x70 0x1
cry 0xA1 0x196
pause 0x28
fadescreen 1
setflag 0x777
setflag 0x861
movesprite 0x11 0xB 0x11
clearflag 0x861
release
end
I use pokescript and scripted but whit the same result...
|
Well, you are putting the cry command after the wildbattle (I think that works, because I know some commands still execute while the battle is getting prepared, that's why a pause command is needed), but, I think that's not the problem with the script, right? (At least the battle should be executed, I presume)
After that you use a fadescreen... What's the use for that? That will make your screen turn black till you set it on again (I don't remember if it's done by using fadescreen 0), most likely it's not that you rom is crashing, it's just that you "blinded yourself", try removing the fadescreen command and see what happens...
Oh... By the way I think I know what's the deal with the fadescreen thing, you just don't want to show the player when you are executing the movesprite command. Then you will need to unset the fadescreen right after the clearflag command. Anyone knows if just using fadescreen 0 is enough? (I used fadescreen, but since all I did then was warping, I didn't needed to un-fade)