The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
New threads in this forum are to be approved by a moderator before they are displayed.

Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #2776    
Old November 2nd, 2007, 06:21 PM
spenceroone3's Avatar
spenceroone3
<he eats lots of burgers.
 
Join Date: Aug 2007
Location: In your closet
Gender:
Nature: Hasty
Send a message via Windows Live Messenger to spenceroone3
Uhhh... Why isn't my tutorial appearing in the Documents and Tutorials section? Here it is...
Spoiler:
Well, I thought about it, and since scripting is the hardest part of Pokemon Hacking, I'm going to start a GIANT tutorial on how to script. It is all done on Poke script, so I think you better download that first.
Here goes...

1st Tutorial: Simple talking script!
First open note pad and write this down:
Code:
#org $Showtext
That will start the script. the $ sign goes in front off all offsets.
Then do this:
Code:
lock
faceplayer
That makes the person who you are talking to turn to face you. If they are the type that looks around, or walks around, lock keeps them in place.
Now onto the message:
Code:
message $Hello
$Hello 1 = How ya going?\pGood? That's awesome!!
boxset 6
Remember the $ sign goes in front of all offsets. You can make any type of talking script just by editing the talking part. /p means new paragraph, /n means next line, and /l is a new paragraph but with a different effect to the /p one. Boxset 6 is the type of Message box it is in. Boxset 6 is the normal text box. Boxset 5 is the Yes/No textbox.
Now we better end this script:
Code:
release
end
Release is the opposite of lock and faceplayer, and end MUST be used to end the script, or else.
Here is the complete script:
Code:
#org $Showtext
lock
faceplayer
message $Hello
$Hello 1 = How ya going?\pGood? That's awesome!!
boxset 6
release
end

2nd Tutorial:Yes/No script!
Open notepad and do all of what I told you in the last tut.
Make three things a person could say, maybe these(This is not how you put them into a script):
Code:
Are you dumb??
If Yes,: Hahaha!
If No, : Yes you are!!
Now, to put them into a talking script, write all this up:
Code:
#org $Sillyquestion
lock
faceplayer
message $Aredumb
$Aredumb 1 = Are you dumb??
boxset 5
compare LASTRESUILT B_TRUE
if B_False goto $Yesuare
message $Laugh
$Laugh 1 = Hahaha!
Boxset 6
release
end

#org $Yesuare
lock
faceplayer
message $Yesuare2
$Yesuare2 1 = Oh yes you are!!
boxset 6
release
end
Notice how I used Boxset 5 instead of Boxset 6 at the question?

For the next tut, you will need to have this
by your side...

Tutorial Three: Movement Scripts
Yes yes, I suck at these. They probably won't even work
but I'll have a try at them.
The following script will make your player walk up three steps.
Customize it a bit. I'll explain a bit more at the end.

Code:
#org $Move1
checkflag 0x200
if B_TRUE goto $Done
applymovement 0xFF $move
pause 0x30
setflag 0x200
end

#org $Done
end

#org $move
$move 1; #Binary 0x11 0x11 0x11 0xFE
The pause 0x30 is the number of steps taken x10, making 30. 0xFE MUST go at the end of every list of movements. Refer to the page I posted before this tut to customize this. Remember this: Applymovement 0xFF

The 0xFF makes the main character move. For someone else to move, put their map number in instead, for example, if it was this:
Code:
applymovement 0x01 $Whogivesthe
Then the person with map number 0x01 would move.
Also, to make these things move, you must place a script. When you stand on it, it is supposed to move you forward 3 steps. To make them work, you will notice something like this in A-Map:
Code:
Unknown: 00 00
Var Number: 00 00
Change that to this:
Code:
Unknown: 03 00
Var Number: 50 40
And so ends yet another tut!!

Tutorial Five: Giveitem scripts
These are pretty easy, but before you go, you'll need a list of items.
Code:
    * 1 Master Ball
    * 2 Ultra Ball
    * 3 Great Ball
    * 4 Poké Ball
    * 5 Safari Ball
    * 6 Net Ball
    * 7 Dive Ball
    * 8 Nest Ball
    * 9 Repeat Ball
    * A Timer Ball
    * B Luxury Ball
    * C Premier Ball
    * D Potion
    * E Antidote
    * F Burn Heal
    * 10 Ice Heal
    * 11 Awakening
    * 12 Parlyz Heal
    * 13 Full Restore
    * 14 Max Potion
    * 15 Hyper Potion
    * 16 Super Potion
    * 17 Full Heal
    * 18 Revive
    * 19 Max Revive
    * 1A Fresh Water
    * 1B Soda Pop
    * 1C Lemonade
    * 1D Moomoo Milk
    * 1E Energypowder
    * 1F Energy Root
    * 20 Heal Powder
    * 21 Revival Herb
    * 22 Ether
    * 23 Max Ether
    * 24 Elixir
    * 25 Max Elixir
    * 26 Lava Cookie
    * 27 Blue Flute
    * 28 Yellow Flute
    * 29 Red Flute
    * 2A Black Flute
    * 2B White Flute
    * 2C Berry Juice
    * 2D Sacred Ash
    * 2E Shoal Salt
    * 2F Shoal Shell
    * 30 Red Shard
    * 31 Blue Shard
    * 32 Yellow Shard
    * 33 Green Shard
    * 3F HP Up
    * 40 Protein
    * 41 Iron
    * 42 Carbos
    * 43 Calcium
    * 44 Rare Candy
    * 45 PP Up
    * 46 Zinc
    * 47 PP Max
    * 49 Guard Spec.
    * 4A Dire Hit
    * 4B X Attack
    * 4C X Defend
    * 4D X Speed
    * 4E X Accuracy
    * 4F X Special
    * 50 Poké Doll
    * 51 Fluffy Tail
    * 53 Super Repel
    * 54 Max Repel
    * 55 Escape Rope
    * 56 Repel
    * 5D Sun Stone
    * 5E Moon Stone
    * 5F Fire Stone
    * 60 Thunderstone
    * 61 Water Stone
    * 62 Leaf Stone
    * 67 Tinymushroom
    * 68 Big Mushroom
    * 6A Pearl
    * 6B Big Pearl
    * 6C Stardust
    * 6D Star Piece
    * 6E Nugget
    * 6F Heart Scale
    * 79 Orange Mail
    * 7A Harbor Mail
    * 7B Glitter Mail
    * 7C Mech Mail
    * 7D Wood Mail
    * 7E Wave Mail
    * 7F Bead Mail
    * 80 Shadow Mail
    * 81 Tropic Mail
    * 82 Dream Mail
    * 83 Fab Mail
    * 84 Retro Mail
    * 85 Cheri Berry
    * 86 Chesto Berry
    * 87 Pecha Berry
    * 88 Rawst Berry
    * 89 Aspear Berry
    * 8A Leppa Berry
    * 8B Oran Berry
    * 8C Persim Berry
    * 8D Lum Berry
    * 8E Sitrus Berry
    * 8F Figy Berry
    * 90 Wiki Berry
    * 91 Mago Berry
    * 92 Aguav Berry
    * 93 Iapapa Berry
    * 94 Razz Berry
    * 95 Bluk Berry
    * 96 Nanab Berry
    * 97 Wepear Berry
    * 98 Pinap Berry
    * 99 Pomeg Berry
    * 9A Kelpsy Berry
    * 9B Qualot Berry
    * 9C Hondew Berry
    * 9D Grepa Berry
    * 9E Tamato Berry
    * 9F Cornn Berry
    * A0 Magost Berry
    * A1 Rabuta Berry
    * A2 Nomel Berry
    * A3 Spelon Berry
    * A4 Pamtre Berry
    * A5 Watmel Berry
    * A6 Durin Berry
    * A7 Belue Berry
    * A8 Liechi Berry
    * A9 Ganlon Berry
    * AA Salac Berry
    * AB Petaya Berry
    * AC Apicot Berry
    * AD Lansat Berry
    * AE Starf Berry
    * AF Enigma Berry
    * B3 Brightpowder
    * B4 White Herb
    * B5 Macho Brace
    * B6 Exp. Share
    * B7 Quick Claw
    * B8 Soothe Bell
    * B9 Mental Herb
    * BA Choice Band
    * BB King's Rock
    * BC Silverpowder
    * BD Amulet Coin
    * BE Cleanse Tag
    * BF Soul Dew
    * C0 Deepseatooth
    * C1 Deepseascale
    * C2 Smoke Ball
    * C3 Everstone
    * C4 Focus Band
    * C5 Lucky Egg
    * C6 Scope Lens
    * C7 Metal Coat
    * C8 Leftovers
    * C9 Dragon Scale
    * CA Light Ball
    * CB Soft Sand
    * CC Hard Stone
    * CD Miracle Seed
    * CE Blackglasses
    * CF Black Belt
    * D0 Magnet
    * D1 Mystic Water
    * D2 Sharp Beak
    * D3 Poison Barb
    * D4 Nevermeltice
    * D5 Spell Tag
    * D6 Twistedspoon
    * D7 Charcoal
    * D8 Dragon Fang
    * D9 Silk Scarf
    * DA Up-grade
    * DB Shell Bell
    * DC Sea Incense
    * DD Lax Incense
    * DE Lucky Punch
    * DF Metal Powder
    * E0 Thick Club
    * E1 Stick
    * FE Red Scarf
    * FF Blue Scarf
    * 100 Pink Scarf
    * 101 Green Scarf
    * 102 Yellow Scarf
    * 103 Mach Bike
    * 104 Coin Case
    * 105 Itemfinder
    * 106 Old Rod
    * 107 Good Rod
    * 108 Super Rod
    * 109 S.S. Ticket
    * 10A Contest Pass
    * 10C Wailmer Pail
    * 10D Devon Goods
    * 10E Soot Sack
    * 10F Basement Key
    * 110 Acro Bike
    * 111 PokéBlock Case
    * 112 Letter
    * 113 Eon Ticket
    * 114 Red Orb
    * 115 Blue Orb
    * 116 Scanner
    * 117 Go-goggles
    * 118 Meteorite
    * 119 Rm. 1 Key
    * 11A Rm. 2 Key
    * 11B Rm. 4 Key
    * 11C Rm. 6 Key
    * 11D Storage Key
    * 11E Root Fossil
    * 11F Claw Fossil
    * 120 Devon Scope
    * 121 TM01
    * 122 TM02
    * 123 TM03
    * 124 TM04
    * 125 TM05
    * 126 TM06
    * 127 TM07
    * 128 TM08
    * 129 TM09
    * 12A TM10
    * 12B TM11
    * 12C TM12
    * 12D TM13
    * 12E TM14
    * 12F TM15
    * 130 TM16
    * 131 TM17
    * 132 TM18
    * 133 TM19
    * 134 TM20
    * 135 TM21
    * 136 TM22
    * 137 TM23
    * 138 TM24
    * 139 TM25
    * 13A TM26
    * 13B TM27
    * 13C TM28
    * 13D TM29
    * 13E TM30
    * 13F TM31
    * 140 TM32
    * 141 TM33
    * 142 TM34
    * 143 TM35
    * 144 TM36
    * 145 TM37
    * 146 TM38
    * 147 TM39
    * 148 TM40
    * 149 TM41
    * 14A TM42
    * 14B TM43
    * 14C TM44
    * 14D TM45
    * 14E TM46
    * 14F TM47
    * 150 TM48
    * 151 TM49
    * 152 TM50
    * 153 HM01
    * 154 HM02
    * 155 HM03
    * 156 HM04
    * 157 HM05
    * 158 HM06
    * 159 HM07
    * 15A HM08
    * 15D Oak's Parcel
    * 15E Poké Flute
    * 15F Secret Key
    * 160 Bike Voucher
    * 161 Gold Teeth
    * 162 Old Amber
    * 163 Card Key
    * 164 Lift Key
    * 165 Helix Fossil
    * 166 Dome Fossil
    * 167 Silph Scope
    * 168 Bicycle
    * 169 Town Map
    * 16A VS Seeker
    * 16B Fame Checker
    * 16C TM Case
    * 16D Berry Pouch
    * 16E Teachy TV
    * 16F Tri-pass
    * 170 Rainbow Pass
    * 171 Tea
    * 172 Mysticticket
    * 173 Auroraticket
    * 174 Powder Jar
    * 175 Ruby
    * 176 Sapphire
Say we wanted to make a person give you a free potion.
This is a Yes/No script to give you one.
Code:
#org $Sillyquestion
lock
faceplayer
checkflag 0x200
If B_TRUE goto $Done
message $Freepo
$Freepo 1 = Would you like a free POTION?
boxset 5
compare LASTRESUILT B_TRUE
if B_False goto $Nothanks1
message $Hereitis
$Hereitis 1 = Here ya go!
Boxset 6
giveitem 0xD 0x1
setflag 0x200
release
end

#org $Nothanks1
lock
faceplayer
message $Nothanks
$Nothanks 1 = Oh yes you are!!
boxset 6
release
end

#org $Done
lock
faceplayer
message $Noneleft
$Noneleft 1 = I'm sorry, I don't have\nany POTIONS left.
release
end
The last bit at the end shows what happens if you already have the potion. The giveitem 0xD 0x1 part is, obviously, you get 1 potion. Changing that will give you a different item or a different number of them. You don't have to write in "[PLAYER] has recieved POTION" because giveitem does that automatically. The checkflag at the start makes sure you don't get x999 potions :lol:. And so I have ended another great tut! Next up in line: Give Pokemon Scripts!

Tutorial Six: Give Pokemon Scripts!
First you will need a list of Pokemon. Lucky for you, I have one.
Code:
#define PKMN_MISSINGNO 0

'.-------------------------.
'| KANTO |
''-------------------------'
#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_NIDORAN_F 29
#define PKMN_NIDORINA 30
#define PKMN_NIDOQUEEN 31
#define PKMN_NIDORAN_M 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_MR_MIME 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_HO-OH 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
Now that you have that, you must create the small script. I want a Charmander, so I shall make this:
Code:
givepokemon 4 5 0
That gives me a Charmander l5 not holding anything. The first number is the number of the Pokemon, the second number is the Lv, and the third number is the number of the item!!! Oh, and it won't show anything like "You recieved the CHARMANDER" you actually have to put that in! Here is the script in action, taken from Pokemon PinkMew:
Code:
#org $begin
lock
faceplayer
checkflag 0x232
if B_true goto $gotit
message $q
boxset 6
message $mygod
boxset 6
givepokemon 4 5 0
message $NameCharm
boxset 5
setflag 0x232
setflag 0x828
release
end

#org $gotit
message $hi
boxset 6
release
end

#org $hi
$hi 1 = How's my old CHARMANDER?

#org $q
$q 1 = To get past here, you'll\nneed a pokemon.\pTake this CHARMANDER.

#org $mygod
$mygod 1 = You received the CHARMANDER!

message $NameCharm
$NameCharm 1 = Would You like to give \nCHARMANDER a name?
boxset 5
compare LASTRESULT 1
if b_False goto $seeya
Namepokemon
setflag 0x203

message $seeya
$seeya 1 = Thanks!
release
end
Tutorial Seven: Flags!
This will be short since it is only about flags!!
Okay, the effect of flags:
Quote:
Setflag~ Sets the flag.
Checkflag~ Checks the flag.
Removeflag~ Opposite of Setflag.
Sorry, G2g, this tut isn't finsihed yet, I gotta go to school!

Exam One: Puttin' it together!
Scenario: A proffesor would like a Celebi and a Potion. He also wants someone saying:
Quote:
I'll give you this CELEBI! Oh, and take this POTION, too!
Make a script for him that gives him it!
How to get your results: Post in this thread your script! I'll fix it for you, improve it, and give it a rating out of 10! If you get less than 5/10, I recommend that you skim over the tutorials again!

Tutorial Eight: Warps
You will need this for scripts like movement scripts leading to a house.
Here is a good base for one of these:
Code:
warp 0x[map bank] 0x[map] 0x[warp]
Now, here is it leading to PALLET TOWN:
Code:
warp 0x30 0x0 0x1
You can put that in ANY of your scripts. Me? I haven't used it yet!!!

Tutorial Nine: Randomization!
As of my latest sucess on the Script/Discussion/Sharing thread, I credit Dabomstew for helping me peronally with this one.

You're probably wondering were you would need this. The slowbro in Cerulean. Stuff like that. First, do this:
Code:
#org $Begin
lock
faceplayer
#raw 0x8F
#raw 0x04 0x00
copyvar 0x8008 0x800D
That extra part will begin the randomziation. But you then need to add this:
Code:
compare 0x8008 0x0
if 0x1 call $Yes
compare 0x8008 0x1
if 0x1 call $No
release
end

$org $Yes
$Yes 1 = Yes! Yes! Yes!
boxset 6
release
end

#org $No
$No 1 = No! No! No!
boxset 6
release
end
Tutorial Ten: Text Colour!
Even my favorite hacks, Shiny Gold and Pokemon White, don't have these, while hacks like liquid ocean (Correct me if its wrong, I can't rememeber) have tons of it. I'm not sure if their creators are just lazy, or just don't know how. Well, here is my tut. first write up the beginninng of the script:
Code:
#org $Hello
lock
faceplayer
message $Color
$Color 1 = ??
boxset 6
release
end
Well that is the start, I better show you how to add colouring. First get this command:
Code:
\c\h01\hXX
Put it in this part of our script:
Code:
$Color 1 = \c\h01\h09How are you going?
Notice how I put that 09 after the 'H'? That is the colour's number. Here is some more:
Quote:
00 - white
02 - black (System messages and reading signs)
03 - gray
04 - red (Female colour}
05 - orange
06 - dark green
07 - cyan
08 - dark blue (Male colour)
09 - lighter blue
0b - bluish grey
Another tut done! What next? Weather!

Tutorial Eleven: Weather!
This is pretty simple really. First, you need to knwo these hex numbers:
Quote:
0 = Normal
3 = Rain
4 = Snowflakes
5 = Thunderstorm
6 = Fog
7 = Ash
8 = Sandstorm
9 = Fog 2
A = Fog
B = Dark
C = Hot sun
D = Thunderstorm 2
E = Underwater
Okay, now you need to put it into it's script.
Code:
setweather 0xB
doweather
It is even possible (If you can script that well )
to use this code in R/S/E to make a Day/Night system. To make the weather stop, make another part of the script go to 'Normal' weather.
Whats next?
Wildbattles?
Okay...

Tutorial Twelve: Wildbattles!
Back in a sec... K, I'm back! Yeah, I'm gonna try to teach you some wildbattle scripts. Let's go!!!
First you need to know the Pokemon's cry.
Code:
cry [Pokemon's Number]
Pretty long script, isn't it? Yes, I better show you what it looks like if there was sometihng there.
Code:
cry 151
That will make my fave pokemon, Mew, cry. Now for the rest of the script...
We need to make the wildbattle. You can refer back to tutorial siz to get the Pokemon's numbers to make the cry script and the wildbattle script. Here is your wildbattle script:
Code:
wildbattle [Pokemon's Number] [Pokemon's Level] [Terrain]
Wait? Terrain? Oh, I see I need to give you a list of terrains.
Code:
0 = grass
1 = water
2 = rock
3 = sand
So here is the script I want for it....
Code:
wildbattle 151 30 0
That will make me battle a level 30 Mew in some grass. Now here is the whole script:
Code:
#org $Wildbattle
lock
faceplayer
cry 5
message $mewcry
$mewcry 1 = Mew: Lalalala!
boxset 6
checkflag 0x500
if 0x1 goto $Wildbattle
release
end

#org $Wildbattle
lock
wildbattle 151 30 0
release
setflag 0x500
#raw 53
fadescreen 0
end
It works. Tell me if it doesn't Now it is recess time!!

Recess: Putting it all together!
This is kind of like an exam, except you won't be tested.
Huh? Spencer's head is about to explode! Er.. Sorry, I'm random. Let's create a nice script. We want to create.... A Magic Magikarp. But it is so strong, you must battle it, and then it wants to join your team. Also, it has telepathy, which, as text, is shown in light blue. Let's go! Okay, we start with this(As usual):
Code:
#org $Magikarp
lock
faceplayer
message $Telepathy
$Telepathy 1 = MAGIKARP: \c\h01\h09I am using telepathy...\lI would like to battle you...\lAre you ready...\l...\lYes? Prepare for battle!!
boxset 6
wildbattle 129 50 1
And here is the othe half of the script:
Code:
message $Okay
$Okay 1 = \c\h01\h09IYou are very strong...\lI would like to join you\non your adventures!!!
boxset 6
givepokemon 129 50 0
message $Magikarp
$Magikarp 1 = MAGIKARP joined your party!!
release
end
That is another tut finished! Next up: Money (Yum)



Things to expect in future updates:
-Money Commands
-Coin Case Commands
-Special: Giant scripts
-Special: Field Moves

Does anybody even like it? Maybe the reason it didn't go in is because the mods didn't like it...
__________________
[IMG]http://img19.imageshack.us/img19/3708/****p.png[/IMG] <wtf? A lugi-oh?
<What the hell did you do to my Arceus?
  #2777    
Old November 2nd, 2007, 06:40 PM
Darke Hawke's Avatar
Darke Hawke
Trainer of the Shadows
 
Join Date: Jul 2007
Age: 21
Gender:
Nature: Lax
Send a message via AIM to Darke Hawke
Quote:
Originally Posted by spenceroone3 View Post
Uhhh... Why isn't my tutorial appearing in the Documents and Tutorials section? Here it is...
Spoiler:
Well, I thought about it, and since scripting is the hardest part of Pokemon Hacking, I'm going to start a GIANT tutorial on how to script. It is all done on Poke script, so I think you better download that first.
Here goes...

1st Tutorial: Simple talking script!
First open note pad and write this down:
Code:
#org $Showtext
That will start the script. the $ sign goes in front off all offsets.
Then do this:
Code:
lock
faceplayer
That makes the person who you are talking to turn to face you. If they are the type that looks around, or walks around, lock keeps them in place.
Now onto the message:
Code:
message $Hello
$Hello 1 = How ya going?\pGood? That's awesome!!
boxset 6
Remember the $ sign goes in front of all offsets. You can make any type of talking script just by editing the talking part. /p means new paragraph, /n means next line, and /l is a new paragraph but with a different effect to the /p one. Boxset 6 is the type of Message box it is in. Boxset 6 is the normal text box. Boxset 5 is the Yes/No textbox.
Now we better end this script:
Code:
release
end
Release is the opposite of lock and faceplayer, and end MUST be used to end the script, or else.
Here is the complete script:
Code:
#org $Showtext
lock
faceplayer
message $Hello
$Hello 1 = How ya going?\pGood? That's awesome!!
boxset 6
release
end

2nd Tutorial:Yes/No script!
Open notepad and do all of what I told you in the last tut.
Make three things a person could say, maybe these(This is not how you put them into a script):
Code:
Are you dumb??
If Yes,: Hahaha!
If No, : Yes you are!!
Now, to put them into a talking script, write all this up:
Code:
#org $Sillyquestion
lock
faceplayer
message $Aredumb
$Aredumb 1 = Are you dumb??
boxset 5
compare LASTRESUILT B_TRUE
if B_False goto $Yesuare
message $Laugh
$Laugh 1 = Hahaha!
Boxset 6
release
end

#org $Yesuare
lock
faceplayer
message $Yesuare2
$Yesuare2 1 = Oh yes you are!!
boxset 6
release
end
Notice how I used Boxset 5 instead of Boxset 6 at the question?

For the next tut, you will need to have
Tutorial Three: Movement Scripts
Yes yes, I suck at these. They probably won't even work
but I'll have a try at them.
The following script will make your player walk up three steps.
Customize it a bit. I'll explain a bit more at the end.

Code:
#org $Move1
checkflag 0x200
if B_TRUE goto $Done
applymovement 0xFF $move
pause 0x30
setflag 0x200
end

#org $Done
end

#org $move
$move 1; #Binary 0x11 0x11 0x11 0xFE
The pause 0x30 is the number of steps taken x10, making 30. 0xFE MUST go at the end of every list of movements. Refer to the page I posted before this tut to customize this. Remember this: Applymovement 0xFF

The 0xFF makes the main character move. For someone else to move, put their map number in instead, for example, if it was this:
Code:
applymovement 0x01 $Whogivesthe
Then the person with map number 0x01 would move.
Also, to make these things move, you must place a script. When you stand on it, it is supposed to move you forward 3 steps. To make them work, you will notice something like this in A-Map:
Code:
Unknown: 00 00
Var Number: 00 00
Change that to this:
Code:
Unknown: 03 00
Var Number: 50 40
And so ends yet another tut!!

Tutorial Five: Giveitem scripts
These are pretty easy, but before you go, you'll need a list of items.
Code:
    * 1 Master Ball
    * 2 Ultra Ball
    * 3 Great Ball
    * 4 Poké Ball
    * 5 Safari Ball
    * 6 Net Ball
    * 7 Dive Ball
    * 8 Nest Ball
    * 9 Repeat Ball
    * A Timer Ball
    * B Luxury Ball
    * C Premier Ball
    * D Potion
    * E Antidote
    * F Burn Heal
    * 10 Ice Heal
    * 11 Awakening
    * 12 Parlyz Heal
    * 13 Full Restore
    * 14 Max Potion
    * 15 Hyper Potion
    * 16 Super Potion
    * 17 Full Heal
    * 18 Revive
    * 19 Max Revive
    * 1A Fresh Water
    * 1B Soda Pop
    * 1C Lemonade
    * 1D Moomoo Milk
    * 1E Energypowder
    * 1F Energy Root
    * 20 Heal Powder
    * 21 Revival Herb
    * 22 Ether
    * 23 Max Ether
    * 24 Elixir
    * 25 Max Elixir
    * 26 Lava Cookie
    * 27 Blue Flute
    * 28 Yellow Flute
    * 29 Red Flute
    * 2A Black Flute
    * 2B White Flute
    * 2C Berry Juice
    * 2D Sacred Ash
    * 2E Shoal Salt
    * 2F Shoal Shell
    * 30 Red Shard
    * 31 Blue Shard
    * 32 Yellow Shard
    * 33 Green Shard
    * 3F HP Up
    * 40 Protein
    * 41 Iron
    * 42 Carbos
    * 43 Calcium
    * 44 Rare Candy
    * 45 PP Up
    * 46 Zinc
    * 47 PP Max
    * 49 Guard Spec.
    * 4A Dire Hit
    * 4B X Attack
    * 4C X Defend
    * 4D X Speed
    * 4E X Accuracy
    * 4F X Special
    * 50 Poké Doll
    * 51 Fluffy Tail
    * 53 Super Repel
    * 54 Max Repel
    * 55 Escape Rope
    * 56 Repel
    * 5D Sun Stone
    * 5E Moon Stone
    * 5F Fire Stone
    * 60 Thunderstone
    * 61 Water Stone
    * 62 Leaf Stone
    * 67 Tinymushroom
    * 68 Big Mushroom
    * 6A Pearl
    * 6B Big Pearl
    * 6C Stardust
    * 6D Star Piece
    * 6E Nugget
    * 6F Heart Scale
    * 79 Orange Mail
    * 7A Harbor Mail
    * 7B Glitter Mail
    * 7C Mech Mail
    * 7D Wood Mail
    * 7E Wave Mail
    * 7F Bead Mail
    * 80 Shadow Mail
    * 81 Tropic Mail
    * 82 Dream Mail
    * 83 Fab Mail
    * 84 Retro Mail
    * 85 Cheri Berry
    * 86 Chesto Berry
    * 87 Pecha Berry
    * 88 Rawst Berry
    * 89 Aspear Berry
    * 8A Leppa Berry
    * 8B Oran Berry
    * 8C Persim Berry
    * 8D Lum Berry
    * 8E Sitrus Berry
    * 8F Figy Berry
    * 90 Wiki Berry
    * 91 Mago Berry
    * 92 Aguav Berry
    * 93 Iapapa Berry
    * 94 Razz Berry
    * 95 Bluk Berry
    * 96 Nanab Berry
    * 97 Wepear Berry
    * 98 Pinap Berry
    * 99 Pomeg Berry
    * 9A Kelpsy Berry
    * 9B Qualot Berry
    * 9C Hondew Berry
    * 9D Grepa Berry
    * 9E Tamato Berry
    * 9F Cornn Berry
    * A0 Magost Berry
    * A1 Rabuta Berry
    * A2 Nomel Berry
    * A3 Spelon Berry
    * A4 Pamtre Berry
    * A5 Watmel Berry
    * A6 Durin Berry
    * A7 Belue Berry
    * A8 Liechi Berry
    * A9 Ganlon Berry
    * AA Salac Berry
    * AB Petaya Berry
    * AC Apicot Berry
    * AD Lansat Berry
    * AE Starf Berry
    * AF Enigma Berry
    * B3 Brightpowder
    * B4 White Herb
    * B5 Macho Brace
    * B6 Exp. Share
    * B7 Quick Claw
    * B8 Soothe Bell
    * B9 Mental Herb
    * BA Choice Band
    * BB King's Rock
    * BC Silverpowder
    * BD Amulet Coin
    * BE Cleanse Tag
    * BF Soul Dew
    * C0 Deepseatooth
    * C1 Deepseascale
    * C2 Smoke Ball
    * C3 Everstone
    * C4 Focus Band
    * C5 Lucky Egg
    * C6 Scope Lens
    * C7 Metal Coat
    * C8 Leftovers
    * C9 Dragon Scale
    * CA Light Ball
    * CB Soft Sand
    * CC Hard Stone
    * CD Miracle Seed
    * CE Blackglasses
    * CF Black Belt
    * D0 Magnet
    * D1 Mystic Water
    * D2 Sharp Beak
    * D3 Poison Barb
    * D4 Nevermeltice
    * D5 Spell Tag
    * D6 Twistedspoon
    * D7 Charcoal
    * D8 Dragon Fang
    * D9 Silk Scarf
    * DA Up-grade
    * DB Shell Bell
    * DC Sea Incense
    * DD Lax Incense
    * DE Lucky Punch
    * DF Metal Powder
    * E0 Thick Club
    * E1 Stick
    * FE Red Scarf
    * FF Blue Scarf
    * 100 Pink Scarf
    * 101 Green Scarf
    * 102 Yellow Scarf
    * 103 Mach Bike
    * 104 Coin Case
    * 105 Itemfinder
    * 106 Old Rod
    * 107 Good Rod
    * 108 Super Rod
    * 109 S.S. Ticket
    * 10A Contest Pass
    * 10C Wailmer Pail
    * 10D Devon Goods
    * 10E Soot Sack
    * 10F Basement Key
    * 110 Acro Bike
    * 111 PokéBlock Case
    * 112 Letter
    * 113 Eon Ticket
    * 114 Red Orb
    * 115 Blue Orb
    * 116 Scanner
    * 117 Go-goggles
    * 118 Meteorite
    * 119 Rm. 1 Key
    * 11A Rm. 2 Key
    * 11B Rm. 4 Key
    * 11C Rm. 6 Key
    * 11D Storage Key
    * 11E Root Fossil
    * 11F Claw Fossil
    * 120 Devon Scope
    * 121 TM01
    * 122 TM02
    * 123 TM03
    * 124 TM04
    * 125 TM05
    * 126 TM06
    * 127 TM07
    * 128 TM08
    * 129 TM09
    * 12A TM10
    * 12B TM11
    * 12C TM12
    * 12D TM13
    * 12E TM14
    * 12F TM15
    * 130 TM16
    * 131 TM17
    * 132 TM18
    * 133 TM19
    * 134 TM20
    * 135 TM21
    * 136 TM22
    * 137 TM23
    * 138 TM24
    * 139 TM25
    * 13A TM26
    * 13B TM27
    * 13C TM28
    * 13D TM29
    * 13E TM30
    * 13F TM31
    * 140 TM32
    * 141 TM33
    * 142 TM34
    * 143 TM35
    * 144 TM36
    * 145 TM37
    * 146 TM38
    * 147 TM39
    * 148 TM40
    * 149 TM41
    * 14A TM42
    * 14B TM43
    * 14C TM44
    * 14D TM45
    * 14E TM46
    * 14F TM47
    * 150 TM48
    * 151 TM49
    * 152 TM50
    * 153 HM01
    * 154 HM02
    * 155 HM03
    * 156 HM04
    * 157 HM05
    * 158 HM06
    * 159 HM07
    * 15A HM08
    * 15D Oak's Parcel
    * 15E Poké Flute
    * 15F Secret Key
    * 160 Bike Voucher
    * 161 Gold Teeth
    * 162 Old Amber
    * 163 Card Key
    * 164 Lift Key
    * 165 Helix Fossil
    * 166 Dome Fossil
    * 167 Silph Scope
    * 168 Bicycle
    * 169 Town Map
    * 16A VS Seeker
    * 16B Fame Checker
    * 16C TM Case
    * 16D Berry Pouch
    * 16E Teachy TV
    * 16F Tri-pass
    * 170 Rainbow Pass
    * 171 Tea
    * 172 Mysticticket
    * 173 Auroraticket
    * 174 Powder Jar
    * 175 Ruby
    * 176 Sapphire
Say we wanted to make a person give you a free potion.
This is a Yes/No script to give you one.
Code:
#org $Sillyquestion
lock
faceplayer
checkflag 0x200
If B_TRUE goto $Done
message $Freepo
$Freepo 1 = Would you like a free POTION?
boxset 5
compare LASTRESUILT B_TRUE
if B_False goto $Nothanks1
message $Hereitis
$Hereitis 1 = Here ya go!
Boxset 6
giveitem 0xD 0x1
setflag 0x200
release
end

#org $Nothanks1
lock
faceplayer
message $Nothanks
$Nothanks 1 = Oh yes you are!!
boxset 6
release
end

#org $Done
lock
faceplayer
message $Noneleft
$Noneleft 1 = I'm sorry, I don't have\nany POTIONS left.
release
end
The last bit at the end shows what happens if you already have the potion. The giveitem 0xD 0x1 part is, obviously, you get 1 potion. Changing that will give you a different item or a different number of them. You don't have to write in "[PLAYER] has recieved POTION" because giveitem does that automatically. The checkflag at the start makes sure you don't get x999 potions :lol:. And so I have ended another great tut! Next up in line: Give Pokemon Scripts!

Tutorial Six: Give Pokemon Scripts!
First you will need a list of Pokemon. Lucky for you, I have one.
Code:
#define PKMN_MISSINGNO 0

'.-------------------------.
'| KANTO |
''-------------------------'
#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_NIDORAN_F 29
#define PKMN_NIDORINA 30
#define PKMN_NIDOQUEEN 31
#define PKMN_NIDORAN_M 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_MR_MIME 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_HO-OH 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
Now that you have that, you must create the small script. I want a Charmander, so I shall make this:
Code:
givepokemon 4 5 0
That gives me a Charmander l5 not holding anything. The first number is the number of the Pokemon, the second number is the Lv, and the third number is the number of the item!!! Oh, and it won't show anything like "You recieved the CHARMANDER" you actually have to put that in! Here is the script in action, taken from Pokemon PinkMew:
Code:
#org $begin
lock
faceplayer
checkflag 0x232
if B_true goto $gotit
message $q
boxset 6
message $mygod
boxset 6
givepokemon 4 5 0
message $NameCharm
boxset 5
setflag 0x232
setflag 0x828
release
end

#org $gotit
message $hi
boxset 6
release
end

#org $hi
$hi 1 = How's my old CHARMANDER?

#org $q
$q 1 = To get past here, you'll\nneed a pokemon.\pTake this CHARMANDER.

#org $mygod
$mygod 1 = You received the CHARMANDER!

message $NameCharm
$NameCharm 1 = Would You like to give \nCHARMANDER a name?
boxset 5
compare LASTRESULT 1
if b_False goto $seeya
Namepokemon
setflag 0x203

message $seeya
$seeya 1 = Thanks!
release
end
Tutorial Seven: Flags!
This will be short since it is only about flags!!
Okay, the effect of flags:

Sorry, G2g, this tut isn't finsihed yet, I gotta go to school!

Exam One: Puttin' it together!
Scenario: A proffesor would like a Celebi and a Potion. He also wants someone saying: Make a script for him that gives him it!
How to get your results: Post in this thread your script! I'll fix it for you, improve it, and give it a rating out of 10! If you get less than 5/10, I recommend that you skim over the tutorials again!

Tutorial Eight: Warps
You will need this for scripts like movement scripts leading to a house.
Here is a good base for one of these:
Code:
warp 0x[map bank] 0x[map] 0x[warp]
Now, here is it leading to PALLET TOWN:
Code:
warp 0x30 0x0 0x1
You can put that in ANY of your scripts. Me? I haven't used it yet!!!

Tutorial Nine: Randomization!
As of my latest sucess on the Script/Discussion/Sharing thread, I credit Dabomstew for helping me peronally with this one.

You're probably wondering were you would need this. The slowbro in Cerulean. Stuff like that. First, do this:
Code:
#org $Begin
lock
faceplayer
#raw 0x8F
#raw 0x04 0x00
copyvar 0x8008 0x800D
That extra part will begin the randomziation. But you then need to add this:
Code:
compare 0x8008 0x0
if 0x1 call $Yes
compare 0x8008 0x1
if 0x1 call $No
release
end

$org $Yes
$Yes 1 = Yes! Yes! Yes!
boxset 6
release
end

#org $No
$No 1 = No! No! No!
boxset 6
release
end
Tutorial Ten: Text Colour!
Even my favorite hacks, Shiny Gold and Pokemon White, don't have these, while hacks like liquid ocean (Correct me if its wrong, I can't rememeber) have tons of it. I'm not sure if their creators are just lazy, or just don't know how. Well, here is my tut. first write up the beginninng of the script:
Code:
#org $Hello
lock
faceplayer
message $Color
$Color 1 = ??
boxset 6
release
end
Well that is the start, I better show you how to add colouring. First get this command:
Code:
\c\h01\hXX
Put it in this part of our script:
Code:
$Color 1 = \c\h01\h09How are you going?
Notice how I put that 09 after the 'H'? That is the colour's number. Here is some more:
Another tut done! What next? Weather!

Tutorial Eleven: Weather!
This is pretty simple really. First, you need to knwo these hex numbers:

Okay, now you need to put it into it's script.
Code:
setweather 0xB
doweather
It is even possible (If you can script that well )
to use this code in R/S/E to make a Day/Night system. To make the weather stop, make another part of the script go to 'Normal' weather.
Whats next?
Wildbattles?
Okay...

Tutorial Twelve: Wildbattles!
Back in a sec... K, I'm back! Yeah, I'm gonna try to teach you some wildbattle scripts. Let's go!!!
First you need to know the Pokemon's cry.
Code:
cry [Pokemon's Number]
Pretty long script, isn't it? Yes, I better show you what it looks like if there was sometihng there.
Code:
cry 151
That will make my fave pokemon, Mew, cry. Now for the rest of the script...
We need to make the wildbattle. You can refer back to tutorial siz to get the Pokemon's numbers to make the cry script and the wildbattle script. Here is your wildbattle script:
Code:
wildbattle [Pokemon's Number] [Pokemon's Level] [Terrain]
Wait? Terrain? Oh, I see I need to give you a list of terrains.
Code:
0 = grass
1 = water
2 = rock
3 = sand
So here is the script I want for it....
Code:
wildbattle 151 30 0
That will make me battle a level 30 Mew in some grass. Now here is the whole script:
Code:
#org $Wildbattle
lock
faceplayer
cry 5
message $mewcry
$mewcry 1 = Mew: Lalalala!
boxset 6
checkflag 0x500
if 0x1 goto $Wildbattle
release
end

#org $Wildbattle
lock
wildbattle 151 30 0
release
setflag 0x500
#raw 53
fadescreen 0
end
It works. Tell me if it doesn't Now it is recess time!!

Recess: Putting it all together!
This is kind of like an exam, except you won't be tested.
Huh? Spencer's head is about to explode! Er.. Sorry, I'm random. Let's create a nice script. We want to create.... A Magic Magikarp. But it is so strong, you must battle it, and then it wants to join your team. Also, it has telepathy, which, as text, is shown in light blue. Let's go! Okay, we start with this(As usual):
Code:
#org $Magikarp
lock
faceplayer
message $Telepathy
$Telepathy 1 = MAGIKARP: \c\h01\h09I am using telepathy...\lI would like to battle you...\lAre you ready...\l...\lYes? Prepare for battle!!
boxset 6
wildbattle 129 50 1
And here is the othe half of the script:
Code:
message $Okay
$Okay 1 = \c\h01\h09IYou are very strong...\lI would like to join you\non your adventures!!!
boxset 6
givepokemon 129 50 0
message $Magikarp
$Magikarp 1 = MAGIKARP joined your party!!
release
end
That is another tut finished! Next up: Money (Yum)



Things to expect in future updates:
-Money Commands
-Coin Case Commands
-Special: Giant scripts
-Special: Field Moves

Does anybody even like it? Maybe the reason it didn't go in is because the mods didn't like it...
I thought it was pretty good... maybe it didn;t go up either because, a mod hasn't looked at it yet, or there is already a tutorial like it? Idk, you should probably get a second opinion
__________________

PM me if you want to help.

Spoiler:
Current Team: Just me (Recruiting)

Needed:
Someone to insert this image onto the title screen of my hack: k/MewTwo.png[/url]
  #2778    
Old November 2nd, 2007, 08:22 PM
spenceroone3's Avatar
spenceroone3
<he eats lots of burgers.
 
Join Date: Aug 2007
Location: In your closet
Gender:
Nature: Hasty
Send a message via Windows Live Messenger to spenceroone3
Okay, I discovered something. The greatest amount of data your ROM can be expanded to is 32MB. Anymore and it will no work. I'm going to post a bit more programming later :D
__________________
[IMG]http://img19.imageshack.us/img19/3708/****p.png[/IMG] <wtf? A lugi-oh?
<What the hell did you do to my Arceus?
  #2779    
Old November 2nd, 2007, 09:23 PM
Blazichu's Avatar
Blazichu
Bahhhh?
 
Join Date: Mar 2006
Location: The ground?
Age: 24
Gender: Male
Send a message via Windows Live Messenger to Blazichu
Quote:
Originally Posted by light_trainer921
That's strange... I counted the sprite I tried to import at OWEditor carefully and it's 16(I edited it first before counting it).....
Did you make sure to count the background colour also? It counts as one of the colours.
__________________

←(left) the online world for life(MSN, PC etc.)~
  #2780    
Old November 2nd, 2007, 11:04 PM
Binary's Avatar
Binary
え?
 
Join Date: Aug 2007
Age: 20
Quote:
Originally Posted by thethethethe View Post
Ummm, I think it's EAE094
.
Thanks alot, i really needed that.
And can you tell me the one for the background in the intro
when prof. oak speaks?
__________________
  #2781    
Old November 2nd, 2007, 11:12 PM
Blazichu's Avatar
Blazichu
Bahhhh?
 
Join Date: Mar 2006
Location: The ground?
Age: 24
Gender: Male
Send a message via Windows Live Messenger to Blazichu
@Celebi_XD: The background is at 0x46056A
__________________

←(left) the online world for life(MSN, PC etc.)~
  #2782    
Old November 2nd, 2007, 11:48 PM
Darke Hawke's Avatar
Darke Hawke
Trainer of the Shadows
 
Join Date: Jul 2007
Age: 21
Gender:
Nature: Lax
Send a message via AIM to Darke Hawke
Is it possible to insert G/S/C music in my fire red hack? If so, does anyone know where I can get the downloads, and how to replace them in the game?
__________________

PM me if you want to help.

Spoiler:
Current Team: Just me (Recruiting)

Needed:
Someone to insert this image onto the title screen of my hack: k/MewTwo.png[/url]
  #2783    
Old November 2nd, 2007, 11:50 PM
Blazichu's Avatar
Blazichu
Bahhhh?
 
Join Date: Mar 2006
Location: The ground?
Age: 24
Gender: Male
Send a message via Windows Live Messenger to Blazichu
@Darke Hawke: You need to find Midi2Gba and have a look on google for some midi-related GSC music.
__________________

←(left) the online world for life(MSN, PC etc.)~
  #2784    
Old November 3rd, 2007, 12:14 AM
TSK's Avatar
TSK
Feeling appreaciated =D
 
Join Date: Jun 2007
Gender:
Nature: Timid
Quote:
Originally Posted by yung stunna View Post
I changed the borderblock and i still got that same error
I dunno why FR does this but it happens with all maps you insert yourself...You can't fix it besides making the map larger and dissallowing the player to get close enough to the borderblock to view it.
  #2785    
Old November 3rd, 2007, 12:22 AM
Binary's Avatar
Binary
え?
 
Join Date: Aug 2007
Age: 20
Quote:
Originally Posted by Blazichu View Post
@Celebi_XD: The background is at 0x46056A
Thanks alot Blazichu
It really helped with my hack
__________________
  #2786    
Old November 3rd, 2007, 12:23 AM
light_trainer921's Avatar
light_trainer921
Flamethrower Helper
 
Join Date: Nov 2006
Location: Treasure Town at the human world
Age: 19
Gender:
Nature: Timid
Quote:
Originally Posted by Blazichu View Post
Did you make sure to count the background colour also? It counts as one of the colours.
The BG color is the same as one of the colors in the sprite so yes.

I also got 2 questions:
1. Is it possible to edit OW palletes using APE?

2. I wanted Kanto to have extra maps but I'm saving some for Johto. Is it possible that I add a map(not replace a map) to a bank?
__________________
  #2787    
Old November 3rd, 2007, 12:27 AM
Blazichu's Avatar
Blazichu
Bahhhh?
 
Join Date: Mar 2006
Location: The ground?
Age: 24
Gender: Male
Send a message via Windows Live Messenger to Blazichu
Quote:
Originally Posted by light_trainer921 View Post
The BG color is the same as one of the colors in the sprite so yes.

I also got 2 questions:
1. Is it possible to edit OW palletes using APE?

2. I wanted Kanto to have extra maps but I'm saving some for Johto. Is it possible that I add a map(not replace a map) to a bank?
1. Yes, just find the offset and load it.

2. Yes, there are two ways, doing it via Advance Map I have heard some rumours that border blocks glitch or don't work properly and the other way is by adding more using hex.
__________________

←(left) the online world for life(MSN, PC etc.)~
  #2788    
Old November 3rd, 2007, 12:32 AM
light_trainer921's Avatar
light_trainer921
Flamethrower Helper
 
Join Date: Nov 2006
Location: Treasure Town at the human world
Age: 19
Gender:
Nature: Timid
Quote:
Originally Posted by Blazichu View Post
1. Yes, just find the offset and load it.

2. Yes, there are two ways, doing it via Advance Map I have heard some rumours that border blocks glitch or don't work properly and the other way is by adding more using hex.
1. What's the offset? I'm not good at finding pallete offsets.

2. How can I add using hex?
__________________

Last edited by light_trainer921; November 3rd, 2007 at 01:16 AM.
  #2789    
Old November 3rd, 2007, 03:36 AM
TSK's Avatar
TSK
Feeling appreaciated =D
 
Join Date: Jun 2007
Gender:
Nature: Timid
Does anyone know how to fix this:
Spoiler:

In other words,can you make BG1 appear below the player sprite?

Last edited by TSK; November 3rd, 2007 at 04:05 AM.
  #2790    
Old November 3rd, 2007, 04:10 AM
Blazichu's Avatar
Blazichu
Bahhhh?
 
Join Date: Mar 2006
Location: The ground?
Age: 24
Gender: Male
Send a message via Windows Live Messenger to Blazichu
Quote:
Originally Posted by light_trainer921 View Post
1. What's the offset? I'm not good at finding pallete offsets.

2. How can I add using hex?
1. Each overworld has a different offset, to find the Pallete, in VBA go Tools> Pallete Viewer, then reverse the bytes of the colours you want eg. Pallete Viewer says 8A75, reverse that into 758A and then search for those 2 bytes in hex.

2. Each map is set up like this:

a)Map Structure: [Pointer to Map][Pointer to Event data][Pointer to Scripts][Pointer to Warps][Music (1-Byte)][Number (2-Byte)][Name (1-Byte)][Cave (1-Byte)][Weather (1-Byte)][Permission byte (1-Byte)][Name of map indicated when entering Yes=01 / No=00 (1-Byte)][Battle type (1-Byte)]

b)Size and Tileset: [X-Size][Y-Size]
[Pointer to border squares][Pointer to Mapdata]
[Pointer to Tileset-1][Pointer to Tileset-2]

c)Border Block: [Top-Left Block][Top-Right Block]
[Bottom-Left Block][Bottom-Right Block]

You would just need to add a new structure, size, tileset and border block and fix up all the pointers so it reads from a certain map.

Quote:
Originally Posted by TSK
Does anyone know how to fix this:
Spoiler:
In the AdvanceMap Block editor, check and see the tile. Under Below/Above make sure to have the tile filled out under Below and not Above. Also make sure the Behaviour-Byte is 00 and the Background-Byte is 00 under both catergories.
__________________

←(left) the online world for life(MSN, PC etc.)~
  #2791    
Old November 3rd, 2007, 04:14 AM
TSK's Avatar
TSK
Feeling appreaciated =D
 
Join Date: Jun 2007
Gender:
Nature: Timid
Quote:
Originally Posted by Blazichu View Post



In the AdvanceMap Block editor, check and see the tile. Under Below/Above make sure to have the tile filled out under Below and not Above. Also make sure the Behaviour-Byte is 00 and the Background-Byte is 00 under both catergories.
It's a two part tile I made myself,I'll see what I can do.
  #2792    
Old November 3rd, 2007, 04:23 AM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Hey all. Good day. It's me again!

I just wanna know three things for today...

(1) How many PKMN Contest Buildings are there in a Ruby ROM..?
(2) How many RIBBONs are there in a Ruby ROM..?
(3) While I was double-check my hack, I sometimes hear some PKMN Cries in the background music... For instance, I heard a Skarmory cry in a cave music and a Plusle cry in New Mauville's background music... Is that normal..?

That's all and thanks in advance! Good day!
__________________
  #2793    
Old November 3rd, 2007, 04:30 AM
Haile Selassie IV's Avatar
Haile Selassie IV
.
 
Join Date: Mar 2007
Location: Aker, Amsterdam, Noord-Holland, The Netherlands, Europe, The Earth.
Age: 21
Nature: Modest
1. 4
2. 24(contest)
3. Jep. In the normal games you can hear it to
__________________
Cna yuo raed tihs? Olny 55% of plepoe can.

I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.
  #2794    
Old November 3rd, 2007, 04:32 AM
Blazichu's Avatar
Blazichu
Bahhhh?
 
Join Date: Mar 2006
Location: The ground?
Age: 24
Gender: Male
Send a message via Windows Live Messenger to Blazichu
Quote:
Originally Posted by destinedjagold View Post
Hey all. Good day. It's me again!

I just wanna know three things for today...

(1) How many PKMN Contest Buildings are there in a Ruby ROM..?
(2) How many RIBBONs are there in a Ruby ROM..?
(3) While I was double-check my hack, I sometimes hear some PKMN Cries in the background music... For instance, I heard a Skarmory cry in a cave music and a Plusle cry in New Mauville's background music... Is that normal..?

That's all and thanks in advance! Good day!
1. There are four Contest halls in Verdanturf(Normal Rank), Fallarbor(Super Rank), Slateport(Hyper Rank) and Lilycove(Master Rank).
2. Ribbons you can get in a Ruby:
Beating the Elite Four
Coolness Contest Normal Level
Beauty Contest Normal Level
Smart Contest Normal Level
Toughness Contest Normal Level
Cuteness Contest Normal Level
Coolness Contest Super Level
Beauty Contest Super Level
Smart Contest Super Level
Toughness Contest Super Level
Cuteness Contest Super Level
Coolness Contest Hyper Level
Beauty Contest Hyper Level
Smart Contest Hyper Level
Toughness Contest Hyper Level
Cuteness Contest Hyper Level
Coolness Contest Master Level
Beauty Contest Master Level
Smart Contest Master Level
Toughness Contest Master Level
Cuteness Contest Master Level
Girl in Slateport Market
3. That is normal...don't go hearing things xD
__________________

←(left) the online world for life(MSN, PC etc.)~
  #2795    
Old November 3rd, 2007, 04:45 AM
Haile Selassie IV's Avatar
Haile Selassie IV
.
 
Join Date: Mar 2007
Location: Aker, Amsterdam, Noord-Holland, The Netherlands, Europe, The Earth.
Age: 21
Nature: Modest
one extra ribbon: Modeling ribbon. Win the masterrank twice, or with many more points than your opponents
__________________
Cna yuo raed tihs? Olny 55% of plepoe can.

I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.
  #2796    
Old November 3rd, 2007, 05:59 AM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Hey, thanks guys! That really cleared some confusion scrambling in my head... :D

Thanks again!
__________________
  #2797    
Old November 3rd, 2007, 01:44 PM
light_trainer921's Avatar
light_trainer921
Flamethrower Helper
 
Join Date: Nov 2006
Location: Treasure Town at the human world
Age: 19
Gender:
Nature: Timid
Quote:
Originally Posted by Blazichu View Post
2. Each map is set up like this:

a)Map Structure: [Pointer to Map][Pointer to Event data][Pointer to Scripts][Pointer to Warps][Music (1-Byte)][Number (2-Byte)][Name (1-Byte)][Cave (1-Byte)][Weather (1-Byte)][Permission byte (1-Byte)][Name of map indicated when entering Yes=01 / No=00 (1-Byte)][Battle type (1-Byte)]

b)Size and Tileset: [X-Size][Y-Size]
[Pointer to border squares][Pointer to Mapdata]
[Pointer to Tileset-1][Pointer to Tileset-2]

c)Border Block: [Top-Left Block][Top-Right Block]
[Bottom-Left Block][Bottom-Right Block]

You would just need to add a new structure, size, tileset and border block and fix up all the pointers so it reads from a certain map.
Thanks but I figure out how to add maps in A-Map.
__________________
  #2798    
Old November 3rd, 2007, 03:50 PM
OsherStyle
Beginning Trainer
 
Join Date: Oct 2007
Help!
no metter wich script i ussed, that looking that:

i ussing a script giving poke, i got the charmander both that in jibrish X:
anyone can help me please?
thank
  #2799    
Old November 3rd, 2007, 04:20 PM
Darke Hawke's Avatar
Darke Hawke
Trainer of the Shadows
 
Join Date: Jul 2007
Age: 21
Gender:
Nature: Lax
Send a message via AIM to Darke Hawke
does anyone have some pokmon g/s/c music downloads, or a g/s/c music patch? Any would be nice, but a complete set would be better thnxs in advance, and sory if im asking for something illegally
__________________

PM me if you want to help.

Spoiler:
Current Team: Just me (Recruiting)

Needed:
Someone to insert this image onto the title screen of my hack: k/MewTwo.png[/url]

Last edited by Darke Hawke; November 3rd, 2007 at 04:33 PM.
  #2800    
Old November 3rd, 2007, 04:30 PM
Blazichu's Avatar
Blazichu
Bahhhh?
 
Join Date: Mar 2006
Location: The ground?
Age: 24
Gender: Male
Send a message via Windows Live Messenger to Blazichu
Quote:
Originally Posted by OsherStyle
Help!
no metter wich script i ussed, that looking that:

i ussing a script giving poke, i got the charmander both that in jibrish X:
anyone can help me please?
thank
Maybe the Pointer to your script is wrong or script in general is wrong.

Quote:
Originally Posted by Darke Hawke
does anyone have some pokmon g/s/c music downloads? Any would be nice, but a complete set would be better thnxs in advance, and sory if im asking for something illegally
Try vgmusic, they have MIDI files of GSC music.
__________________

←(left) the online world for life(MSN, PC etc.)~
Closed Thread
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 10:42 AM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.