vietazn654
A sound soul dwells within me
- 371
- Posts
- 15
- Years
- Age 30
- Virginia
- Seen Aug 21, 2014
try testing the script nowUnknown: 0300
Var Number: 4050
try testing the script nowUnknown: 0300
Var Number: 4050
check your line 7 and see if you follow the right parameters.Ok this is a givepokemon script, but XSE wont let me compile it.
It says "Type Mismatch on Line 7"
I dont know what that means.
Any help would be great! =]
Spoiler:
#dynamic 0x80073F
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x25 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @1
= [red_fr]Hello.\nI don't mean to bother you\pI am having trouble\ntraining this [yellow_fr]Pikachu\p[red_fr]Can you take care of it\nfor me?
#org @2
= [red_fr]Oh..\pThats okay.\nMaybe someone else\nwill take it.
#org @3
= [black_fr]You recieved a [yellow_fr]Pikachu!
#org @4
= [black_fr]Would you like to give\n[yellow_fr]Pikachu [black_fr]a nickname?
#org @5
= [red_fr]Please take care of\n[yellow_fr]Pikachu!
#org @6
= [red_fr]I can see [yellow_fr]Pikachu\n[red_fr]is doing well!
check your line 7 and see if you follow the right parameters.
hmm, i did compile your script and it did compile, nothing seems to be wrong in my part. try retyping line 7.My Line 7 is "Compare LASTRESULT 0x1".
I dont quite understand whats wrong?
then try compiling this one.Just downloaded XSE today.. No updates available
It also says "#define missing"
#dynamic 0x80073F
#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
[B]#raw 0x21 0x0D 0x80 0x01 0x00[/B]
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x25 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
[B]#raw 0x21 0x0D 0x80 0x01 0x00[/B]
if 0x1 gosub @name
msgbox @5 0x6
release
end
#org @name
call 0x1A74EB
return
#org @done
msgbox @6 0x6
release
end
#org @1
= [red_fr]Hello.\nI don't mean to bother you\pI am having trouble\ntraining this [yellow_fr]Pikachu\p[red_fr]Can you take care of it\nfor me?
#org @2
= [red_fr]Oh..\pThats okay.\nMaybe someone else\nwill take it.
#org @3
= [black_fr]You recieved a [yellow_fr]Pikachu!
#org @4
= [black_fr]Would you like to give\n[yellow_fr]Pikachu [black_fr]a nickname?
#org @5
= [red_fr]Please take care of\n[yellow_fr]Pikachu!
#org @6
= [red_fr]I can see [yellow_fr]Pikachu\n[red_fr]is doing well!
then try compiling this one.
Code:#dynamic 0x80073F
#raw 0x21 <- CompareCode:[COLOR=#0080ff]#org @start[/COLOR] [COLOR=#0080ff]checkflag 0x828[/COLOR] [COLOR=#0080ff]if 0x1 goto @done[/COLOR] [COLOR=#0080ff]msgbox @1 0x5[/COLOR] [COLOR=#0080ff][B]#raw 0x21 0x0D 0x80 0x01 0x00[/B][/COLOR] [COLOR=#0080ff]if 0x1 goto @take[/COLOR] [COLOR=#0080ff]msgbox @2 0x6[/COLOR] [COLOR=#0080ff]release [/COLOR] [COLOR=#0080ff]end[/COLOR] [COLOR=#0080ff]#org @take[/COLOR] [COLOR=#0080ff]givepokemon 0x25 0x5 0x0 0x0 0x0 0x0[/COLOR] [COLOR=#0080ff]fanfare 0x13E[/COLOR] [COLOR=#0080ff]msgbox @3 0x4[/COLOR] [COLOR=#0080ff]waitfanfare[/COLOR] [COLOR=#0080ff]closeonkeypress[/COLOR] [COLOR=#0080ff]setflag 0x828[/COLOR] [COLOR=#0080ff]msgbox @4 0x5[/COLOR] [COLOR=#0080ff][B]#raw 0x21 0x0D 0x80 0x01 0x00[/B][/COLOR] [COLOR=#0080ff]if 0x1 gosub @name[/COLOR] [COLOR=#0080ff]msgbox @5 0x6[/COLOR] [COLOR=#0080ff]release [/COLOR] [COLOR=#0080ff]end[/COLOR] [COLOR=#0080ff]#org @name[/COLOR] [COLOR=#0080ff]call 0x1A74EB[/COLOR] [COLOR=#0080ff]return[/COLOR] [COLOR=#0080ff]#org @done[/COLOR] [COLOR=#0080ff]msgbox @6 0x6[/COLOR] [COLOR=#0080ff]release [/COLOR] [COLOR=#0080ff]end[/COLOR] [COLOR=#0080ff]#org @1[/COLOR] [COLOR=#0080ff]= [red_fr]Hello.\nI don't mean to bother you\pI am having trouble\ntraining this [yellow_fr]Pikachu\p[red_fr]Can you take care of it\nfor me?[/COLOR] [COLOR=#0080ff]#org @2[/COLOR] [COLOR=#0080ff]= [red_fr]Oh..\pThats okay.\nMaybe someone else\nwill take it.[/COLOR] [COLOR=#0080ff]#org @3[/COLOR] [COLOR=#0080ff]= [black_fr]You recieved a [yellow_fr]Pikachu![/COLOR] [COLOR=#0080ff]#org @4[/COLOR] [COLOR=#0080ff]= [black_fr]Would you like to give\n[yellow_fr]Pikachu [black_fr]a nickname?[/COLOR] [COLOR=#0080ff]#org @5[/COLOR] [COLOR=#0080ff]= [red_fr]Please take care of\n[yellow_fr]Pikachu![/COLOR] [COLOR=#0080ff]#org @6[/COLOR] [COLOR=#0080ff]= [red_fr]I can see [yellow_fr]Pikachu\n[red_fr]is doing well![/COLOR]
#raw 0x0D <- lastresult 2nd byte
#raw 0x80 <- lastresult 1st byte
#raw 0x01 <- variable 2nd byte
#raw 0x00 <- variable 1st byte
post youre script here so we can help you.Do anybody MIND HELPING ME?
Nobody has helped you because (pretty much) everyone has moved on to XSE, which is an updated script editor, with more features. Stop using Pokescript, and download XSE and look at some tutorials.I've posted at least three times in this thread, but anyway, here it is again.
Video of what I done : https://www.youtube.com/watch?v=Fuym3lgaLO4
Script used : #org $script
lock
faceplayer
message $talk
$talk 1 = Hello.
boxset 6
release
end