PDA

View Full Version : [Tutorial] Penguin’s Super Uber Mega Awesome Scripting Tutorial


Penguins
June 28th, 2010, 06:07 PM
Penguin’s Super Uber Mega Awesome Scripting Tutorial

Hello there I am going to teach you how to write a script so hopefully at the end you will know enough to write your own script.
So let us begin the super scripting experience.

STEP 1 Basic Scripting

See that is just an easy script to write so let's begin.

#org $script
lock
faceplayer
message $talk
$talk 1 = Hi there.
boxset 6
release
end

See just a quick script. Take not wherever you see it say $ you can put whatever you want after the $.

Recap Time
So you always start a script off with #org and then $ whatever you named it. Then you put lock so you cannot move. Afterwards you put faceplayer so the person looks at you. Then you put message $ whatever because that is called a offset which is what the name of that part of the script is called so you can identify between parts of the script. After that is $ whatever 1 = (your script) which tells the game to goto your script because it is called a pointer which points the game to the script. Then boxset 6 for a basic script. Then release makes it so you can walk around again and end ends the script.

List of all boxsets in game
boxset 4 does not close you will be stuck
boxset 5 a question box and yes or no option appears
boxset 6 basic script

You can only put 30 spaces on a line so you can use special commands to put more spaces

List of commands that change the box
\p clears everything on the line and starts rewriting again
\n goes down a line because you have two lines on a box
\l shifts all of the box up

Example

#org $script
lock
faceplayer
message $talk
$talk 1 = Hi there I love hotdogs and\ncheese and food because it is\lso yummy in my tummy.
boxset 6
release
end



STEP 2 Yes/No Questions


Now let's start the script

#org $script
lock
faceplayer
message $question
$question 1 = Do you like pie?
boxset 5
compare 0x800D 0x0001
if 0x01 goto $yes
message $no
$no 1 = Well, I do.
boxset 6
release
end

#org $yes
message $yay
$yay 1 = Me too!
boxset 6
release
end

Recap Time
OK so it is the same until you put boxset 5 which is a question boxset. Afterwards you put compare 0x800D 0x0001 which tells the game to check whether or not you pressed yes or no. Then if 0x01 goto $ whatever tells the game to skip all of the rest of the script and go to your yes message. Then you put your no message and then release end. Then at the bottom you put your yes script.

STEP 3 Giving and Taking Items and Giving Pokemon

These scripts are quite easy to make but they will keep happening until we put a command which we will go over in step 4.

List of all items

#define ITEM_NONE 0x0
#define ITEM_MASTERBALL 0x1
#define ITEM_ULTRABALL 0x2
#define ITEM_GREATBALL 0x3
#define ITEM_POKEBALL 0x4
#define ITEM_SAFARIBALL 0x5
#define ITEM_NETBALL 0x6
#define ITEM_DIVEBALL 0x7
#define ITEM_NESTBALL 0x8
#define ITEM_REPEATBALL 0x9
#define ITEM_TIMERBALL 0xA
#define ITEM_LUXURYBALL 0xB
#define ITEM_PREMIERBALL 0xC
#define ITEM_POTION 0xD
#define ITEM_ANTIDOTE 0xE
#define ITEM_BURNHEAL 0xF
#define ITEM_ICEHEAL 0x10
#define ITEM_AWAKENING 0x11
#define ITEM_PARLYZHEAL 0x12
#define ITEM_FULLRESTORE 0x13
#define ITEM_MAXPOTION 0x14
#define ITEM_HYPERPOTION 0x15
#define ITEM_SUPERPOTION 0x16
#define ITEM_FULLHEAL 0x17
#define ITEM_REVIVE 0x18
#define ITEM_MAXREVIVE 0x19
#define ITEM_FRESHWATER 0x1A
#define ITEM_SODAPOP 0x1B
#define ITEM_LEMONADE 0x1C
#define ITEM_MOOMOOMILK 0x1D
#define ITEM_ENERGYPOWDER 0x1E
#define ITEM_ENERGYROOT 0x1F
#define ITEM_HEALPOWDER 0x20
#define ITEM_REVIVALHERB 0x21
#define ITEM_ETHER 0x22
#define ITEM_MAXETHER 0x23
#define ITEM_ELIXIR 0x24
#define ITEM_MAXELIXIR 0x25
#define ITEM_LAVACOOKIE 0x26
#define ITEM_BLUEFLUTE 0x27
#define ITEM_YELLOWFLUTE 0x28
#define ITEM_REDFLUTE 0x29
#define ITEM_BLACKFLUTE 0x2A
#define ITEM_WHITEFLUTE 0x2B
#define ITEM_BERRYJUICE 0x2C
#define ITEM_SACREDASH 0x2D
#define ITEM_SHOALSALT 0x2E
#define ITEM_SHOALSHELL 0x2F
#define ITEM_REDSHARD 0x30
#define ITEM_BLUESHARD 0x31
#define ITEM_YELLOWSHARD 0x32
#define ITEM_GREENSHARD 0x33
#define ITEM_HPUP 0x3F
#define ITEM_PROTEIN 0x40
#define ITEM_IRON 0x41
#define ITEM_CARBOS 0x42
#define ITEM_CALCIUM 0x43
#define ITEM_RARECANDY 0x44
#define ITEM_PPUP 0x45
#define ITEM_ZINC 0x46
#define ITEM_PPMAX 0x47
#define ITEM_GUARDSPEC 0x49
#define ITEM_DIREHIT 0x4A
#define ITEM_XATTACK 0x4B
#define ITEM_XDEFEND 0x4C
#define ITEM_XSPEED 0x4D
#define ITEM_XACCURACY 0x4E
#define ITEM_XSPECIAL 0x4F
#define ITEM_POKEDOLL 0x50
#define ITEM_FLUFFYTAIL 0x51
#define ITEM_SUPERREPEL 0x53
#define ITEM_MAXREPEL 0x54
#define ITEM_ESCAPEROPE 0x55
#define ITEM_REPEL 0x56
#define ITEM_SUNSTONE 0x5D
#define ITEM_MOONSTONE 0x5E
#define ITEM_FIRESTONE 0x5F
#define ITEM_THUNDERSTONE 0x60
#define ITEM_WATERSTONE 0x61
#define ITEM_LEAFSTONE 0x62
#define ITEM_TINYMUSHROOM 0x67
#define ITEM_BIGMUSHROOM 0x68
#define ITEM_PEARL 0x6A
#define ITEM_BIGPEARL 0x6B
#define ITEM_STARDUST 0x6C
#define ITEM_STARPIECE 0x6D
#define ITEM_NUGGET 0x6E
#define ITEM_HEARTSCALE 0x6F
#define ITEM_ORANGEMAIL 0x79
#define ITEM_HARBORMAIL 0x7A
#define ITEM_GLITTERMAIL 0x7B
#define ITEM_MECHMAIL 0x7C
#define ITEM_WOODMAIL 0x7D
#define ITEM_WAVEMAIL 0x7E
#define ITEM_BEADMAIL 0x7F
#define ITEM_SHADOWMAIL 0x80
#define ITEM_TROPICMAIL 0x81
#define ITEM_DREAMMAIL 0x82
#define ITEM_FABMAIL 0x83
#define ITEM_RETROMAIL 0x84
#define ITEM_CHERIBERRY 0x85
#define ITEM_CHESTOBERRY 0x86
#define ITEM_PECHABERRY 0x87
#define ITEM_RAWSTBERRY 0x88
#define ITEM_ASPEARBERRY 0x89
#define ITEM_LEPPABERRY 0x8A
#define ITEM_ORANBERRY 0x8B
#define ITEM_PERSIMBERRY 0x8C
#define ITEM_LUMBERRY 0x8D
#define ITEM_SITRUSBERRY 0x8E
#define ITEM_FIGYBERRY 0x8F
#define ITEM_WIKIBERRY 0x90
#define ITEM_MAGOBERRY 0x91
#define ITEM_AGUAVBERRY 0x92
#define ITEM_IAPAPABERRY 0x93
#define ITEM_RAZZBERRY 0x94
#define ITEM_BLUKBERRY 0x95
#define ITEM_NANABBERRY 0x96
#define ITEM_WEPEARBERRY 0x97
#define ITEM_PINAPBERRY 0x98
#define ITEM_POMEGBERRY 0x99
#define ITEM_KELPSYBERRY 0x9A
#define ITEM_QUALOTBERRY 0x9B
#define ITEM_HONDEWBERRY 0x9C
#define ITEM_GREPABERRY 0x9D
#define ITEM_TAMATOBERRY 0x9E
#define ITEM_CORNNBERRY 0x9F
#define ITEM_MAGOSTBERRY 0xA0
#define ITEM_RABUTABERRY 0xA1
#define ITEM_NOMELBERRY 0xA2
#define ITEM_SPELONBERRY 0xA3
#define ITEM_PAMTREBERRY 0xA4
#define ITEM_WATMELBERRY 0xA5
#define ITEM_DURINBERRY 0xA6
#define ITEM_BELUEBERRY 0xA7
#define ITEM_LIECHIBERRY 0xA8
#define ITEM_GANLONBERRY 0xA9
#define ITEM_SALACBERRY 0xAA
#define ITEM_PETAYABERRY 0xAB
#define ITEM_APICOTBERRY 0xAC
#define ITEM_LANSATBERRY 0xAD
#define ITEM_STARFBERRY 0xAE
#define ITEM_ENIGMABERRY 0xAF
#define ITEM_BRIGHTPOWDER 0xB3
#define ITEM_WHITEHERB 0xB4
#define ITEM_MACHOBRACE 0xB5
#define ITEM_EXPSHARE 0xB6
#define ITEM_QUICKCLAW 0xB7
#define ITEM_SOOTHEBELL 0xB8
#define ITEM_MENTALHERB 0xB9
#define ITEM_CHOICEBAND 0xBA
#define ITEM_KINGSROCK 0xBB
#define ITEM_SILVERPOWDER 0xBC
#define ITEM_AMULETCOIN 0xBD
#define ITEM_CLEANSETAG 0xBE
#define ITEM_SOULDEW 0xBF
#define ITEM_DEEPSEATOOTH 0xC0
#define ITEM_DEEPSEASCALE 0xC1
#define ITEM_SMOKEBALL 0xC2
#define ITEM_EVERSTONE 0xC3
#define ITEM_FOCUSBAND 0xC4
#define ITEM_LUCKYEGG 0xC5
#define ITEM_SCOPELENS 0xC6
#define ITEM_METALCOAT 0xC7
#define ITEM_LEFTOVERS 0xC8
#define ITEM_DRAGONSCALE 0xC9
#define ITEM_LIGHTBALL 0xCA
#define ITEM_SOFTSAND 0xCB
#define ITEM_HARDSTONE 0xCC
#define ITEM_MIRACLESEED 0xCD
#define ITEM_BLACKGLASSES 0xCE
#define ITEM_BLACKBELT 0xCF
#define ITEM_MAGNET 0xD0
#define ITEM_MYSTICWATER 0xD1
#define ITEM_SHARPBEAK 0xD2
#define ITEM_POISONBARB 0xD3
#define ITEM_NEVERMELTICE 0xD4
#define ITEM_SPELLTAG 0xD5
#define ITEM_TWISTEDSPOON 0xD6
#define ITEM_CHARCOAL 0xD7
#define ITEM_DRAGONFANG 0xD8
#define ITEM_SILKSCARF 0xD9
#define ITEM_UPGRADE 0xDA
#define ITEM_SHELLBELL 0xDB
#define ITEM_SEAINCENSE 0xDC
#define ITEM_LAXINCENSE 0xDD
#define ITEM_LUCKYPUNCH 0xDE
#define ITEM_METALPOWDER 0xDF
#define ITEM_THICKCLUB 0xE0
#define ITEM_STICK 0xE1
#define ITEM_REDSCARF 0xFE
#define ITEM_BLUESCARF 0xFF
#define ITEM_PINKSCARF 0x100
#define ITEM_GREENSCARF 0x101
#define ITEM_YELLOWSCARF 0x102
#define ITEM_MACHBIKE 0x103
#define ITEM_COINCASE 0x104
#define ITEM_ITEMFINDER 0x105
#define ITEM_OLDROD 0x106
#define ITEM_GOODROD 0x107
#define ITEM_SUPERROD 0x108
#define ITEM_SSTICKET 0x109
#define ITEM_CONTESTPASS 0x10A
#define ITEM_WAILMERPAIL 0x10C
#define ITEM_DEVONGOODS 0x10D
#define ITEM_SOOTSACK 0x10E
#define ITEM_BASEMENTKEY 0x10F
#define ITEM_ACROBIKE 0x110
#define ITEM_POKEBLOCKCASE 0x111
#define ITEM_LETTER 0x112
#define ITEM_EONTICKET 0x113
#define ITEM_REDORB 0x114
#define ITEM_BLUEORB 0x115
#define ITEM_SCANNER 0x116
#define ITEM_GOGOGGLES 0x117
#define ITEM_METEORITE 0x118
#define ITEM_RM1KEY 0x119
#define ITEM_RM2KEY 0x11A
#define ITEM_RM4KEY 0x11B
#define ITEM_RM6KEY 0x11C
#define ITEM_STORAGEKEY 0x11D
#define ITEM_ROOTFOSSIL 0x11E
#define ITEM_CLAWFOSSIL 0x11F
#define ITEM_DEVONSCOPE 0x120
#define ITEM_TM01 0x121
#define ITEM_TM02 0x122
#define ITEM_TM03 0x123
#define ITEM_TM04 0x124
#define ITEM_TM05 0x125
#define ITEM_TM06 0x126
#define ITEM_TM07 0x127
#define ITEM_TM08 0x128
#define ITEM_TM09 0x129
#define ITEM_TM10 0x12A
#define ITEM_TM11 0x12B
#define ITEM_TM12 0x12C
#define ITEM_TM13 0x12D
#define ITEM_TM14 0x12E
#define ITEM_TM15 0x12F
#define ITEM_TM16 0x130
#define ITEM_TM17 0x131
#define ITEM_TM18 0x132
#define ITEM_TM19 0x133
#define ITEM_TM20 0x134
#define ITEM_TM21 0x135
#define ITEM_TM22 0x136
#define ITEM_TM23 0x137
#define ITEM_TM24 0x138
#define ITEM_TM25 0x139
#define ITEM_TM26 0x13A
#define ITEM_TM27 0x13B
#define ITEM_TM28 0x13C
#define ITEM_TM29 0x13D
#define ITEM_TM30 0x13E
#define ITEM_TM31 0x13F
#define ITEM_TM32 0x140
#define ITEM_TM33 0x141
#define ITEM_TM34 0x142
#define ITEM_TM35 0x143
#define ITEM_TM36 0x144
#define ITEM_TM37 0x145
#define ITEM_TM38 0x146
#define ITEM_TM39 0x147
#define ITEM_TM40 0x148
#define ITEM_TM41 0x149
#define ITEM_TM42 0x14A
#define ITEM_TM43 0x14B
#define ITEM_TM44 0x14C
#define ITEM_TM45 0x14D
#define ITEM_TM46 0x14E
#define ITEM_TM47 0x14F
#define ITEM_TM48 0x150
#define ITEM_TM49 0x151
#define ITEM_TM50 0x152
#define ITEM_HM01 0x153
#define ITEM_HM02 0x154
#define ITEM_HM03 0x155
#define ITEM_HM04 0x156
#define ITEM_HM05 0x157
#define ITEM_HM06 0x158
#define ITEM_HM07 0x159
#define ITEM_HM08 0x15A
#define ITEM_OAKSPARCEL 0x15D
#define ITEM_POKEFLUTE 0x15E
#define ITEM_SECRETKEY 0x15F
#define ITEM_BIKEVOUCHER 0x160
#define ITEM_GOLDTEETH 0x161
#define ITEM_OLDAMBER 0x162
#define ITEM_CARDKEY 0x163
#define ITEM_LIFTKEY 0x164
#define ITEM_HELIXFOSSIL 0x165
#define ITEM_DOMEFOSSIL 0x166
#define ITEM_SILPHSCOPE 0x167
#define ITEM_BICYCLE 0x168
#define ITEM_TOWNMAP 0x169
#define ITEM_VSSEEKER 0x16A
#define ITEM_FAMECHECKER 0x16B
#define ITEM_TMCASE 0x16C
#define ITEM_BERRYPOUCH 0x16D
#define ITEM_TEACHYTV 0x16E
#define ITEM_TRIPASS 0x16F
#define ITEM_RAINBOWPASS 0x170
#define ITEM_TEA 0x171
#define ITEM_MYSTICTICKET 0x172
#define ITEM_AURORATICKET 0x173
#define ITEM_POWDERJAR 0x174
#define ITEM_RUBY 0x175
#define ITEM_SAPPHIRE 0x176
#define ITEM_MAGMAEMBLEM 0x177
#define ITEM_OLDSEAMAP 0x178
#define DEC_SMALLDESK 0x1
#define DEC_POKEMONDESK 0x2
#define DEC_HEAVYDESK 0x3
#define DEC_RAGGEDDESK 0x4
#define DEC_COMFORTDESK 0x5
#define DEC_PRETTYDESK 0x6
#define DEC_BRICKDESK 0x7
#define DEC_CAMPDESK 0x8
#define DEC_HARDDESK 0x9
#define DEC_SMALLCHAIR 0xA
#define DEC_POKEMONCHAIR 0xB
#define DEC_HEAVYCHAIR 0xC
#define DEC_PRETTYCHAIR 0xD
#define DEC_COMFORTCHAIR 0xE
#define DEC_RAGGEDCHAIR 0xF
#define DEC_BRICKCHAIR 0x10
#define DEC_CAMPCHAIR 0x11
#define DEC_HARDCHAIR 0x12
#define DEC_REDPLANT 0x13
#define DEC_TROPICALPLANT 0x14
#define DEC_PRETTYFLOWERS 0x15
#define DEC_COLORFULPLANT 0x16
#define DEC_BIGPLANT 0x17
#define DEC_GORGEOUSPLANT 0x18
#define DEC_REDBRICK 0x19
#define DEC_YELLOWBRICK 0x1A
#define DEC_REDBALLOON 0x1B
#define DEC_BLUEBALLOON 0x1C
#define DEC_YELLOWBALLOON 0x1D
#define DEC_REDTENT 0x1F
#define DEC_BLUETENT 0x20
#define DEC_SOLIDBOARD 0x21
#define DEC_SLIDE 0x22
#define DEC_FENCELENGTH 0x23
#define DEC_FENCEWIDTH 0x24
#define DEC_TIRE 0x25
#define DEC_STAND 0x26
#define DEC_MUDBALL 0x27
#define DEC_BREAKABLEDOOR 0x28
#define DEC_SANDORNAMENT 0x29
#define DEC_SILVERSHIELD 0x2A
#define DEC_GOLDSHIELD 0x2B
#define DEC_GLASSORNAMENT 0x2C
#define DEC_ROUNDTV 0x2E
#define DEC_CUTETV 0x2F
#define DEC_GLITTERMAT 0x30
#define DEC_JUMPMAT 0x31
#define DEC_SPINMAT 0x32
#define DEC_CLOWNOTEMAT 0x33
#define DEC_DNOTEMAT 0x34
#define DEC_ENOTEMAT 0x35
#define DEC_FNOTEMAT 0x36
#define DEC_GNOTEMAT 0x37
#define DEC_ANOTEMAT 0x38
#define DEC_BNOTEMAT 0x39
#define DEC_CHIGHNOTEMAT 0x3A
#define DEC_SURFMAT 0x3B
#define DEC_THUNDERMAT 0x3C
#define DEC_FIREBLASTMAT 0x3D
#define DEC_POWDERSNOWMAT 0x3E
#define DEC_ATTRACTMAT 0x3F
#define DEC_FISSUREMAT 0x40
#define DEC_SPIKESMAT 0x41
#define DEC_BALLPOSTER 0x42
#define DEC_GREENPOSTER 0x43
#define DEC_REDPOSTER 0x44
#define DEC_BLUEPOSTER 0x45
#define DEC_CUTEPOSTER 0x46
#define DEC_PIKAPOSTER 0x47
#define DEC_LONGPOSTER 0x48
#define DEC_SEAPOSTER 0x49
#define DEC_SKYPOSTER 0x4A
#define DEC_KISSPOSTER 0x4B
#define DEC_PICHUDOLL 0x4C
#define DEC_PIKACHUDOLL 0x4D
#define DEC_MARILLDOLL 0x4E
#define DEC_TOGEPIDOLL 0x4F
#define DEC_CYNDAQUILDOLL 0x50
#define DEC_CHIKORITADOLL 0x51
#define DEC_TOTODILEDOLL 0x52
#define DEC_JIGGLYPUFFDOLL 0x53
#define DEC_MEOWTHDOLL 0x54
#define DEC_CLEFAIRYDOLL 0x55
#define DEC_DITTODOLL 0x56
#define DEC_SMOOCHUMDOLL 0x57
#define DEC_TREECKODOLL 0x58
#define DEC_TORCHICDOLL 0x59
#define DEC_MUDKIPDOLL 0x5A
#define DEC_DUSKULLDOLL 0x5B
#define DEC_WYNAUTDOLL 0x5C
#define DEC_BALTOYDOLL 0x5D
#define DEC_KECLEONDOLL 0x5E
#define DEC_AZURILLDOLL 0x5F
#define DEC_SKITTYDOLL 0x60
#define DEC_SWABLUDOLL 0x61
#define DEC_GULPINDOLL 0x62
#define DEC_LOTADDOLL 0x63
#define DEC_SEEDOTDOLL 0x64
#define DEC_PIKACUSHION 0x65
#define DEC_ROUNDCUSHION 0x66
#define DEC_KISSCUSHION 0x67
#define DEC_ZIGZAGCUSHION 0x68
#define DEC_SPINCUSHION 0x69
#define DEC_DIAMONDCUSHION 0x6A
#define DEC_BALLCUSHION 0x6B
#define DEC_GRASSCUSHION 0x6C
#define DEC_FIRECUSHION 0x6D
#define DEC_WATERCUSHION 0x6E
#define DEC_SNORLAXDOL 0x6F
#define DEC_RHYDONDOLL 0x70
#define DEC_LAPRASDOLL 0x71
#define DEC_VENUSAURDOLL 0x72
#define DEC_CHARIZARDDOLL 0x73
#define DEC_BLASTOISEDOLL 0x74
#define DEC_WAILMERDOLL 0x75
#define DEC_REGIROCKDOLL 0x76
#define DEC_REGICEDOLL 0x77
#define DEC_REGISTEELDOLL 0x78

'.-------------------------.
'| KANTO |
''-------------------------'
#define PKMN_MISSINGNO 0
#define PKMN_BULBASAUR 1
#define PKMN_IVYSAUR 2
#define PKMN_VENUSAUR 3
#define PKMN_CHARMANDER 4
#define PKMN_CHARMELEON 5
#define PKMN_CHARIZARD 6
#define PKMN_SQUIRTLE 7
#define PKMN_WARTORTLE 8
#define PKMN_BLASTOISE 9
#define PKMN_CATERPIE 10
#define PKMN_METAPOD 11
#define PKMN_BUTTERFREE 12
#define PKMN_WEEDLE 13
#define PKMN_KAKUNA 14
#define PKMN_BEEDRILL 15
#define PKMN_PIDGEY 16
#define PKMN_PIDGEOTTO 17
#define PKMN_PIDGEOT 18
#define PKMN_RATTATA 19
#define PKMN_RATICATE 20
#define PKMN_SPEAROW 21
#define PKMN_FEAROW 22
#define PKMN_EKANS 23
#define PKMN_ARBOK 24
#define PKMN_PIKACHU 25
#define PKMN_RAICHU 26
#define PKMN_SANDSHREW 27
#define PKMN_SANDSLASH 28
#define PKMN_NIDORANF 29
#define PKMN_NIDORINA 30
#define PKMN_NIDOQUEEN 31
#define PKMN_NIDORANM 32
#define PKMN_NIDORINO 33
#define PKMN_NIDOKING 34
#define PKMN_CLEFAIRY 35
#define PKMN_CLEFABLE 36
#define PKMN_VULPIX 37
#define PKMN_NINETALES 38
#define PKMN_JIGGLYPUFF 39
#define PKMN_WIGGLYTUFF 40
#define PKMN_ZUBAT 41
#define PKMN_GOLBAT 42
#define PKMN_ODDISH 43
#define PKMN_GLOOM 44
#define PKMN_VILEPLUME 45
#define PKMN_PARAS 46
#define PKMN_PARASECT 47
#define PKMN_VENONAT 48
#define PKMN_VENOMOTH 49
#define PKMN_DIGLETT 50
#define PKMN_DUGTRIO 51
#define PKMN_MEOWTH 52
#define PKMN_PERSIAN 53
#define PKMN_PSYDUCK 54
#define PKMN_GOLDUCK 55
#define PKMN_MANKEY 56
#define PKMN_PRIMEAPE 57
#define PKMN_GROWLITHE 58
#define PKMN_ARCANINE 59
#define PKMN_POLIWAG 60
#define PKMN_POLIWHIRL 61
#define PKMN_POLIWRATH 62
#define PKMN_ABRA 63
#define PKMN_KADABRA 64
#define PKMN_ALAKAZAM 65
#define PKMN_MACHOP 66
#define PKMN_MACHOKE 67
#define PKMN_MACHAMP 68
#define PKMN_BELLSPROUT 69
#define PKMN_WEEPINBELL 70
#define PKMN_VICTREEBEL 71
#define PKMN_TENTACOOL 72
#define PKMN_TENTACRUEL 73
#define PKMN_GEODUDE 74
#define PKMN_GRAVELER 75
#define PKMN_GOLEM 76
#define PKMN_PONYTA 77
#define PKMN_RAPIDASH 78
#define PKMN_SLOWPOKE 79
#define PKMN_SLOWBRO 80
#define PKMN_MAGNEMITE 81
#define PKMN_MAGNETON 82
#define PKMN_FARFETCHED 83
#define PKMN_DODUO 84
#define PKMN_DODRIO 85
#define PKMN_SEEL 86
#define PKMN_DEWGONG 87
#define PKMN_GRIMER 88
#define PKMN_MUK 89
#define PKMN_SHELLDER 90
#define PKMN_CLOYSTER 91
#define PKMN_GASTLY 92
#define PKMN_HAUNTER 93
#define PKMN_GENGAR 94
#define PKMN_ONIX 95
#define PKMN_DROWZEE 96
#define PKMN_HYPNO 97
#define PKMN_KRABBY 98
#define PKMN_KINGLER 99
#define PKMN_VOLTORB 100
#define PKMN_ELECTRODE 101
#define PKMN_EXEGGCUTE 102
#define PKMN_EXEGGUTOR 103
#define PKMN_CUBONE 104
#define PKMN_MAROWAK 105
#define PKMN_HITMONLEE 106
#define PKMN_HITMONCHAN 107
#define PKMN_LICKITUNG 108
#define PKMN_KOFFING 109
#define PKMN_WEEZING 110
#define PKMN_RHYHORN 111
#define PKMN_RHYDON 112
#define PKMN_CHANSEY 113
#define PKMN_TANGELA 114
#define PKMN_KANGASKHAN 115
#define PKMN_HORSEA 116
#define PKMN_SEADRA 117
#define PKMN_GOLDEEN 118
#define PKMN_SEAKING 119
#define PKMN_STARYU 120
#define PKMN_STARMIE 121
#define PKMN_MRMIME 122
#define PKMN_SCYTHER 123
#define PKMN_JYNX 124
#define PKMN_ELECTABUZZ 125
#define PKMN_MAGMAR 126
#define PKMN_PINSIR 127
#define PKMN_TAUROS 128
#define PKMN_MAGIKARP 129
#define PKMN_GYARADOS 130
#define PKMN_LAPRAS 131
#define PKMN_DITTO 132
#define PKMN_EEVEE 133
#define PKMN_VAPOREON 134
#define PKMN_JOLTEON 135
#define PKMN_FLAREON 136
#define PKMN_PORYGON 137
#define PKMN_OMANYTE 138
#define PKMN_OMASTAR 139
#define PKMN_KABUTO 140
#define PKMN_KABUTOPS 141
#define PKMN_AERODACTYL 142
#define PKMN_SNORLAX 143
#define PKMN_ARTICUNO 144
#define PKMN_ZAPDOS 145
#define PKMN_MOLTRES 146
#define PKMN_DRATINI 147
#define PKMN_DRAGONAIR 148
#define PKMN_DRAGONITE 149
#define PKMN_MEWTWO 150
#define PKMN_MEW 151
'.-------------------------.
'| JOHTO |
''-------------------------'
#define PKMN_CHIKORITA 152
#define PKMN_BAYLEEF 153
#define PKMN_MEGANIUM 154
#define PKMN_CYNDAQUIL 155
#define PKMN_QUILAVA 156
#define PKMN_TYPHLOSION 157
#define PKMN_TOTODILE 158
#define PKMN_CROCONAW 159
#define PKMN_FERALIGATR 160
#define PKMN_SENTRET 161
#define PKMN_FURRET 162
#define PKMN_HOOTHOOT 163
#define PKMN_NOCTOWL 164
#define PKMN_LEDYBA 165
#define PKMN_LEDIAN 166
#define PKMN_SPINARAK 167
#define PKMN_ARIADOS 168
#define PKMN_CROBAT 169
#define PKMN_CHINCHOU 170
#define PKMN_LANTURN 171
#define PKMN_PICHU 172
#define PKMN_CLEFFA 173
#define PKMN_IGGLYBUFF 174
#define PKMN_TOGEPI 175
#define PKMN_TOGETIC 176
#define PKMN_NATU 177
#define PKMN_XATU 178
#define PKMN_MAREEP 179
#define PKMN_FLAAFFY 180
#define PKMN_AMPHAROS 181
#define PKMN_BELLOSSOM 182
#define PKMN_MARILL 183
#define PKMN_AZUMARILL 184
#define PKMN_SUDOWOODO 185
#define PKMN_POLITOED 186
#define PKMN_HOPPIP 187
#define PKMN_SKIPLOOM 188
#define PKMN_JUMPLUFF 189
#define PKMN_AIPOM 190
#define PKMN_SUNKERN 191
#define PKMN_SUNFLORA 192
#define PKMN_YANMA 193
#define PKMN_WOOPER 194
#define PKMN_QUAGSIRE 195
#define PKMN_ESPEON 196
#define PKMN_UMBREON 197
#define PKMN_MURKROW 198
#define PKMN_SLOWKING 199
#define PKMN_MISDREAVUS 200
#define PKMN_UNOWN 201
#define PKMN_WOBBUFFET 202
#define PKMN_GIRAFARIG 203
#define PKMN_PINECO 204
#define PKMN_FORRETRESS 205
#define PKMN_DUNSPARCE 206
#define PKMN_GLIGAR 207
#define PKMN_STEELIX 208
#define PKMN_SNUBBULL 209
#define PKMN_GRANBULL 210
#define PKMN_QWILFISH 211
#define PKMN_SCIZOR 212
#define PKMN_SHUCKLE 213
#define PKMN_HERACROSS 214
#define PKMN_SNEASEL 215
#define PKMN_TEDDIURSA 216
#define PKMN_URSARING 217
#define PKMN_SLUGMA 218
#define PKMN_MAGCARGO 219
#define PKMN_SWINUB 220
#define PKMN_PILOSWINE 221
#define PKMN_CORSOLA 222
#define PKMN_REMORAID 223
#define PKMN_OCTILLERY 224
#define PKMN_DELIBIRD 225
#define PKMN_MANTINE 226
#define PKMN_SKARMORY 227
#define PKMN_HOUNDOUR 228
#define PKMN_HOUNDOOM 229
#define PKMN_KINGDRA 230
#define PKMN_PHANPY 231
#define PKMN_DONPHAN 232
#define PKMN_PORYGON2 233
#define PKMN_STANTLER 234
#define PKMN_SMEARGLE 235
#define PKMN_TYROGUE 236
#define PKMN_HITMONTOP 237
#define PKMN_SMOOCHUM 238
#define PKMN_ELEKID 239
#define PKMN_MAGBY 240
#define PKMN_MILTANK 241
#define PKMN_BLISSEY 242
#define PKMN_RAIKOU 243
#define PKMN_ENTEI 244
#define PKMN_SUICUNE 245
#define PKMN_LARVITAR 246
#define PKMN_PUPITAR 247
#define PKMN_TYRANITAR 248
#define PKMN_LUGIA 249
#define PKMN_HOOH 250
#define PKMN_CELEBI 251
'.-------------------------.
'| HOENN |
''-------------------------'
#define PKMN_TREECKO 277
#define PKMN_GROVYLE 278
#define PKMN_SCEPTILE 279
#define PKMN_TORCHIC 280
#define PKMN_COMBUSKEN 281
#define PKMN_BLAZIKEN 282
#define PKMN_MUDKIP 283
#define PKMN_MARSHTOMP 284
#define PKMN_SWAMPERT 285
#define PKMN_POOCHYENA 286
#define PKMN_MIGHTYENA 287
#define PKMN_ZIGZAGOON 288
#define PKMN_LINOONE 289
#define PKMN_WURMPLE 290
#define PKMN_SILCOON 291
#define PKMN_BEAUTIFLY 292
#define PKMN_CASCOON 293
#define PKMN_DUSTOX 294
#define PKMN_LOTAD 295
#define PKMN_LOMBRE 296
#define PKMN_LUDICOLO 297
#define PKMN_SEEDOT 298
#define PKMN_NUZLEAF 299
#define PKMN_SHIFTRY 300
#define PKMN_NINCADA 301
#define PKMN_NINJASK 302
#define PKMN_SHEDINJA 303
#define PKMN_TAILLOW 304
#define PKMN_SWELLOW 305
#define PKMN_SHROOMISH 306
#define PKMN_BRELOOM 307
#define PKMN_SPINDA 308
#define PKMN_WINGULL 309
#define PKMN_PELIPPER 310
#define PKMN_SURSKIT 311
#define PKMN_MASQUERAIN 312
#define PKMN_WAILMER 313
#define PKMN_WAILORD 314
#define PKMN_SKITTY 315
#define PKMN_DELCATTY 316
#define PKMN_KECLEON 317
#define PKMN_BALTOY 318
#define PKMN_CLAYDOL 319
#define PKMN_NOSEPASS 320
#define PKMN_TORKOAL 321
#define PKMN_SABLEYE 322
#define PKMN_BARBOACH 323
#define PKMN_WHISCASH 324
#define PKMN_LUVDISC 325
#define PKMN_CORPHISH 326
#define PKMN_CRAWDAUNT 327
#define PKMN_FEEBAS 328
#define PKMN_MILOTIC 329
#define PKMN_CARVANHA 330
#define PKMN_SHARPEDO 331
#define PKMN_TRAPINCH 332
#define PKMN_VIBRAVA 333
#define PKMN_FLYGON 334
#define PKMN_MAKUHITA 335
#define PKMN_HARIYAMA 336
#define PKMN_ELECTRIKE 337
#define PKMN_MANECTRIC 338
#define PKMN_NUMEL 339
#define PKMN_CAMERUPT 340
#define PKMN_SPHEAL 341
#define PKMN_SEALEO 342
#define PKMN_WALREIN 343
#define PKMN_CACNEA 344
#define PKMN_CACTURNE 345
#define PKMN_SNORUNT 346
#define PKMN_GLALIE 347
#define PKMN_LUNATONE 348
#define PKMN_SOLROCK 349
#define PKMN_AZURILL 350
#define PKMN_SPOINK 351
#define PKMN_GRUMPIG 352
#define PKMN_PLUSLE 353
#define PKMN_MINUN 354
#define PKMN_MAWILE 355
#define PKMN_MEDITITE 356
#define PKMN_MEDICHAM 357
#define PKMN_SWABLU 358
#define PKMN_ALTARIA 359
#define PKMN_WYNAUT 360
#define PKMN_DUSKULL 361
#define PKMN_DUSCLOPS 362
#define PKMN_ROSELIA 363
#define PKMN_SLAKOTH 364
#define PKMN_VIGOROTH 365
#define PKMN_SLAKING 366
#define PKMN_GULPIN 367
#define PKMN_SWALOT 368
#define PKMN_TROPIUS 369
#define PKMN_WHISMUR 370
#define PKMN_LOUDRED 371
#define PKMN_EXPLOUD 372
#define PKMN_CLAMPERL 373
#define PKMN_HUNTAIL 374
#define PKMN_GOREBYSS 375
#define PKMN_ABSOL 376
#define PKMN_SHUPPET 377
#define PKMN_BANETTE 378
#define PKMN_SEVIPER 379
#define PKMN_ZANGOOSE 380
#define PKMN_RELICANTH 381
#define PKMN_ARON 382
#define PKMN_LAIRON 383
#define PKMN_AGGRON 384
#define PKMN_CASTFORM 385
#define PKMN_VOLBEAT 386
#define PKMN_ILLUMISE 387
#define PKMN_LILEEP 388
#define PKMN_CRADILY 389
#define PKMN_ANORITH 390
#define PKMN_ARMALDO 391
#define PKMN_RALTS 392
#define PKMN_KIRLIA 393
#define PKMN_GARDEVOIR 394
#define PKMN_BAGON 395
#define PKMN_SHELGON 396
#define PKMN_SALAMENCE 397
#define PKMN_BELDUM 398
#define PKMN_METANG 399
#define PKMN_METAGROSS 400
#define PKMN_REGIROCK 401
#define PKMN_REGICE 402
#define PKMN_REGISTEEL 403
#define PKMN_KYOGRE 404
#define PKMN_GROUDON 405
#define PKMN_RAYQUAZA 406
#define PKMN_LATIAS 407
#define PKMN_LATIOS 408
#define PKMN_JIRACHI 409
#define PKMN_DEOXYS 410
#define PKMN_CHIMECHO 411

Ok now to start the script.

#org $script
lock
faceplayer
message $here
$here 1 = Here you go!
boxset 6
giveitem 0x01 0x01
release
end

Recap Time
The new command is giveitem which gives the player an item. My script gives the player a masterball. Use my list to find the item you want to give and put it in the first 0x space like me. The second 0x is the amount of the item to give.

Now to take the item away

#org $script
lock
faceplayer
message $take
$take 1 = I steal yo item!
boxset 6
removeitem 0x01 0x01
release
end

Recap Time
It is the same as giveitem except you put removeitem.

Now for giving pokemon.

#org $script
lock
faceplayer
message $here
$here 1 = Take this pokemon!
boxset 6
givepokemon 2 5 0x8B
release
end

Recap Time
New command givepokemon. Now the first number is the pokemon's number which I so nicely gave you a list of. The second number is the level. The third number has to have 0x and it is the item to hold. If you do not want the pokemon to hold an item put 0x00. That script would give me a level 5 ivysaur holding an oran berry.

STEP 4 Flags
Flags make it so an event happens only once.

List of special flags

Fire Red
FireRed NATIONALDEX 0x16F
FireRed MENU PKMN 0x828
FireRed MENU POKEDEX 0x829
FireRed RUNNING SHOES 0x82F
FireRed BADGE 1 0x820
FireRed BADGE 2 0x821
FireRed BADGE 3 0x822
FireRed BADGE 4 0x823
FireRed BADGE 5 0x824
FireRed BADGE 6 0x825
FireRed BADGE 7 0x826
FireRed BADGE 8 0x827

Ruby/Sapphire
Ruby/Sapphire MENU PKMN 0x800
Ruby/Sapphire MENU POKEDEX 0x801
Ruby/Sapphire MENU POKENAV 0x802
Ruby/Sapphire BADGE 1 0x807
Ruby/Sapphire BADGE 2 0x808
Ruby/Sapphire BADGE 3 0x809
Ruby/Sapphire BADGE 4 0x80A
Ruby/Sapphire BADGE 5 0x80B
Ruby/Sapphire BADGE 6 0x80C
Ruby/Sapphire BADGE 7 0x80D
Ruby/Sapphire BADGE 8 0x80E

Emerald

Emerald MENU PKMN 0x860
Emerald MENU POKEDEX 0x861
Emerald MENU POKENAV 0x862
Emerald BADGE 1 0x867
Emerald BADGE 2 0x868
Emerald BADGE 3 0x869
Emerald BADGE 4 0x86A
Emerald BADGE 5 0x86B
Emerald BADGE 6 0x86C
Emerald BADGE 7 0x86D
Emerald BADGE 8 0x86E


#org $script
lock
faceplayer
checkflag 0x(flag number)
if 0x01 goto $done
message $giver
$giver 1 = Here
boxset 6
givepokemon 4 5 0x00
setflag 0x(flag number)
release
end

#org $done
message $noob
$noob 1 = I gave you one.
boxset 6
release
end

Recap Time
Checkflag 0x yout flag checks to see if the flag has been set which means it checks if the event is already done. Then setflag makes it so the event does not happen again. Then if you put a checkflag you put your done script. Also you have to do something else I will put a link to the video.

Set person ID as flag number

STEP 5 Movement
This one is a bit tricky to write.


List of movement values

Fire Red
' Specials
0x4A ' Face player
0x4B ' Face against player
0x60 ' Disappear (removes the sprite, but the person can still be interacted with)
0x61 ' Appear
0x62 ' "!" pops up
0x63 ' "?" pops up
0x64 ' "X" pops up (vs-seeker cant fight)
0x65 ' "!!" pops up (vs-seeker can fight)
0x66 ' "" pops up

' look in direction
0x01 ' look Up0
0x02 ' look Left0
0x03 ' look Right0
0x04 ' look Down0

' walk very slowly
0x08 ' step down1
0x09 ' step up1
0x0A ' step left1
0x0B ' step right1

' walk slowly
0x0C ' step down2
0x0D ' step up2
0x0E ' step left2
0x0F ' step right2

' walk
0x10 ' step down3
0x11 ' step up3
0x12 ' step left3
0x13 ' step right3

' run
0x1D ' step down4
0x1E ' step up4
0x1F ' step left4
0x20 ' step right4

' jump in place looking where it says
0x52 ' jump0 down
0x53 ' jump0 up
0x54 ' jump0 left
0x55 ' jump0 right

' jump in place looking in the order it says
0x56 ' jump0 down/up
0x57 ' jump0 up/down
0x58 ' jump0 left/right
0x59 ' jump0 right/left

' Jump Direction
0x4E ' jump1 down
0x4F ' jump1 up
0x50 ' jump1 left
0x51 ' jump1 right

0x14 ' jump2 down
0x15 ' jump2 up
0x16 ' jump2 left
0x17 ' jump2 right

0x46 ' jumpLookingLeft1 down
0x47 ' jumpLookingDown1 up (jump backwards)
0x48 ' jumpLookingUp1 left
0x49 ' jumpLookingLeft right (jump backwards)

Ruby/Sapphire
0x54 ' Hide
0x55 ' Show
0x56 ' Alert
0x57 ' Question
0x58 ' Love
0x5A ' Pokeball
0x10 ' Delay0
0x11 ' Delay1
0x12 ' Delay2
0x13 ' Delay3
0x14 ' Delay4

' Step
0x00 ' Down0
0x01 ' Up0
0x02 ' Left0
0x03 ' Right0
0x04 ' Down1
0x05 ' Up1
0x06 ' Left1
0x07 ' Right1
0x08 ' Down2
0x09 ' Up2
0x0A ' Left2
0x0B ' Right2
0x17 ' Left3
0x18 ' Right3
0x15 ' Down3
0x16 ' Up3
0x2D ' Down4
0x2E ' Up4
0x2F ' Left4
0x30 ' Right4

' Running
0x35 ' RunDown
0x36 ' RunUp
0x37 ' RunLeft
0x38 ' RunRight
0x7E ' RunDown2
0x7F ' RunUp2
0x80 ' RunLeft2
0x81 ' RunRight2

' Hop & Jump
0x0C ' HopTileDown
0x0D ' HopTileUp
0x0E ' HopTileLeft
0x0F ' HopTileRight
0x3A ' HighHopDown
0x3B ' HighHopUp
0x3C ' HighHopLeft
0x3D ' HighHopRight
0x46 ' HopDown
0x47 ' HopUp
0x48 ' HopLeft
0x49 ' HopRight
0x4A ' HopDown180
0x4B ' HopUp180
0x4C ' HopLeft180
0x4D ' HopRight180
0x42 ' JumpDown
0x43 ' JumpUp
0x44 ' JumpLeft
0x45 ' JumpRight

' Straf (May have glitches)
0x19 ' StDown1
0x1A ' StUp1
0x1B ' StLeft1
0x1C ' StRight1
0x1D ' StDown2
0x1E ' StUp2
0x1F ' StLeft2
0x20 ' StRight2
0x21 ' StDown3
0x22 ' StUp3
0x23 ' StLeft3
0x24 ' StRight3
0x25 ' StDown4
0x26 ' StUp4
0x27 ' StLeft4
0x28 ' StRight4
0x6A ' StDown1i
0x6B ' StUp1i
0x6C ' StLeft1i
0x6D ' StRight1i
0x6E ' StDown5
0x6F ' StUp5
0x70 ' StLeft5
0x71 ' StRight5

'Special
0x31 ' SlideFaceDown
0x32 ' SlideFaceUp
0x33 ' SlideFaceLeft
0x34 ' SlideFaceRight
0x86 ' IceSlideDown
0x87 ' IceSlideUp
0x88 ' IceSlideLeft
0x89 ' IceSlideRight

' Glitchy
0x3E ' Up0A
0x3F ' Down0A
0x4E ' Down0B
0x63 ' Up0B
0x65 ' Right0A
0x66 ' RunStopLoopDown
0x67 ' RunStopLoopUp
0x68 ' RunStopLoopLeft
0x69 ' RunStopLoopRight
0x72 ' Down15
0x73 ' Up15
0x74 ' Left15
0x75 ' Right15
0x7A ' Down6
0x7B ' Up6
0x7C ' Left6
0x7D ' Right6
0x82 ' Down7
0x83 ' Up7
0x84 ' Left7
0x85 ' Right7

' EXIT
0xFE


Time for the script

#org $script
lock
faceplayer
message $talk
$talk 1 = I will move
boxset 6
applymovement person number $move
$move 1 ; #binary 0x12 0xFE
pausemove 0x0000
release
end




Recap Time
First new command applymovement then you put their person number. That tells the game who is going to move. Then you put $ whatever.
Then $ whatever 2 ; take not that is a semicolon which is right next to the L key on the keyboard. That is followed by #binary which tells the game we are to move. Then you put the movement values and then after the movbement values you have to put 0xFE otherwise the game will crash. Afterwards you put pausemove 0x0000 so the game finishes the movement values

STEP 6 Trainer Battles
For this part you will need a tool called PET or A-Trainer
There are a few different trainer battle types I will make a list.

List of trainerbattle types

trainerbattle 0x00
trainerbattle 0x01
trainerbattle 0x03
trainerbattle 0x09

#org $script
lock
faceplayer
trainerbattle 0x00 0xPET or A-Trainer number $aha $own
$aha 1 = I see you battle!
$own 1 = you beat me.
boxset 6
release
end

#org $script
lock
faceplayer
trainerbattle 0x01 0xPET or A-Trainer number $aha $own
$aha 1 = I see you battle!
$own 1 = you beat me.
message $later
$later 1 = You are good.
boxset 6
release
end

#org $more
message $more1
$more 1 = Billy!
boxset 6
release
end


#org $script
lock
faceplayer
trainerbattle 0x03 0xPET or A-Trainer number $own
$own 1 = you beat me.
message $later
$later 1 = You are good.
boxset 6
release
end


#org $script
lock
faceplayer
trainerbattle 0x09 0xPET or A-Trainer number $own $beat
$own 1 = you beat me.
$beat 1 = I won yeah!
boxset 6
release
end

A-Trainer
Recap Time
New command trainerbattle which is pretty self-explanatory.

STEP 7 Wild Pokemon Battles
This script is a little long but makes your hack a lot more fun.

#org $script
lock
faceplayer
cry 0xA1 1
#raw 0x33
pause 0x30
message $bio
$bio 1 = I am a BULBASAUR!
boxset 6
wildbattle 1 5 0
pause 0x70
fadescreen 1
removesprite 0x800F
setflag 0x1200
pause 0x10
fadescreen 0
release
end

Recap Time
Cry 0xA1 says we are going to play a cry. Then after cry 0xA1 you put the pokemon number. Then you put #raw 0x33 which tells the game to finish the cry. Then you put a little pause. Then your message for what they are to say before the battle but this is not needed. Then wildbattle. After wildbattle you put pokemon number then the level and the third number tells the game whether or not it is a legendary 0 for normal 1 for legendary. Then a pause then fadescreen which turns the screen black or white then you put removesprite 0x800F which removes the sprite that last played a part in the event. Set your flag fadescreen again to bring the screen back and release end.

STEP 8 Script Boxes

#org $script
jingle
message $talk
$talk 1 = I will move
boxset 6
applymovement person number $move
$move 1 ; #binary 0x12 0xFE
pausemove 0x0000
setflag 0x1200
setvar 0x6000 0x0001
release
end


Set unknow to 3
and set your var

Recap Time
Jingle stops all movement. Then you setflag so the event does not happen again and you have to put a var number for the script box.

STEP 9 Weather

List of Weather Values

list of weather values
# define none = 0x0
# define reflected clouds = 0x1
# define normal = 0x2
# define rain = 0x3
# define 3 snowflakes = 0x4
# define thunderstorm = 0x5
# define fog = 0x6
# define snow = 0x7
# define sandstorm = 0x8
# define diagonal fog = 0x9
# define thin fog = 0xA
# define bit dark = 0xB
# define overheat = 0xC
# define thundersrorm2 = 0xD
# define none = 0xE
Overheat and Thunderstorm are Ruby/Sapphire only.

#org $script
setweather 0x4
nop
doweather
release
end

Recap Time
Setweather tells the game which weather to do. Nop does absolutely nothing nut is needed. Doweather does the weather a no bainer.

Special Commands

#define SPECIAL_HEALPKMN 0x0
#define SPECIAL_CHOOSEPOKEMON 0x9C
#define SPECIAL_PKMNCATCH 0x9D
\v\h01 makes it say player name
\v\h06 makes it say rival name
\hb0 makes it say ......................

STEP 10 Move Camera

#org $script
jingle
special 0x113
applymovement 0x7F $move
$move 1 ; #binary 0x13 0xFE
pausemove 0x0000
applymovement 0x7F $goback
$goback 1 ; #binary 0x12 0xFE
pausemove 0x0000
special 0x114
setvar 0x6000 0x0001
release
end

Recap Time
Special 0x113 tells the game we are making the camera move. Applymovement 0x7F makes the camera move. Then special 0x114 tells the game no more move camera. If you ndo not want the event to happen again set your flag.

This is the end of my Tutorial. I hope you can now make a script. This tutorial belongs to me do not take anything without my permission.

goldakhil1
June 29th, 2010, 02:59 PM
This was a wonderful tutorial, it helped me a lot! Thanks!

diegoisawesome
June 29th, 2010, 04:49 PM
...This is written for PokeScript? Wow, you really need to update your tools...

Tropical Sunlight
June 29th, 2010, 11:35 PM
A Pokescript tutorial in the age of XSE.
There's nothing wrong with the tutorial, except that Pokescript is really outdated.

MikieJo
June 30th, 2010, 07:18 AM
Eveytime I put in a script and write to an offset it dosent work could someone pls help me!!

Tropical Sunlight
June 30th, 2010, 07:59 AM
Eveytime I put in a script and write to an offset it dosent work could someone pls help me!!
Tip: switch to HackMew's XSE. Scripting with it is a whole lot easier.

Ninja Caterpie
July 2nd, 2010, 03:34 AM
Lovely tutorial...but you're a couple of years late.

donnepogi-)
July 10th, 2010, 07:06 PM
how will i make a trainer that has radius?
pls help!

Souls1996
July 20th, 2010, 04:47 PM
how will i make a trainer that has radius?
pls help!

Just write a normal Trainer Script. Then when you put the offset in on Advance Map, Check off the "Trainer" Box. Then under that change the "View radius" to how ever far you want the Trainer to see.

donnepogi-)
July 21st, 2010, 01:11 AM
how will i create a trainer like, your rival will walk to you then he will battle you then he will just walk away?help pls.

super poke master
July 21st, 2010, 05:48 AM
I tried this script and it' not working: #org $script lock faceplayer message $talk $talk 1 = Hi there. boxset 6 release end But, this script is working: #dyn 0x740000 #org @start lock faceplayer msgbox @text ' Hi there. callstd MSG_NORMAL release end #org @text = Hi there. What is the problem?

joshblevins
July 21st, 2010, 06:21 AM
I have a lot of events in my hack and i was wondering how to make on script after another specific one. i have my game so far starting in kanto and you get your starter and the pokedex like normal but i want my script for oaks aide to give you the national dex exactly after you get the pokedex in oaks lab if somebody could help with this i would be very grateful!

donnepogi-)
July 23rd, 2010, 12:44 AM
you can change the hex value.

joshblevins
July 23rd, 2010, 10:12 PM
How can i change the hex value to make that possible? i have hex workshop 6 what would i have to do?