The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page [Archive] Script help thread

Notices
For all updates, view the main page.

Binary ROM Hacking Need a helping hand or just want to talk about binary ROM hacks? Get comments and answers to any ROM Hacking-related problems, questions or thoughts you have here.

Ad Content
Closed Thread
 
Thread Tools
  #1301   Link to this post, but load the entire thread.  
Old June 17th, 2008 (7:02 PM).
Sacred Dragon's Avatar
Sacred Dragon Sacred Dragon is offline
Yes, that's a Mewtwo
 
Join Date: May 2008
Location: USA - Tennessee
Age: 30
Gender: Male
Posts: 46
Quote:
Originally Posted by Sacred Dragon View Post
Could someone show me an example of a Pokemon Battle Script in XSE? Like if I wanted to battle a Raikou, how would I make a script to do that? Can someone give me an example of a Pokemon Battle Script for XSE? All answers are apprecited. Thanks for reading this post!! :D
Can anyone help me? You don't have to give me a very specific example; I just really want to know how to do this. There really aren't any XSE tutorials that tell me how to do this lol.
  #1302   Link to this post, but load the entire thread.  
Old June 18th, 2008 (12:44 AM).
tImE's Avatar
tImE tImE is offline
It's still me, 44tim44 ;)
 
Join Date: Mar 2007
Location: Somewhere in Scandinavia...
Nature: Relaxed
Posts: 673
Hi, I'm trying to implent
some "special tickets" in a hack o mine
but There's something I dont understand:

Quote:
;SCRIPT ENTRY POINT
08276B03: 26 Level2CmdStore 800D 01F8 ; This mean Special2 0x800D(var) 0x01F8
08276B08: 21 cmp16 [ptr],I 800D 0001 ;Compare LastResult 0x1
08276B0D: 06 jmp_if 01 08276B23 ;if B_true goto 0x276B23
08276B13: 05 jmp 08276B19
08276B18: 02 quit
How do I make it possible to goto the pointer
after the B_true?

I think I need to set a var but... I don't know
which one.

Please, Help me.


//44tim44
__________________
  #1303   Link to this post, but load the entire thread.  
Old June 18th, 2008 (4:22 AM).
Piplup-Trainer's Avatar
Piplup-Trainer Piplup-Trainer is offline
This is my custom user title.
 
Join Date: Nov 2007
Location: Europe. Many people haven`t heard about the country in which I live.
Age: 31
Gender: Male
Nature: Relaxed
Posts: 228
What is the command to activate the National Dex in Ruby / Sapphire?

special 0x???
__________________
I LEFT PC!
http://www.pokecommunity.com/member.php?u=66475&vmid=2790824#vmessage2790824


Short summary :

2007 : ROM Hacking - asking some questions regarding Pokemon Ruby/Sapphire
2008 : Trading - mostly to complePokemon keDex in Pokemon Diamond until 2009
2009 : Battling - battles without ev'd Pokemon until 2009, competitive battles until 2010
2010 : Chatting - talking to pc friends, but more often on ut more often on MSN), having a good time
2011 : Less activity - it dropped more because of Windows Live Messenger and Facebook
  #1304   Link to this post, but load the entire thread.  
Old June 18th, 2008 (4:24 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
there's no way to activate the national dex in both Ruby and Sapphire though... :\
the only way is if you'll trade Ruby---FireRed with Johto or kanto Pokes... :\
__________________

  #1305   Link to this post, but load the entire thread.  
Old June 18th, 2008 (5:07 AM).
Piplup-Trainer's Avatar
Piplup-Trainer Piplup-Trainer is offline
This is my custom user title.
 
Join Date: Nov 2007
Location: Europe. Many people haven`t heard about the country in which I live.
Age: 31
Gender: Male
Nature: Relaxed
Posts: 228
Quote:
Originally Posted by destinedjagold View Post
there's no way to activate the national dex in both Ruby and Sapphire though... :\
the only way is if you'll trade Ruby---FireRed with Johto or kanto Pokes... :\
I set Chikoria, Cyndaquil, Totodile and other Kanto / Johto Pokemons as wild Pokemons.
If I meet one of them, then I don't get a pokedex entry.

By the way, I found a command which activates the National Dex in Emerald.
Can I use it for Ruby / Sapphire?

special 0x1F3 - Activate National Dex (Emerald)
__________________
I LEFT PC!
http://www.pokecommunity.com/member.php?u=66475&vmid=2790824#vmessage2790824


Short summary :

2007 : ROM Hacking - asking some questions regarding Pokemon Ruby/Sapphire
2008 : Trading - mostly to complePokemon keDex in Pokemon Diamond until 2009
2009 : Battling - battles without ev'd Pokemon until 2009, competitive battles until 2010
2010 : Chatting - talking to pc friends, but more often on ut more often on MSN), having a good time
2011 : Less activity - it dropped more because of Windows Live Messenger and Facebook
  #1306   Link to this post, but load the entire thread.  
Old June 18th, 2008 (6:04 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is offline
You can contact me in PC's discord server...
 
Join Date: May 2007
Age: 32
Gender: Male
Nature: Careful
Posts: 8,579
as I said, there isn't a way other than trading through Ruby/Sapphire to FireRed/LeafGreen... :\
if there was, then I should have used it in Reign of Legends... :\
you can try with gameshark like in Naranja... :\
__________________

  #1307   Link to this post, but load the entire thread.  
Old June 18th, 2008 (7:27 AM).
Working Class Hero Working Class Hero is offline
 
Join Date: Mar 2006
Location: Ohio
Age: 30
Gender:
Nature: Naughty
Posts: 683
Okay, here I am! Again! >>

My last script works now so thanks to everyone who helped. But now my other script wont move. The person does exactly what it is supposed to. It checks for the National Dex, if you don't have it he wont let you through. But if you do he says he will but he doesn't move at all. Here is the script.

Quote:
#dynamic 0x2E5101

#org @start
lock
faceplayer
checkflag 0x16F 0x1
compare LASTRESULT 0x1
if B_TRUE goto @pass
message @nopass
boxset 6
release
end

#org @pass
message @passx
boxset 6
applymovement 0x1D @move
Waitmovement 0x0
setflag 0x1041
release
end

#org @move
#raw 0x01 0x11 0x60 0xFE

#org @nopass
= Sorry, you can't go further!

#org @passx
= Is that...\pYou may go!
__________________
I would rather be with friends and family~

lolmence
  #1308   Link to this post, but load the entire thread.  
Old June 18th, 2008 (7:29 AM).
adiktus's Avatar
adiktus adiktus is offline
 
Join Date: May 2008
Nature: Hardy
Posts: 248
I don't think that checkflag works with special.. what you should do is set a flag in the pokedex script, then check that flag in this script.
__________________
*´¨) Love life! Get paid!! Get laid!!!!
¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
(¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
  #1309   Link to this post, but load the entire thread.  
Old June 18th, 2008 (8:18 AM).
Working Class Hero Working Class Hero is offline
 
Join Date: Mar 2006
Location: Ohio
Age: 30
Gender:
Nature: Naughty
Posts: 683
Quote:
Originally Posted by adiktus View Post
I don't think that checkflag works with special.. what you should do is set a flag in the pokedex script, then check that flag in this script.
The problem is is that the person wont move. Everything else works fine. I just don't know what to do for the movement part. He checks for the National Dex. If you don't have it he does what he is supposed to but if you do he says what he is supposed to but doesn't move. So what do I do? D:
__________________
I would rather be with friends and family~

lolmence
  #1310   Link to this post, but load the entire thread.  
Old June 18th, 2008 (10:26 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
 
Join Date: Jun 2006
Posts: 1,314
Quote:
Originally Posted by αωαταρ αανγ View Post
The problem is is that the person wont move. Everything else works fine. I just don't know what to do for the movement part. He checks for the National Dex. If you don't have it he does what he is supposed to but if you do he says what he is supposed to but doesn't move. So what do I do? D:

Well, you should check the applymovment command. I bet the person you used is wrong. 0x1D doesn't seem a good number. You don't have more than 25 people in your map, do you?
__________________
  #1311   Link to this post, but load the entire thread.  
Old June 18th, 2008 (10:57 AM).
Working Class Hero Working Class Hero is offline
 
Join Date: Mar 2006
Location: Ohio
Age: 30
Gender:
Nature: Naughty
Posts: 683
Quote:
Originally Posted by - HackMew - View Post
Well, you should check the applymovment command. I bet the person you used is wrong. 0x1D doesn't seem a good number. You don't have more than 25 people in your map, do you?
No I do not have more than 25 people on the map.
__________________
I would rather be with friends and family~

lolmence
  #1312   Link to this post, but load the entire thread.  
Old June 18th, 2008 (11:19 AM).
Piplup-Trainer's Avatar
Piplup-Trainer Piplup-Trainer is offline
This is my custom user title.
 
Join Date: Nov 2007
Location: Europe. Many people haven`t heard about the country in which I live.
Age: 31
Gender: Male
Nature: Relaxed
Posts: 228
Quote:
Originally Posted by destinedjagold View Post
as I said, there isn't a way other than trading through Ruby/Sapphire to FireRed/LeafGreen... :\
if there was, then I should have used it in Reign of Legends... :\
you can try with gameshark like in Naranja... :\
Okay. Thank you.
*filler*
__________________
I LEFT PC!
http://www.pokecommunity.com/member.php?u=66475&vmid=2790824#vmessage2790824


Short summary :

2007 : ROM Hacking - asking some questions regarding Pokemon Ruby/Sapphire
2008 : Trading - mostly to complePokemon keDex in Pokemon Diamond until 2009
2009 : Battling - battles without ev'd Pokemon until 2009, competitive battles until 2010
2010 : Chatting - talking to pc friends, but more often on ut more often on MSN), having a good time
2011 : Less activity - it dropped more because of Windows Live Messenger and Facebook
  #1313   Link to this post, but load the entire thread.  
Old June 18th, 2008 (3:34 PM).
Jonny Buuz's Avatar
Jonny Buuz Jonny Buuz is offline
La di da di do di da di dum...
 
Join Date: Oct 2005
Location: Behind you.
Age: 32
Gender: Male
Nature: Modest
Posts: 56
script issue...

Spoiler:
#Dynamic 0x800050

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @end
msgbox @msg
boxset 0x5
compare lastresult 0x1
if 0x1 goto @give
msgbox @no
boxset 0x6
release
end

#org @give
lock
msgbox @givemsg
boxset 0x6
#define givepokemon 0x85 0xA 0x0
setflag 0x200
release
end

#org @end
lock
faceplayer
msgbox @done
boxset 0x6
release
end

#org @msg
= Will you take this from me?

#org @no
= Oh...

#org @givemsg
= You received an EEVEE!

#org @done
= Good luck.


text works, but not the givepokemon command. what's wrong? using XSE.
__________________
</signature>
  #1314   Link to this post, but load the entire thread.  
Old June 18th, 2008 (4:05 PM).
WindBlows's Avatar
WindBlows WindBlows is offline
It's been a long time!
 
Join Date: Oct 2006
Age: 28
Gender: Male
Nature: Modest
Posts: 749
Quote:
Originally Posted by Jonny Buuz View Post
script issue...

Spoiler:
#Dynamic 0x800050

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @end
msgbox @msg
boxset 0x5
compare lastresult 0x1
if 0x1 goto @give
msgbox @no
boxset 0x6
release
end

#org @give
lock
msgbox @givemsg
boxset 0x6
#define givepokemon 0x85 0xA 0x0
setflag 0x200
release
end

#org @end
lock
faceplayer
msgbox @done
boxset 0x6
release
end

#org @msg
= Will you take this from me?

#org @no
= Oh...

#org @givemsg
= You received an EEVEE!

#org @done
= Good luck.


text works, but not the givepokemon command. what's wrong? using XSE.
You forgot to active (set) setflag 0x828.
  #1315   Link to this post, but load the entire thread.  
Old June 18th, 2008 (4:18 PM). Edited June 18th, 2008 by Working Class Hero.
Working Class Hero Working Class Hero is offline
 
Join Date: Mar 2006
Location: Ohio
Age: 30
Gender:
Nature: Naughty
Posts: 683
Quote:
#dynamic 0x2E5101

#org @start
checkflag 0x232
lock
faceplayer
checkflag 0x16F 0x1
compare LASTRESULT 0x1
if B_TRUE goto @pass
message @nopass '"Sorry, you can't go further!"
boxset 6
setflag 0x232
release
end

#org @pass
message @passx '"Is that...\pYou may go!"
boxset 6
applymovement MOVE_PLAYER @moveplayer
waitmovement 0x0
applymovement 0x1D @movesprite1
Waitmovement 0x0
setflag 0x1041
release
end

#org @nopass
= Sorry, you can't go further!

#org @passx
= Is that...\pYou may go!

#org @moveplayer
#raw 0x10
#raw 0x10
#raw 0xFE

#org @movesprite1
#raw 0x34
#raw 0xFE
But here is the problem, the person blocking the path will no move to the right at all. He just stays there.
__________________
I would rather be with friends and family~

lolmence
  #1316   Link to this post, but load the entire thread.  
Old June 18th, 2008 (7:01 PM).
adiktus's Avatar
adiktus adiktus is offline
 
Join Date: May 2008
Nature: Hardy
Posts: 248
like he said. people number. Change the 0x1D to the event id of the person.
__________________
*´¨) Love life! Get paid!! Get laid!!!!
¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
(¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
  #1317   Link to this post, but load the entire thread.  
Old June 18th, 2008 (9:20 PM).
Darthatron's Avatar
Darthatron Darthatron is offline
巨大なトロール。
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 31
Gender: Male
Nature: Modest
Posts: 1,152
Quote:
Originally Posted by Jonny Buuz View Post
script issue...

Spoiler:
#Dynamic 0x800050

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @end
msgbox @msg
boxset 0x5
compare lastresult 0x1
if 0x1 goto @give
msgbox @no
boxset 0x6
release
end

#org @give
lock
msgbox @givemsg
boxset 0x6
#define givepokemon 0x85 0xA 0x0
setflag 0x200
release
end

#org @end
lock
faceplayer
msgbox @done
boxset 0x6
release
end

#org @msg
= Will you take this from me?

#org @no
= Oh...

#org @givemsg
= You received an EEVEE!

#org @done
= Good luck.


text works, but not the givepokemon command. what's wrong? using XSE.
Just from looking I can see the problem...
Code:
#define givepokemon 0x85 0xA 0x0
Why exactly are you Defining that? It makes no sense... Anyway, replace that line with this one:
Code:
givepokemon 0x85 0xA 0x0 0x0 0x0 0x0
It will work fine now (In theory).
__________________
あなた は しきしゃ です
わたし は ばか です
  #1318   Link to this post, but load the entire thread.  
Old June 19th, 2008 (11:28 AM).
tole11 tole11 is offline
 
Join Date: Nov 2007
Gender:
Posts: 1
Hey, um, I'm a bit confused. I see ltos of programs for scripting. Which one should I start with, and how can I start to learn scripting. I want to do stuff like giving pokemon and changing the pokedex. For now, my hack has mostly been editted with tools like AdvancedMap, A-Starters, ect.
  #1319   Link to this post, but load the entire thread.  
Old June 19th, 2008 (11:14 PM).
nothing's Avatar
nothing nothing is offline
Gorto Hacker
 
Join Date: Aug 2005
Location: Gorto :)
Age: 26
Gender:
Nature: Brave
Posts: 33
I want three scripts:

1-I want a door closed until catch a Mareep.

2-What is national POKEDéX flag?

3-I want player says "It's dangerious here" and go right.
__________________
--No signatures--
  #1320   Link to this post, but load the entire thread.  
Old June 20th, 2008 (1:28 AM).
Pikmin_7890's Avatar
Pikmin_7890 Pikmin_7890 is offline
Elite Water Master, Demyx
 
Join Date: Jun 2008
Location: Lompoc, Ca
Gender:
Nature: Modest
Posts: 5
Someone please help. I'm trying to input legendary battles for Lugia, Kyogre, Celebi, and Suicune. Everytime I compile script for any of them this pops up:

Run-time error '457':
This key is already associtated with an element of this collection.


Here's an example of Luigia's script:
#org $Wildbattle
lock
faceplayer
cry 5
message $mewcry
$mewcry 1 = Lugia: You may be tough but can you beat me?
boxset 6
checkflag 0x500
if 0x1 goto $Wildbattle
release
end

#org $Wildbattle
lock
wildbattle 249 100 3
release
setflag 0x500
#raw 53
fadescreen 0
end

Please help.
__________________

  #1321   Link to this post, but load the entire thread.  
Old June 20th, 2008 (1:33 AM).
adiktus's Avatar
adiktus adiktus is offline
 
Join Date: May 2008
Nature: Hardy
Posts: 248
You used $wildbattle twice.. use another name for the second part of the script
__________________
*´¨) Love life! Get paid!! Get laid!!!!
¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
(¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
  #1322   Link to this post, but load the entire thread.  
Old June 20th, 2008 (5:58 AM). Edited June 20th, 2008 by Pikmin_7890.
Pikmin_7890's Avatar
Pikmin_7890 Pikmin_7890 is offline
Elite Water Master, Demyx
 
Join Date: Jun 2008
Location: Lompoc, Ca
Gender:
Nature: Modest
Posts: 5
Thank you! It worked. Although, I haven't tested yet since i have tons of other editting to do. Thanxs again.

Oh, Can you help me with a different problem? I can only get one person with a "Give item" or "Give pokemon" script to actually give you the item or pokemon. Like I made Ho-oh give you a max revive and Clefairy give you a masterball, but when I tested it, the first one I went to was the only one with an item. Here's Clefairy's script:

#org $Sillyquestion
lock
faceplayer
checkflag 0x200
If B_TRUE goto $Done
message $Freepo
$Freepo 1 = Do you want a pokeball I found?
boxset 5
compare LASTRESUILT B_TRUE
if B_False goto $Nothanks1
message $Hereitis
$Hereitis 1 = Here ya go!
Boxset 6
giveitem 0x1 0x1
setflag 0x200
release
end

#org $Nothanks1
lock
faceplayer
message $Nothanks
$Nothanks 1 = Whatever.
boxset 6
release
end

#org $Done
lock
faceplayer
message $Noneleft
$Noneleft 1 = Use it wisely young padawan.
release
end

They also never say the part of the script in red. Thank you.
__________________

  #1323   Link to this post, but load the entire thread.  
Old June 20th, 2008 (6:54 AM).
Cy-Chan's Avatar
Cy-Chan Cy-Chan is offline
GSC Hacker
 
Join Date: Jan 2005
Location: UK, England.
Age: 31
Gender:
Nature: Timid
Posts: 152
Hi. I've been working on the following script, but it won't work properly.

#org start
lock
faceplayer
checkflag 0x184
if b_true goto $squirt
checkflag 0x195
if b_true goto $bulb
checkflag 0x206
if b_true goto $charm

#org $squirt
trainerbattle 1 0x001 $before $after $later

#org $bulb
trainerbattle 1 0x002 $before $after $later

#org $charm
trainerbattle 1 0x003 $before $after $later

#org $later
message $beaten
boxset 6
applymovement 0x08 $move
#raw 0x53 0x0F 0x80
release
end

#org $move
#raw 0x11

#org $before
$before 1 = \v\h06: Hey \v\h01! Have you\ncaught any more POKéMON yet?

#org $after
$after 1 = \v\h06: Not bad...

#org $beaten
$beaten 1 = \v\h06: You have a badge? I'm\nimpressed.\pAlthough, I already have two badges.\nRight now, I'm just taking a detour\pMT. MOON to catch a CLEFAIRY.\nAnyways, smell ya later.

First problem is at the checkflags. I swear I found the right values for deciding which Pokémon you took at the beginning, but perhaps not.

Also, when it reaches the pausemove 0, it freezes.

Can anyone help?
  #1324   Link to this post, but load the entire thread.  
Old June 20th, 2008 (3:24 PM).
adiktus's Avatar
adiktus adiktus is offline
 
Join Date: May 2008
Nature: Hardy
Posts: 248
Quote:
Originally Posted by Pikmin_7890 View Post
Thank you! It worked. Although, I haven't tested yet since i have tons of other editting to do. Thanxs again.

Oh, Can you help me with a different problem? I can only get one person with a "Give item" or "Give pokemon" script to actually give you the item or pokemon. Like I made Ho-oh give you a max revive and Clefairy give you a masterball, but when I tested it, the first one I went to was the only one with an item. Here's Clefairy's script:

#org $Sillyquestion
lock
faceplayer
checkflag 0x200
If B_TRUE goto $Done
message $Freepo
$Freepo 1 = Do you want a pokeball I found?
boxset 5
compare LASTRESUILT B_TRUE
if B_False goto $Nothanks1
message $Hereitis
$Hereitis 1 = Here ya go!
Boxset 6
giveitem 0x1 0x1
setflag 0x200
release
end

#org $Nothanks1
lock
faceplayer
message $Nothanks
$Nothanks 1 = Whatever.
boxset 6
release
end

#org $Done
lock
faceplayer
message $Noneleft
$Noneleft 1 = Use it wisely young padawan.
release
end

They also never say the part of the script in red. Thank you.
You don't receive an item? Its the correct command. :\
Add boxset 6 after message $noneleft

Quote:
Originally Posted by Cy-Chan View Post
Hi. I've been working on the following script, but it won't work properly.

#org start
lock
faceplayer
checkflag 0x184
if b_true goto $squirt
checkflag 0x195
if b_true goto $bulb
checkflag 0x206
if b_true goto $charm

#org $squirt
trainerbattle 1 0x001 $before $after $later

#org $bulb
trainerbattle 1 0x002 $before $after $later

#org $charm
trainerbattle 1 0x003 $before $after $later

#org $later
message $beaten
boxset 6
applymovement 0x08 $move
#raw 0x53 0x0F 0x80
release
end

#org $move
#raw 0x11

#org $before
$before 1 = \v\h06: Hey \v\h01! Have you\ncaught any more POKéMON yet?

#org $after
$after 1 = \v\h06: Not bad...

#org $beaten
$beaten 1 = \v\h06: You have a badge? I'm\nimpressed.\pAlthough, I already have two badges.\nRight now, I'm just taking a detour\pMT. MOON to catch a CLEFAIRY.\nAnyways, smell ya later.

First problem is at the checkflags. I swear I found the right values for deciding which Pokémon you took at the beginning, but perhaps not.

Also, when it reaches the pausemove 0, it freezes.

Can anyone help?
Hmmm.. try some things...

1. Flags.. change the first flags (184 and 196) to maybe (201 and 202) because 184 and 196 may be used by the game..

2. I don't see a pausemove.. or did you remove it already?

3. try adding end to each part of the script (except messages and movements)

4. add 0xFE to the movement
__________________
*´¨) Love life! Get paid!! Get laid!!!!
¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
(¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
  #1325   Link to this post, but load the entire thread.  
Old June 21st, 2008 (12:59 AM).
linkandzelda's Avatar
linkandzelda linkandzelda is offline
n00b desu ka?
 
Join Date: Dec 2006
Location: Hastings, England
Gender: Male
Nature: Careful
Posts: 776
hi.
can anybody explain the commands used in the trainer tower in fire red? or any other way to make a battle continue after you lose?

thanks in advance
link
__________________
Closed Thread

Quick Reply

Join the conversation!

Create an account to post a reply in this thread, participate in other discussions, and more!

Create a PokéCommunity Account
Ad Content

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

Forum Jump


All times are GMT -8. The time now is 9:23 AM.