View Single Post
  #7324    
Old September 19th, 2012, 07:29 AM
Bilaterus's Avatar
Bilaterus
ToBe Best Spriter ;)
 
Join Date: Jul 2011
Gender: Male
Nature: Naive
Hey this is quite a long script with some movement and a battle, I would like to find out what is inevitably wrong with it but it won't let me compile! I keep getting an error message saying 'run time error 13 type mismatch'. I've looked over it and I'm finding it difficult to find a/the mistake I have made. I'm still working on it but if it's saying errors now there's no point carrying on. :O

Game:
Fire Red (The best one! Lol)
Type:
Level Script
Editor:
PokeScript
Script:
Spoiler:
#org $script
message $hey
$hey 1 = \c\h01\h08???: Hey!
boxset 4
applymovement 0xFF $gotcha
$gotcha 1 ; #binary 0x10 0x10 0x10 0xFE
applymovement 6 $gotchme
$gotchme 1 ; #binary 0x61 0x1E 0x1E 0x1E 0x1E 0x1E 0x1E 0x1E 0xFE
pausemove 0x0000
applymovement 6 $exclam
$exclam 1 ; #binary 0x62 0xFE
pausemove 0x0000
message $hello
$hello 1 = \c\h01\h08AIDE: Did PROF. OAK give you\nthat POKeMON?
boxset 5
compare 0x800D 0x0001
if 0x01 goto $yes
message $wah
$wah 1 = \c\h01\h08WAH?!\pY...You...\pLet's see if you know\nhow to use it, THIEF!
boxset 6
fadescreen 1
applymovement 4 $bye
$bye 1 ; #binary 0x60 0xFE
applymovement 5 $bye
applymovement 7 $seven
$seven 1 ; #binary 0x61 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE
applymovement 8 $seven
applymovement 9 $seven
applymovement 10 $seven
applymovement 11 $seven
applymovement 12 $seven
applymovement 13 $seven
pausemove 0x0000
pause 0x40
fadescreen 0x00
pause 0x40
message $geddit
$geddit 1 = \c\h01\h08For PROFESSOR OAK!
boxset 6
trainerbattle 0x09 0x01 $win $lose
release
end

message $after
$after 1 = You're tough!
boxset 6
release
end

#org $win
applymovement 7 $exclam
applymovement 8 $exclam
applymovement 9 $exclam
applymovement 10 $exclam
applymovement 11 $exclam
applymovement 12 $exclam
applymovement 13 $exclam
pausemove 0x0000
message $woah
$woah 1 = \c\h01\h08W... Wha... I lost?!
boxset 6
#raw 0xAC 0x11 0x00 0x0E 0x00
#raw 0xAE
message $ooak
$ooak 1 = \c\h01\h08???:What is going on out here?
boxset 6
applymovement 14 $oakapp
$oakapp 1 ; #binary 0x61 0x10 0xFE
pausemove 0x0000
#raw 0xAD 0x11 0x00 0x0E 0x00
#raw 0xAE
applymovement 7 $lookleft1
$lookleft1 1 ; #binary 0x02 0x13 0x65 0xFE
applymovement 10 $lookleft
$lookleft 1 ; #binary 0x02 0x65 0xFE
applymovement 11 $lookleft
applymovement 13 $lookleft
applymovement 8 $lookup
$lookup 1 ; #binary 0x01 0x65 0xFE
applymovement 9 $lookup
applymovement 12 $lookup
pausemove 0x0000
pausemove 0x30
applymovement 14 $oakent
$oakent 1 ; #binary 0x08 0x0A 0x08 0x08 0xFE
pausemove 0x0000
message $ohak
$ohak 1 = \c\h01\h08OAK: AIDEN!
boxset 6
applymovement 6 $aiden
$aiden 1 ; #binary 0x03 0x03 0x02 0x02 0x01 0xFE
pausemove 0x0000
message $aidups
$aidups 1 = Erm...\pSo...\pHow about that job?
boxset 6
message $uroak
$uroak 1 = Leave PALLET TOWN now AIDEN...
boxset 6
setvar 0x6003 0x01
release
end

#org $lose
release
end

#org $yes
message $oh
$oh 1 = oh coolz
boxset 6
release
end


Thanks in advance for the help!

EDIT: For all those with a similar problem I found out that I had too many movements in one offset (i.e
$seven 1 ; #binary 0x61 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE
should be cut down to
$seven 1 ; #binary 0x61 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE
$seven2 1 ; #binary 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0xFE
So yup :)
__________________
Please don't feed the Laxes!



My (small) site offers help on all things Advance Mapping!
http://advancedfreak.webs.com/

Visit my youtube channel too and check out my tutorials on all things (you guessed it!) Advance Mapping!
http://www.youtube.com/user/AdvancedMapFreak

Last edited by Bilaterus; September 20th, 2012 at 07:54 AM. Reason: [SOLVED] :P