The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.
New threads in this forum are to be approved by a moderator before they are displayed.

Closed Thread
 
Thread Tools
  #51    
Old February 16th, 2007, 04:03 AM
Christos's Avatar
Christos
Project Shinx
 
Join Date: Feb 2006
Location: Spain, Went's room
Nature: Serious
Send a message via Skype™ to Christos
Here.
Thanks to Tetsuya-san for writing it down.
Code:
0100 = BULBASAUR
0200 = IVYSAUR
0300 = VENESAUR
0400 = CHARMANDER
0500 = CHARMELEON
0600 = CHARIZARD
0700 = SQUIRTLE
0800 = WARTORTLE
0900 = BLASTOISE
0A00 = CATERPIE
0B00 = METAPOD
0C00 = BUTTERFREE
0D00 = WEEDLE
0E00 = KAKUNA
0F00 = BEEDRILL
1000 = PIDGEY
1100 = PIDGEOTTO
1200 = PIDGEOT
1300 = RATTATA
1400 = RATICATE
1500 = SPEAROW
1600 = FEAROW
1700 = EKANS
1800 = ARBOK
1900 = PIKACHU
1A00 = RAICHU
1B00 = SANDSHREW
1C00 = SANDSLASH
1D00 = NIDORAN (FEMALE)
1E00 = NIDORINA
1F00 = NIDOQUEEN
2000 = NIDORAN (MALE)
2100 = NIDORINO
2200 = NIDOKING
2300 = CLEFAIRY
2400 = CLEFABLE
2500 = VULPIX
2600 = NINETALES
2700 = JIGGLYPUFF
2800 = WIGGLYTUFF
2900 = ZUBAT
2A00 = GOLBAT
2B00 = ODDISH
2C00 = GLOOM
2D00 = VILEPLUME
2E00 = PARAS
2F00 = PARASECT
3000 = VENONAT
3100 = VENOMOTH
3200 = DIGLETT
3300 = DUGTRIO
3400 = MEOWTH
3500 = PERSIAN
3600 = PSYDUCK
3700 = GOLDUCK
3800 = MANKEY
3900 = PRIMEAPE
3A00 = GROWLITHE
3B00 = ARCANINE
3C00 = POLIWAG
3D00 = POLIWHIRL
3E00 = POLIWRATH
3F00 = ABRA
4000 = KADABRA
4100 = ALAKAZAM
4200 = MACHOP
4300= MACHOKE
4400 = MACHAMP
4500 = BELLSPROUT
4600 = WEEPINBELL
4700 = VICTREEBELL
4800 = TENTACOOL
4900 = TENTACRUEL
4A00 = GEODUDE
4B00 = GRAVELER
4C00 = GOLEM
4D00 = PONYTA
4E00 = RAPIDASH
4F00 = SLOWPOKE
5000 = SLOWBRO
5100 = MAGNEMITE
5200 = MAGNETON
5300 = FARFETCH'D
5400 = DODUO
5500 = DODRIO
5600 = SEEL
5700 = DEWGONG
5800 = GRIMER
5900 = MUK
5A00 = SHELLDER
5B00 = CLOYSTER
5C00 = GASTLY
5D00 = HAUNTER
5E00 = GENGAR
5F00 = ONIX
6000 = DROWZEE
6100 = HYPNO
6200 = KRABBY
6300 = KINGLER
6400 = VOLTORB
6500 = ELECTRODE
6600 = EXEGGCUTE
6700 = EXEGGUTOR
6800 = CUBONE
6900 = MAROWAK
6A00 = HITMONLEEE
6B00 = HITMONCHAN
6C00 = LICKITUNG
6D00 = KOFFING
6E00 = WEEZING
6F00 = RHYHORN
7000 = RHYDON
7100 = CHANSEY
7200 = TANGELA
7300 = KANGASKHAN
7400 = HORSEA
7500 = SEADRA
7600 = GOLDEEN
7700 = SEAKING
7800 = STARYU
7900 = STARMIE
7A00 = MR. MIME
7B00 = SCYTHER
7C00 = JYNX
7D00 = ELECTABUZZ
7E00 = MAGMAR
7F00 = PINSIR
8000 = TAUROS
8100 = MAGIKARP
8200 = GYARADOS
8300 = LAPRAS
8400 = DITTO
8500 = EEVEE
8600 = VAPOREON
8700 = JOLTEON
8800 = FLAREON
8900 = PORYGON
8A00 = OMANYTE
8B00 = OMASTAR
8C00 = KABUTO
8D00 = KABUTOPS
8E00 = AERODACTYL
8F00 = SNORLAX
9000 = ARTICUNO
9100 = ZAPDOS
9200 = MOLTRES
9300 = DRATINI
9400 = DRAGONAIR
9500 = DRAGONITE
9600 = MEWTWO
9700 = MEW
9800 = CHIKORITA
9900 = BAYLEEF
9A00 = MEGANIUM
9B00 = CYNDAQUIL
9C00 = QUILAVA
9D00 = TYPLOSION
9E00 = TOTODILE
9F00 = CROCONAW
A000 = FERALIGATR
A100 = SENTRET
A200 = FURRET
A300 = HOOTHOOT
A400 = NOCTOWL
A500 = LEDYBA
A600 = LEDIAN
A700 = SPINARAK
A800 = ARIADOS
A900 = CROBAT
AA00 = CHINCHOU
AB00 = LANTURN
AC00 = PICHU
AD00 = CLEFFA
AE00 = IGGLYBUFF
AF00 = TOGEPI
B000 = TOGETIC
B100 = NATU
B200 = XATU
B300 = MAREEP
B400 = FLAAFFY
B500 = AMPHAROS
B600 = BELLOSSOM
B700 = MARRILL
B800 = AZUMARILL
B900 = SUDOWOODO
BA00 = POLITOED
BB00 = HOPPIP
BC00 = SKI PLOOM
BD00 = JUMPLUFF
BE00 = AIPOM
BF00 = SUNKERN
C000 = SUNFLORA
C100 = YANMA
C200 = WOOPER
C300 = QUAGSIRE
C400 = ESPEON
C500 = UMBREON
C600 = MURKROW
C700 = SLOWKING
C800 = MISDREAVUS
C900 = UNOWN
CA00 = WOBBUFFET
CB00 = GIRAFARIG
CC00 = PINECO
CD00 = FORRETRESS
CE00 = DUNSPARCE
CF00 = GLIGAR
D000 = STEELIX
D100 = SNUBBULL
D200 = GRANBULL
D300 = QWILFISH
D400 = SCIZOR
D500 = SHUCKLE
D600 = HERACROSS
D700 = SNEASEL
D800 = TEDDIURSA
D900 = URSARING
DA00 = SLUGMA
DB00 = MAGCARGO
DC00 = SWINUB
DD00 = PILOSWINE
DE00 = CORSOLA
DF00 = REMORAID
E000 = OCTILLERY
E100 = DELIBIRD
E200 = MANTINE
E300 = SKARMORY
E400 = HOUNDOUR
E500 = DOUNDOOM
E600 = KINGDRA
E700 = PHANPY
E800 = DONPHAN
E900 = PORYGON2
EA00 = STANTLER
EB00 = SMEARGLE
EC00 = TYROGUE
ED00 = HITMONTOP
EE00 = SMOOCHUM
EF00 = ELEKID
F000 = MAGBY
F100 = MILTANK
F200 = BLISSEY
F300 = RAIKOU
F400 = ENTEI
F500 = SUICINE
F600 = LARVITAR
F700 = PUPITAR
F800 = TYRANITAR
F900 = LUGIA
FA00 = HO-OH
FB00 = CELEBI
1501 = TREECKO
1601 = GROVYLE
1701 = SCEPTILE
1801 = TORCHIC
1901 = COMBUSKEN
1A01 = BLAZIKEN
1B01 = MUDKIP
1C01 = MARSHTOMP
1D01 = SWAMPERT
1E01 = POOCHYENA
1F01 = MIGHTYENA
2001 = ZIGZAGOON
2101 = LINOONE
2201 = WURMPLE
2301 = SILCOON
2401 = BEAUTIFLY
2501 = CASCOON
2601 = DUSTOX
2701 = LOTAD
2801 = LOMBRE
2901 = LUDICOLO
2A01 = SEEDOT
2B01 = NUZLEAF
2C01 = SHIFTRY
2D01 = NINCADA
2E01 = NINJASK
2F01 = SHEDINJA
3001 = TAILLOW
3101 = SWELLOW
3201 = SHROOMISH
3301 = BRELOOM
3401 = SPINDA
3501 = WINGULL
3601 = PELIPPER
3701 = SURSKIT
3801 = MASQUERAIN
3901 = WAILMER
3A01 = WAILORD
3B01 = SKITTY
3C01 = DELCATTY
3D01 = KECLEON
3E01 = BALTOY
3F01 = CLAYDOL
4001 = NOSEPASS
4101 = TORKOAL
4201 = SABLEYE
4301 = BARBOACH
4401 = WHISCASH
4501 = LUVDISC
4601 = CORPHISH
4701 = CRAWDAUNT
4801 = FEEBAS
4901 = MILOTIC
4A01 = CARVANHA
4B01 = SHARPEDO
4C01 = TRAPINCH
4D01 = VIBRAVA
4E01 = FLYGON
4F01 = MAKUHITA
5001 = HARIYAMA
5101 = ELECTRIKE
5201 = MANECTRIC
5301 = NUMEL
5401 = CAMERUPT
5501 = SPHEAL
5601 = SEALEO
5701 = WALREIN
5801 = CACNEA
5901 = CACTURNE
5A01 = SNORUNT
5B01 = GLALIE
5C01 = LUNATONE
5D01 = SOLROCK
5E01 = AZURILL
5F01 = SPOINK
6001 = GRUMPIG
6101 = PLUSLE
6201 = MINUN
6301 = MAWILE
6401 = MEDITITE
6501 = MEDICHAM
6601 = SWABLU
6701 = ALTARIA
6801 = WYNAUT
6901 = DUSKULL
6A01 = DUSCLOPS
6B01 = ROSELIA
6C01 = SLAKOTH
6D01 = VIGOROTH
6E01 = SLAKING
6F01 = GULPIN
7001 = SWALOT
7101 = TROPIUS
7201 = WHISMUR
7301 = LOUDRED
7401 = EXPLOUD
7501 = CLAMPERL
7601 = HUNTAIL
7701 = GOREBYSS
7801 = ABSOL
7901 = SHUPPET
7A01 = BANNETE
7B01 = SEVIPER
7C01 = ZANGOOSE
7D01 = RELICANTH
7E01 = ARON
7F01 = LAIRON
8001 = AGGRON
8101 = CASTFORM
8201 = VOLBEAT
8301 = ILLUMISE
8401 = LILEEP
8501 = CRADILY
8601 = ANORITH
8701 = ARMALDO
8801 = RALTS
8901 = KIRLIA
8A01 = GARDEVOIR
8B01 = BAGON
8C01 = SHELGON
8D01 = SALAMENCE
8E01 = BELDUM
8F01 = METANG
9001 = METAGROSS
9101 = REGI ROCK
9201 = REGICE
9301 = REGI STEEL
9401 = KYOGRE
9501 = GROUDON
9601 = RAYQUAZA
9701 = LATIAS
9801 = LATIOS
9901 = JIRACHI
9A01 = DEOXYS
9B01 = CHIMECHO
__________________
Cooltrainer♂ wants to battle!
Breloom (Lv. 47) - Technician - (Mach Punch, Bullet Seed)
Zangoose (Lv. 49) - Toxic Boost - (Slash, Close Combat)
November 28th / Staff Collab 2014
  #52    
Old February 16th, 2007, 04:45 AM
Blaziken626's Avatar
Blaziken626
Pokemon Black Shadow
 
Join Date: Dec 2006
Age: 20
Gender:
Nature: Mild
Cool! Thanks a bunch! But...I have another problem with a script. Here it is:

Code:
#org 0x900000
trainerbattle 0x00 0xD9 0x900100 0x900200
end

#org 0x900100
= Bring it on!

#org 0x900200
= I lost...
Whenever I use DiamondCutter for this script it says, "Run-time error '6': Overflow". And sorry if I've been asking too many questions. I'm new to this whole scripting thing.

Last edited by Blaziken626; February 16th, 2007 at 05:24 AM.
  #53    
Old February 16th, 2007, 09:36 AM
Deokishisu's Avatar
Deokishisu
Mr. Magius
 
Join Date: Feb 2006
Location: If I'm online, it's a safe bet I'm at a computer.
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by zak View Post
im aslo getting the over flow promblem guys, all the folders and stuf are in the same directory and its all good , this is my script
#org 0x782800
#raw 0x5C
trainerbattle 0x00 0x1A 0x782900 0x783000 0x7831000
end

#org 0x782900
= Bring it on!

#org 0x783000
= I lost...

#org 0x7831000
= We already battled!

but for some reason it aint workin getin message sayin overflow any1?
You put too many numbers for script offsets. Try this one:
Code:
#org 0x782800
#raw 0x5C
trainerbattle 0x00 0x1A 0x829000 0x830000 0x831000
end

#org 0x829000
= Bring it on!

#org 0x830000
= I lost...

#org 0x831000
= We already battled!
Not tested but it should work.

Last edited by Deokishisu; February 16th, 2007 at 09:38 AM. Reason: script mistake. It's fixed now.
  #54    
Old February 16th, 2007, 02:44 PM
Blaziken626's Avatar
Blaziken626
Pokemon Black Shadow
 
Join Date: Dec 2006
Age: 20
Gender:
Nature: Mild
Actually I don't think DiamondCutter is working at all with any trainerbattle scripts. I tried the richboy script that came with EliteMap, and that didn't even work. Oh, and I have another question. Is there a program that lets you search for scripts in the game by using offsets?

Quote:
Originally Posted by Deokishisu View Post
You put too many numbers for script offsets. Try this one:
Code:
#org 0x782800
#raw 0x5C
trainerbattle 0x00 0x1A 0x829000 0x830000 0x831000
end

#org 0x829000
= Bring it on!

#org 0x830000
= I lost...

#org 0x831000
= We already battled!
Not tested but it should work.
And also, I'm basically having the same problem as zak, and I tried that script you gave him and it didn't work.
  #55    
Old February 16th, 2007, 03:30 PM
zak's Avatar
zak
xpert trainer
 
Join Date: Jul 2004
Location: south london
Age: 22
Gender:
Nature: Brave
Send a message via Windows Live Messenger to zak
Quote:
Originally Posted by Blaziken626 View Post
Actually I don't think DiamondCutter is working at all with any trainerbattle scripts. I tried the richboy script that came with EliteMap, and that didn't even work. Oh, and I have another question. Is there a program that lets you search for scripts in the game by using offsets?



And also, I'm basically having the same problem as zak, and I tried that script you gave him and it didn't work.
Yea my trainer battles just giv me the olverflow message 6 wen i try to insert them with diamond cutter, .......
__________________
Hi
  #56    
Old February 16th, 2007, 04:15 PM
Blaziken626's Avatar
Blaziken626
Pokemon Black Shadow
 
Join Date: Dec 2006
Age: 20
Gender:
Nature: Mild
Can someone explain where to put flags into a message script? I can't figure out how to get it to work.
  #57    
Old February 16th, 2007, 10:32 PM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
Not meaning to spam you guys but I've posted an alternative scripting program of my own design in the toolbox. Because it's a complete rewrite it shouldn't have the same bugs that scripted used to have and should be much easier to use.

Please, give it a shot using the script you're having difficulty with and give me feedback!

And you shouldn't need to put that raw statement before the trainerbattle command either.
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto
  #58    
Old February 16th, 2007, 10:45 PM
Blazin
Beginning Trainer
 
Join Date: Aug 2006
Gender:
Nature: Adamant
Hey, this tutorial is amazing. I've done a few simple ones but I'm trying to make a script where you get a super rod. I've done it successfully but it keeps giving super rods if I talk to him again.

I read the setflags part and I was trying to make it work but where ever I put the flag codes it didn't work. Can anyone suggest or tell me where I should place the flag tags in this:

Code:
#org 0x800700
lock
faceplayer
message 0x800800
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x800900
message 0x801000
boxset 0x6
release
end

#org 0x800900
message 0x801100
boxset 0x6
giveitem 0x108 0x1
release
end

#org 0x800800
= I was hired by a scientist to catch\nsome water pokemon from here.\pWould you like to help?

#org 0x801000
= You sure? Well come back any time.

#org 0x801100
= Great. Here, take this fishing\nrod and start catching.
I'm just not sure where to place them so I can get the super rod and when I talk to the fisherman it doesn't give me another one.
  #59    
Old February 16th, 2007, 10:55 PM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
Quote:
Originally Posted by Blazin View Post
Hey, this tutorial is amazing. I've done a few simple ones but I'm trying to make a script where you get a super rod. I've done it successfully but it keeps giving super rods if I talk to him again.

I read the setflags part and I was trying to make it work but where ever I put the flag codes it didn't work. Can anyone suggest or tell me where I should place the flag tags in this:

Code:
#org 0x800700
lock
faceplayer
checkflag 0x100 ' Your flag here
compare LASTRESULT 0x1
if 0x1 goto 0x802000
message 0x800800
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x800900
message 0x801000
boxset 0x6
release
end

#org 0x800900
message 0x801100
boxset 0x6
giveitem 0x108 0x1
setflag 0x100 ' Your flaghere
release
end

#org 0x802000
message 0x802100
boxset 0x1
end

#org 0x800800
= I was hired by a scientist to catch\nsome water pokemon from here.\pWould you like to help?

#org 0x801000
= You sure? Well come back any time.

#org 0x801100
= Great. Here, take this fishing\nrod and start catching.

#org 0x02100
= So, caught anything yet?
I'm just not sure where to place them so I can get the super rod and when I talk to the fisherman it doesn't give me another one.


Ha. I think I can feild this one (yaay I makey a post!)

The bits in bold are the bits I added
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto
  #60    
Old February 16th, 2007, 11:52 PM
Blazin
Beginning Trainer
 
Join Date: Aug 2006
Gender:
Nature: Adamant
EDIT: I got everything to work doing what you suggested Irish Witch, and everything worked except when I talk to the person again no text comes up. It still makes the noise when I press A but no text comes up.

EDIT EDIT: haha. Okay thanks for your help Irish Witch, I changed the boxset you had from 0x1 to 0x6 and it works fine now. Thank you!!

Last edited by Blazin; February 17th, 2007 at 01:00 AM.
  #61    
Old February 17th, 2007, 06:23 AM
Blaziken626's Avatar
Blaziken626
Pokemon Black Shadow
 
Join Date: Dec 2006
Age: 20
Gender:
Nature: Mild
Quote:
Originally Posted by Irish Witch View Post
Not meaning to spam you guys but I've posted an alternative scripting program of my own design in the toolbox. Because it's a complete rewrite it shouldn't have the same bugs that scripted used to have and should be much easier to use.

Please, give it a shot using the script you're having difficulty with and give me feedback!

And you shouldn't need to put that raw statement before the trainerbattle command either.
Not to go off-topic or anything, but I can't figure out how to use PokeScript. What am I supposed to type in on the line after this: http://members.westnet.com.au/comhloiche (I don't know why that became a link.)
I tried typing in the name of my ROM, but it just said: Invalid Command : PKMNRuby.gba
Quote:
EDIT: I got everything to work doing what you suggested Irish Witch, and everything worked except when I talk to the person again no text comes up. It still makes the noise when I press A but no text comes up.
For the offset that has the message, "So, you caught anything yet?", you should put 802100 but I just saw 02100.

Last edited by Blaziken626; February 17th, 2007 at 07:23 AM.
  #62    
Old February 17th, 2007, 06:36 AM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
[QUOTE=Blaziken626;2386448]Not to go off-topic or anything, but I can't figure out how to use PokeScript. What am I supposed to type in on the line after this: <url> (I don't know why that became a link.)
I tried typing in the name of my ROM, but it just said: Invalid Command : PKMNRuby.gba

?? huh ??

Once you've downloaded both the main program and the pkmadv database from my site and installed them the program everything should run from file associations.. Did you read the about section?
In explorer you make youre script using notepad, then in explorer you right mouse click and click compile. A .buf file will be created. It will open in a program that behaves similar to diamond cutter but this is designed to actually insert you're script. if you want to change the offsetts used then use 'destination' from the file menu then click on the offsetts and assign them using the button that has a book on it. You can select multiple offsetts. When done select 'burn' from the file menu.

If you're offsetts from you're script are already the ones you want to use then just select 'burn' from the file menu and tell it the name of the rom.


It's all explained on the web site! And in much better detail then I intend to do here!

- EDIT -
oh, I just checked the post. I wasn't able to put the links on my post in the toolbox so I didn't know he hadn't posted a direct link to the pkmadv database in there. You must get that from the download section to work with rubikon. My program is designed to be usable with multiple scripting engines. It's just that I only have one right now!

There is a way to burn your script directly to rom without using Bufrite but I won't go into that here!
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto

Last edited by Irish Witch; February 17th, 2007 at 07:27 AM. Reason: My Stupidity
  #63    
Old February 17th, 2007, 06:55 AM
Blaziken626's Avatar
Blaziken626
Pokemon Black Shadow
 
Join Date: Dec 2006
Age: 20
Gender:
Nature: Mild
[QUOTE=Irish Witch;2386450]
Quote:
Originally Posted by Blaziken626 View Post
Not to go off-topic or anything, but I can't figure out how to use PokeScript. What am I supposed to type in on the line after this: <url> (I don't know why that became a link.)
I tried typing in the name of my ROM, but it just said: Invalid Command : PKMNRuby.gba

?? huh ??

Once you've downloaded both the main program and the pkmadv database from my site and installed them the program everything should run from file associations.. Did you read the about section?
In explorer you make youre script using notepad, then right mouse click and click compile. A .buf file will be created. It will open in a program that behaves similar to diamond cutter but this is designed to actually insert you're script. if you want to change the offsetts used then use 'destination' from the file menu then click on the offsetts and assign them using the button that has a book on it. You can select multiple offsetts. When done select 'burn' from the file menu.

If you're offsetts from you're script are already the ones you want to use then just select 'burn' from the file menu and tell it the name of the rom.


It's all explained on the web site! And in much better detail then I intend to do here!

- EDIT -
oh, I just checked the post. I wasn't able to put the links on my post in the toolbox so I didn't know he hadn't posted a direct link to the pkmadv database in there. You must get that from the download section to work with rubikon. My program is designed to be usable with multiple scripting engines. It's just that I only have one right now!

There is a way to burn your script directly to rom without using Bufrite but I won't go into that here!
The only part I didn't understand from that was the when you said to click Compile. There is no Compile command in NotePad or PokeScript.
  #64    
Old February 17th, 2007, 07:03 AM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
let me rephrase that paragraph.

Quote:
Once you've downloaded both the main program and the pkmadv database from my site and installed them the program everything should run from file associations.. Did you read the about section?
In explorer you make youre script using notepad, then in explorer you right mouse click and click compile. A .buf file will be created. It will open in a program that behaves similar to diamond cutter but this is designed to actually insert you're script. if you want to change the offsetts used then use 'destination' from the file menu then click on the offsetts and assign them using the button that has a book on it. You can select multiple offsetts. When done select 'burn' from the file menu.
The window that loads up when you run pokescript is the 'Instant Window'.
You can put commands in there but I added the file associations to make it easier...

*sigh*

If you wanted to compile a script from inside script ed you would type:
#encode "drive: \path that can use long file names\script file.rbc" ' or whatever

then if you wanted to stay inside pokescript you could assign/reassign offsetts using the function
#kapush offsettname 0xlocation

and write it using
#kapop "path to rom\rom file.gba"


but it's easier using the file associations.

- Edit -
Various modifications..

*signs again*

Why can't men read the instructions!

AND MAKE SURE YOU DOWNLOAD THE DATABASE!

*signs*

- Edit Again -
And before anybody asks why the instant window is so complicated...
I use the words BETA TEST.
The instant window displays a log of the compilers activities and acts as a way to pass commands directly to the compiler. The compiler can handle decoding both code and text. I late intend to create a picture editor then I will pull all those components into the one program with a proper text editor but for now the instant window provides access to the program and the file associations makes it so easy to use that scripted pales in comparison.

.. or so I thought!
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto

Last edited by Irish Witch; February 17th, 2007 at 07:21 AM. Reason: oh boy....
  #65    
Old February 17th, 2007, 07:40 AM
Blaziken626's Avatar
Blaziken626
Pokemon Black Shadow
 
Join Date: Dec 2006
Age: 20
Gender:
Nature: Mild
Well so-o-orry for being a male!....I'm just kidding. Anyway, thanks. I figured it out. The only problem is I talk to the person who's supposed to battle me, and it just comes up with a bunch of weird symbols in the text box (hex symbols probably) that won't stop. Is is because I put the raw command in the trainerbattle? Because IrishWitch said that it doesn't need the raw command. I'll try getting rid of that and I'll see what I get.

And also, I have this script testing out flags:
Code:
#org 0xB00000
lock
faceplayer
checkflag 0x364
compare LASTRESULT 0x1
if 0x1 goto 0xB00200
message 0xB00100
boxset 0x6
release
end

#org 0xB00200
message 0xB00300
boxset 0x6
end

#org 0xB00100
= Hello.

#org 0xB00300
= Goodbye.
But he only says Hello each time. He never says Goodbye.

EDIT: I noticed that whenever I put setflag 0x364 in the script, he still doesn't say goodbye, but when I enter another map and come back to the map he was in, he isn't there anymore.

Last edited by Blaziken626; February 17th, 2007 at 08:24 AM.
  #66    
Old February 17th, 2007, 08:36 AM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
Quote:
Originally Posted by Blaziken626 View Post
And also, I have this script testing out flags:
Code:
#org 0xB00000
lock
faceplayer
checkflag 0x364
compare LASTRESULT 0x1
if 0x1 goto 0xB00200
message 0xB00100
boxset 0x6
setflag 0x364
release
end

#org 0xB00200
message 0xB00300
boxset 0x6
end

#org 0xB00100
= Hello.

#org 0xB00300
= Goodbye.
But he only says Hello each time. He never says Goodbye.

EDIT: I noticed that whenever I put setflag 0x364 in the script, he still doesn't say goodbye, but when I enter another map and come back to the map he was in, he isn't there anymore.
Those question in reverse order:
Firstly in the above script I see you checking a flag but I don't see you setting a flag? Note the section I put in bold! You can't check it if you don't set it. Also, you may not want to use offsett 364.. I don't know all of them but a lot of the offsetts that high up are reserved for system events. I don't know if that one is so you can try it, i'm just making an observation.

I would also like to point out that if you give the person on the map a 'person no' or in other words a flag then when you set it in your script and perform a callstd 0x1 or whatever then the person will vanish from the map like you discribed!

Second, yes you don't need the #raw 5c when using my program....
... A little technobabble.
Trainerbattle is actually listed in scripted as a construct and the construct handlers were dogdy in scripted.
When scripted compiled the command trainerbattle it forgot to translate the word 'trainerbattle' into the byte 5C so a command that should have read in a hex editor as: (using your example)

5c 00 1A 00908208 00008308 00108308
read as
00 1A 00908208 00008308 00108308

thats why you needed to put #raw 5C at the beginning. You don't need that now though cause doing so in my program results in

5c 5c 00 1A009082 08000083 08001083 08

stopping those pointers going where they are meant to.
And causing the link to the trainer (byte two of the above string) to point to the wrong person!


- EDIT -

Everything I said above is true, but I actually just found a bug with that command in my program. Re download the command database in ten minutes or so. I'm uploading the fixed database now!
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto

Last edited by Irish Witch; February 17th, 2007 at 09:02 AM.
  #67    
Old February 17th, 2007, 09:20 AM
Blaziken626's Avatar
Blaziken626
Pokemon Black Shadow
 
Join Date: Dec 2006
Age: 20
Gender:
Nature: Mild
I used this script instead:

Code:
#org 0xB00000
lock
faceplayer
checkflag 0x10A
compare LASTRESULT 0x1
if 0x1 goto 0xB00200
message 0xB00100
boxset 0x6
setflag 0x10A
release
end

#org 0xB00200
message 0xB00300
boxset 0x6
end

#org 0xB00100
= Hello.

#org 0xB00300
= Goodbye.
And it still doesn't work! I absolutely HATE scripting!
  #68    
Old February 17th, 2007, 09:55 AM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
Alright. Now this is why I needed beta testers. Let me play with this for a bit!

AH HA!. There be a glitch in my program after all!

(and here I thought I got things right.)
Check back here in 24 hrs and I'll have the glitch sorted. It's to do with the horrid LASTRESULT being defined as meaning 0x800D
... It's throwing out the script because that value turns into a negative number and my prrogram doesn't know how to read it!
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto

Last edited by Irish Witch; February 17th, 2007 at 10:13 AM.
  #69    
Old February 17th, 2007, 10:01 AM
Blaziken626's Avatar
Blaziken626
Pokemon Black Shadow
 
Join Date: Dec 2006
Age: 20
Gender:
Nature: Mild
In applymovement scripts, how do I make the player move along with another person? (Like when the PokeMart person takes you to the PokeMart.)
  #70    
Old February 17th, 2007, 10:47 AM
D-Trogh's Avatar
D-Trogh
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 23
Gender: Male
Send a message via Windows Live Messenger to D-Trogh
Quote:
Originally Posted by Blaziken626 View Post
In applymovement scripts, how do I make the player move along with another person? (Like when the PokeMart person takes you to the PokeMart.)
Well.. This is what I do when I want to see how certain scripts/functions(/things..) work: I CHECK them through ScriptEd..
In the spoiler you have a script, look through it. It's from Oldale Town, with the movements..
When you want to see other thing, go to those offsets and CHECK them
Spoiler:
'-----------------------
#org 0x14DE07
applymovement 0x2 0x814DE97
applymovement APPLYMOVE_PLAYER 0x814DEC1

#raw 0x0
#raw 0x0
goto 0x814DE4C
end

'-----------------------
#org 0x14DE4C
msgbox 0x816AF2F '"This is a POKéMON MA..."

call 0xD80001A
#raw 0x0

#raw 0x0

#raw 0x0

#raw 0x0
#raw 0x0
if 0x1 jump 0x14DE83
msgbox 0x816AFE1 '"A POTION can be used..."

call 0x35008429

end

'-----------------------
#org 0x580001A
#raw 0x0
'-----------------------
#org 0x14DE83
msgbox 0x81A0CC2 '"Too bad!\nThe BAG is..."

call 0x9026C35



#raw 0x0
if 0x1 jump 0x14DF26
msgbox 0x816B0CC '"I just discovered th..."

call 0x34F68

#raw 0x0
#raw 0x0

end

'-----------------------
#org 0x2D008429
#raw 0x0
'-----------------------
#org 0x1026C35
#raw 0x0
'-----------------------
#org 0x14DF26
msgbox 0x816B12A '"I finished sketching..."

call 0x4F69026C
call 0x1A083900

#raw 0x0
#raw 0x0
goto 0x814DF92
end

'-----------------------
#org 0x34F68

return

'-----------------------
#org 0x4769026C
#raw 0x0
'-----------------------
#org 0x12083900
#raw 0x0
'-----------------------
#org 0x14DF92

#raw 0x0
#raw 0x0
if 0x1 jump 0x14DFAA

#raw 0x0
if 0x1 jump 0x14DFB8
end

'-----------------------
#org 0x14DFAA
msgbox 0x816B196 '"MAY: \v\h01\v\h05!\n..."

call 0x14DFC605

end

'-----------------------
#org 0x14DFB8
msgbox 0x816B1BE '"BRENDAN: I'm heading..."

call 0x14DFC605

end

'-----------------------
#org 0xCDFC605
#raw 0x0

'---------
' Strings
'---------
#org 0x16AF2F
= This is a POKéMON MART.\nJust look for our blue roof.\pWe sell a variety of goods including\nPOKé BALLS for catching POKéMON.\pHere, I'd like you to have this as a\npromotional item.
#org 0x16AFE1
= A POTION can be used anytime, so it's\neven more useful than a POKéMON CENTER\lin certain situations.
#org 0x1A0CC2
= Too bad!\nThe BAG is full...
#org 0x16B0CC
= I just discovered the footprints of\na rare POKéMON!\pWait until I finish sketching\nthem, okay?
#org 0x16B12A
= I finished sketching the footprints of\na rare POKéMON.\pBut it turns out they were only my\nown footprints...
#org 0x16B196
= MAY: \v\h01\v\h05!\nOver here!\lLet's hurry home!
#org 0x16B1BE
= BRENDAN: I'm heading back to my dad's\nLAB now.\l\v\h01, you should hustle back, too.

'-----------
' Movements
'-----------
#raw A 'Left2
#raw 9 'Up2
#raw 9 'Up2
#raw B 'Right2
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw 25 'StDown4
#raw FE 'Exit

#raw 14 'Delay4
#raw 14 'Delay4
#raw 14 'Delay4
#raw 14 'Delay4
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw FE 'Exit

! In the original content of ScriptEd there were more spaces.. !

Edit:
Well..Some base-scripts from the game are so, so,.. well.. 'call this', 'call that'.. -BLAH-
But you can see you need to use an 'applymovement' both on the person and on the player..
__________________
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]

Last edited by D-Trogh; February 17th, 2007 at 11:00 AM.
  #71    
Old February 17th, 2007, 10:51 AM
Irish Witch's Avatar
Irish Witch
Office Jenny
 
Join Date: Jul 2006
Location: Australia
Age: 34
Gender:
Nature: Lonely
Send a message via AIM to Irish Witch Send a message via Yahoo to Irish Witch
UPDATE

MAJOR update to main program!
Glitch in #alias command that meant all constructs were not being performed correctly.
(also minor bug involving large values not reading correctly!)
FIXED!


0400hrs... I'm going to bed now!
Play with program.. Report back in toolbox thread!
__________________
PokeScript Assembler C pokewitch inc

PokeWitch's PokePets

Smitten the level 25 Kirlia! :: Myrial the Level 22 Pidgeotto

Last edited by Irish Witch; February 17th, 2007 at 11:00 AM.
  #72    
Old February 17th, 2007, 11:10 AM
Blaziken626's Avatar
Blaziken626
Pokemon Black Shadow
 
Join Date: Dec 2006
Age: 20
Gender:
Nature: Mild
Quote:
Originally Posted by D-Trogh View Post
Well.. This is what I do when I want to see how certain scripts/functions(/things..) work: I CHECK them through ScriptEd..
In the spoiler you have a script, look through it. It's from Oldale Town, with the movements..
When you want to see other thing, go to those offsets and CHECK them
Spoiler:
'-----------------------
#org 0x14DE07
applymovement 0x2 0x814DE97
applymovement APPLYMOVE_PLAYER 0x814DEC1

#raw 0x0
#raw 0x0
goto 0x814DE4C
end

'-----------------------
#org 0x14DE4C
msgbox 0x816AF2F '"This is a POKéMON MA..."

call 0xD80001A
#raw 0x0

#raw 0x0

#raw 0x0

#raw 0x0
#raw 0x0
if 0x1 jump 0x14DE83
msgbox 0x816AFE1 '"A POTION can be used..."

call 0x35008429

end

'-----------------------
#org 0x580001A
#raw 0x0
'-----------------------
#org 0x14DE83
msgbox 0x81A0CC2 '"Too bad!\nThe BAG is..."

call 0x9026C35



#raw 0x0
if 0x1 jump 0x14DF26
msgbox 0x816B0CC '"I just discovered th..."

call 0x34F68

#raw 0x0
#raw 0x0

end

'-----------------------
#org 0x2D008429
#raw 0x0
'-----------------------
#org 0x1026C35
#raw 0x0
'-----------------------
#org 0x14DF26
msgbox 0x816B12A '"I finished sketching..."

call 0x4F69026C
call 0x1A083900

#raw 0x0
#raw 0x0
goto 0x814DF92
end

'-----------------------
#org 0x34F68

return

'-----------------------
#org 0x4769026C
#raw 0x0
'-----------------------
#org 0x12083900
#raw 0x0
'-----------------------
#org 0x14DF92

#raw 0x0
#raw 0x0
if 0x1 jump 0x14DFAA

#raw 0x0
if 0x1 jump 0x14DFB8
end

'-----------------------
#org 0x14DFAA
msgbox 0x816B196 '"MAY: \v\h01\v\h05!\n..."

call 0x14DFC605

end

'-----------------------
#org 0x14DFB8
msgbox 0x816B1BE '"BRENDAN: I'm heading..."

call 0x14DFC605

end

'-----------------------
#org 0xCDFC605
#raw 0x0

'---------
' Strings
'---------
#org 0x16AF2F
= This is a POKéMON MART.\nJust look for our blue roof.\pWe sell a variety of goods including\nPOKé BALLS for catching POKéMON.\pHere, I'd like you to have this as a\npromotional item.
#org 0x16AFE1
= A POTION can be used anytime, so it's\neven more useful than a POKéMON CENTER\lin certain situations.
#org 0x1A0CC2
= Too bad!\nThe BAG is full...
#org 0x16B0CC
= I just discovered the footprints of\na rare POKéMON!\pWait until I finish sketching\nthem, okay?
#org 0x16B12A
= I finished sketching the footprints of\na rare POKéMON.\pBut it turns out they were only my\nown footprints...
#org 0x16B196
= MAY: \v\h01\v\h05!\nOver here!\lLet's hurry home!
#org 0x16B1BE
= BRENDAN: I'm heading back to my dad's\nLAB now.\l\v\h01, you should hustle back, too.

'-----------
' Movements
'-----------
#raw A 'Left2
#raw 9 'Up2
#raw 9 'Up2
#raw B 'Right2
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw 25 'StDown4
#raw FE 'Exit

#raw 14 'Delay4
#raw 14 'Delay4
#raw 14 'Delay4
#raw 14 'Delay4
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw 9 'Up2
#raw FE 'Exit

! In the original content of ScriptEd there were more spaces.. !

Edit:
Well..Some base-scripts from the game are so, so,.. well.. 'call this', 'call that'.. -BLAH-
But you can see you need to use an 'applymovement' both on the person and on the player..
I would've checked if I knew how to. I don't know how to find scripts by using their offsets. And I did use applymovement on both the player and person, but the person moved first, and then the player moved after the person was done moving. Here's the script:

Code:
#org 0xC00000
applymovement 0x1 0xC00100
pause 0x50
applymovement 0xFF 0xC00200
pause 0x10
message 0xC00300
boxset 0x6
release
applymovement 0x1 0xC00400
pause 0x160
applymovement 0xFF 0xC00500
pause 0x160
applymovement 0x1 0xC00600
pause 0x10
end

#org 0xC00100
#raw 0x9
#raw 0x9
#raw 0x9
#raw 0x9
#raw 0xFE

#org 0xC00200
#raw 0x1D
#raw 0xFE

#org 0xC00300
= Don't go out there! It's dangerous\nif you don't have any Pokemon.\pCome with me.

#org 0xC00400
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xFE

#org 0xC00500
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xFE

#org 0xC00600
#raw 0x1E
#raw 0xFE
  #73    
Old February 17th, 2007, 11:30 AM
Christos's Avatar
Christos
Project Shinx
 
Join Date: Feb 2006
Location: Spain, Went's room
Nature: Serious
Send a message via Skype™ to Christos
If you don't put a pause after the first "applymovement" command, both player and the other sprite will move together. The "pause" will be for both movements.
__________________
Cooltrainer♂ wants to battle!
Breloom (Lv. 47) - Technician - (Mach Punch, Bullet Seed)
Zangoose (Lv. 49) - Toxic Boost - (Slash, Close Combat)
November 28th / Staff Collab 2014
  #74    
Old February 17th, 2007, 11:31 AM
D-Trogh's Avatar
D-Trogh
Dead
 
Join Date: Jul 2005
Location: Belgium
Age: 23
Gender: Male
Send a message via Windows Live Messenger to D-Trogh
Quote:
Originally Posted by Blaziken626 View Post
I would've checked if I knew how to. I don't know how to find scripts by using their offsets. And I did use applymovement on both the player and person, but the person moved first, and then the player moved after the person was done moving. Here's the script:

Code:
#org 0xC00000
applymovement 0x1 0xC00100
pause 0x50
applymovement 0xFF 0xC00200
pause 0x10
message 0xC00300
boxset 0x6
release
applymovement 0x1 0xC00400
pause 0x160
applymovement 0xFF 0xC00500
pause 0x160
applymovement 0x1 0xC00600
pause 0x10
end

#org 0xC00100
#raw 0x9
#raw 0x9
#raw 0x9
#raw 0x9
#raw 0xFE

#org 0xC00200
#raw 0x1D
#raw 0xFE

#org 0xC00300
= Don't go out there! It's dangerous\nif you don't have any Pokemon.\pCome with me.

#org 0xC00400
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xFE

#org 0xC00500
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xFE

#org 0xC00600
#raw 0x1E
#raw 0xFE
Looking for scripts is simple.. You know in ScriptEd the path above..
It's like: YourRom.gba:800000
Just change the '800000' to another offset and voilá.. You have it.



Again, I'll try to help you with my basic scripting skills:
Why don't you delete the 'pause' between the 'applymovement' of the player and person ? Just try it..
What with the other 'pause' you'll ask.
Well, it would be logical if you put a 'pause' after the 2 'applymovement's wich:
1. Is the sum of all the movements
2. Is only the number in function of the person who moves the most.
[When the player had only 1 movement, but the person has 3, use 'pause for3movement' (I don't know how to count the movements)]

Edit:
Christos was first..
Btw, could you try the 2 possibilities ? Than I know what to use too
__________________
[NTME | WPEDS | HTPE | SGPE | TGPE | PDEDS]
  #75    
Old February 17th, 2007, 12:00 PM
zak's Avatar
zak
xpert trainer
 
Join Date: Jul 2004
Location: south london
Age: 22
Gender:
Nature: Brave
Send a message via Windows Live Messenger to zak
Quote:
Originally Posted by D-Trogh View Post
Looking for scripts is simple.. You know in ScriptEd the path above..
It's like: YourRom.gba:800000
Just change the '800000' to another offset and voilá.. You have it.



Again, I'll try to help you with my basic scripting skills:
Why don't you delete the 'pause' between the 'applymovement' of the player and person ? Just try it..
What with the other 'pause' you'll ask.
Well, it would be logical if you put a 'pause' after the 2 'applymovement's wich:
1. Is the sum of all the movements
2. Is only the number in function of the person who moves the most.
[When the player had only 1 movement, but the person has 3, use 'pause for3movement' (I don't know how to count the movements)]

Edit:
Christos was first..
Btw, could you try the 2 possibilities ? Than I know what to use too

i didnt know you could open up scripts already in the game, thanks alot im gonna learn every script i can ! thanks so much!


Edit: hmmm when i open the rom it doesent say YourRom.gba:800000 in the path above.... infact it says nothing..........am i doing something rong?
__________________
Hi

Last edited by zak; February 17th, 2007 at 12:06 PM.
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 05:55 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.