Dont you just hate making Scripts now you dont have to because we have pre-made scripts!
A simple Text Script
#include std.rbh
#org 0x800000
faceplayer
message 0x800300
boxset 0x6
end
#org 0x800300
= Hi!\nThis is an example\pof a messege box
end
'----------------
'Notes
'\p = new paragraph
'\n = New line
'-------------------
Give Pokemon Basic
#include std.rbh
#org 0x000000 'own pointer
faceplayer
checkflag 0x10A 'sets flag
if 0 0x000000 'own pointer
message 0x000000 'own pointer points to messege 2
boxset 0x2
end
#org 0x000000 'own pointer
setflag 0x10A 'sets flag so you dont get unlimated pokemon
setflag 0x800 'sets another flag
message 0x000000 'own pointer points to messege 1
boxset 0x2
givepokemon 0x000 0x00 0x00 'pkmn lvl item
end
#org 0x000000 'your text,own pointer
= Hi!\nHere's a nice PKMN!\pThis is a good code
#org 0x000000 'your text own pointer
= Sorry,\nThis code only gives 1
#org 0x9C1380
checkflag 0x1FF
if 0x1 jump 0x89C1490
msgbox 0x89C1500 '"Do you want the GRAS..."
callstd 0x5
compare LASTRESULT 0x0
if 0x1 jump 0x89C1480
givepokemon 0x72 0x5 0x0 0x0 0x0 0x0 0x0
fanfare 0x212
msgbox 0x89C1600 '"\v\h01 obtained a TA..."
callstd 0x2
waitfanfare
setflag 0x1FF
setflag 0x800
end
'-----------------------
#org 0x9C1490
msgbox 0x89C1540 '"That's one of PROF. ..."
callstd 0x6
release
end
'-----------------------
#org 0x9C1480
msgbox 0x89C1570 '"Choose wisely!..."
callstd 0x6
end
'---------
' Strings
'---------
#org 0x9C1500
= Do you want the GRASS-type TANGELA?
#org 0x9C1600
= \v\h01 obtained a TANGELA!
#org 0x9C1540
= That's one of PROF. BIRCH's POKéMON.
#org 0x9C1570
= Choose wisely!
Car Script
#org 0x800000
message 0x800030
boxset 0x2
message 0x800055
boxset BOXSET_YESNO
compare LASTRESULT 1
if 1 0x800150
compare LASTRESULT 1
message 0x800100
boxset 0x2
break
#org 0x800150
message 0x800125
boxset 0x2
warp 0x00 0x12 0x01
break
#org 0x800030
= Hello, Can I help you?
#org 0x800055
= Wanna lift to Pineco Rocks?
#org 0x800100
= To bad, come again.
#org 0x800125
= Okay, let's go.
Take Them Data
hex---> [45] [87 00] [01] [00]
[87 00] = Item to take
[01] = How many of the item to take
[00] = nop
'Note: Raw Command
A simple Text Script
#include std.rbh
#org 0x800000
faceplayer
message 0x800300
boxset 0x6
end
#org 0x800300
= Hi!\nThis is an example\pof a messege box
end
'----------------
'Notes
'\p = new paragraph
'\n = New line
'-------------------
Give Pokemon Basic
#include std.rbh
#org 0x000000 'own pointer
faceplayer
checkflag 0x10A 'sets flag
if 0 0x000000 'own pointer
message 0x000000 'own pointer points to messege 2
boxset 0x2
end
#org 0x000000 'own pointer
setflag 0x10A 'sets flag so you dont get unlimated pokemon
setflag 0x800 'sets another flag
message 0x000000 'own pointer points to messege 1
boxset 0x2
givepokemon 0x000 0x00 0x00 'pkmn lvl item
end
#org 0x000000 'your text,own pointer
= Hi!\nHere's a nice PKMN!\pThis is a good code
#org 0x000000 'your text own pointer
= Sorry,\nThis code only gives 1
#org 0x9C1380
checkflag 0x1FF
if 0x1 jump 0x89C1490
msgbox 0x89C1500 '"Do you want the GRAS..."
callstd 0x5
compare LASTRESULT 0x0
if 0x1 jump 0x89C1480
givepokemon 0x72 0x5 0x0 0x0 0x0 0x0 0x0
fanfare 0x212
msgbox 0x89C1600 '"\v\h01 obtained a TA..."
callstd 0x2
waitfanfare
setflag 0x1FF
setflag 0x800
end
'-----------------------
#org 0x9C1490
msgbox 0x89C1540 '"That's one of PROF. ..."
callstd 0x6
release
end
'-----------------------
#org 0x9C1480
msgbox 0x89C1570 '"Choose wisely!..."
callstd 0x6
end
'---------
' Strings
'---------
#org 0x9C1500
= Do you want the GRASS-type TANGELA?
#org 0x9C1600
= \v\h01 obtained a TANGELA!
#org 0x9C1540
= That's one of PROF. BIRCH's POKéMON.
#org 0x9C1570
= Choose wisely!
Car Script
#org 0x800000
message 0x800030
boxset 0x2
message 0x800055
boxset BOXSET_YESNO
compare LASTRESULT 1
if 1 0x800150
compare LASTRESULT 1
message 0x800100
boxset 0x2
break
#org 0x800150
message 0x800125
boxset 0x2
warp 0x00 0x12 0x01
break
#org 0x800030
= Hello, Can I help you?
#org 0x800055
= Wanna lift to Pineco Rocks?
#org 0x800100
= To bad, come again.
#org 0x800125
= Okay, let's go.
Take Them Data
hex---> [45] [87 00] [01] [00]
[87 00] = Item to take
[01] = How many of the item to take
[00] = nop
'Note: Raw Command