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
  #1351   Link to this post, but load the entire thread.  
Old June 26th, 2008 (3:48 PM).
Working Class Hero Working Class Hero is offline
 
Join Date: Mar 2006
Location: Ohio
Age: 30
Gender:
Nature: Naughty
Posts: 683
Okay this one is really confusing me because now a script that worked perfectly in my last game before it crashed doesn't work in another. (Both Fire Red hacks)

Quote:
#dynamic 0x8003CB

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

#org @pass
message @passx
boxset 6
waitmovement 0x0
applymovement 0x2 @movesprite1
Waitmovement 0x0
setflag 0x1041
release
end

#org @nopass
= Sorry, you can't go further!\nYou need the NATIONAL DEX.

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

#org @movesprite1
#raw 0x00
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x03
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x60
#raw 0xFE
It doesn't realize that I do have a national dex and it won't move. What is wrong?

Edit: Okay, now it realizes I have a national dex (I didn't even edit the script o.o) but now the person wont move. Help 3=
__________________
I would rather be with friends and family~

lolmence
  #1352   Link to this post, but load the entire thread.  
Old June 26th, 2008 (6:23 PM).
GKS's Avatar
GKS GKS is offline
Retired Hacker
 
Join Date: Aug 2007
Gender: Male
Nature: Calm
Posts: 1,319
So are we to assume that setflag 0x16F as already occured in an another event to make this event complete?

Why is "checkflag 0x232" before lock and face player? Is that a mistake or did you do that on purpose?

First of all, for movement, you only need to write "#raw" once per each applymovement and at the end finish it with 0xFE.

Instead of waitmovement can't you use
pausemove...
or
pause...

I think I see more mistake, but I'm not an expert yet. ;)
Try thethethethe scripting tutorial inthe tutorial section, it is really helpful, sorry if I could not help that much.
  #1353   Link to this post, but load the entire thread.  
Old June 26th, 2008 (7:46 PM). Edited June 26th, 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:
Originally Posted by G.K.S. View Post
So are we to assume that setflag 0x16F as already occured in an another event to make this event complete?

Why is "checkflag 0x232" before lock and face player? Is that a mistake or did you do that on purpose?

First of all, for movement, you only need to write "#raw" once per each applymovement and at the end finish it with 0xFE.

Instead of waitmovement can't you use
pausemove...
or
pause...

I think I see more mistake, but I'm not an expert yet. ;)
Try thethethethe scripting tutorial inthe tutorial section, it is really helpful, sorry if I could not help that much.
Neither of those matter. You can put #raw as many times as you want. You can put checkflag anywhere you want as long as it is before a certain thing (according to certain people.)

Also, you seemed to miss the fact where I said "It worked before on the exact same game"

Edit: It works now. I forgot to change 0x2 to 0x1. D:
__________________
I would rather be with friends and family~

lolmence
  #1354   Link to this post, but load the entire thread.  
Old June 27th, 2008 (1:20 AM).
Teh Baro's Avatar
Teh Baro Teh Baro is offline
In my times...!
 
Join Date: Mar 2006
Location: Spain
Gender: Male
Nature: Quiet
Posts: 521
Quote:
Originally Posted by αωαταρ αανγ View Post
Neither of those matter. You can put #raw as many times as you want. You can put checkflag anywhere you want as long as it is before a certain thing (according to certain people.)

Also, you seemed to miss the fact where I said "It worked before on the exact same game"

Edit: It works now. I forgot to change 0x2 to 0x1. D:
Anyway, you realize that checkflag does nothing, right?
__________________
what the fudge
  #1355   Link to this post, but load the entire thread.  
Old June 27th, 2008 (10:07 AM).
Minun200's Avatar
Minun200 Minun200 is offline
 
Join Date: Dec 2007
Gender:
Posts: 145
Can someone help me? I've been trying to make a Wild battle Script that will let you battle a pokemon, then you can't battle them again. (Such as the Regi Scripts) I need this for Pokemon Ruby. Can anyone show me a script to make?
__________________


  #1356   Link to this post, but load the entire thread.  
Old June 27th, 2008 (10:48 AM). Edited June 27th, 2008 by score_under.
score_under's Avatar
score_under score_under is offline
Inactive; Former ROM hack tool author, ❤️
 
Join Date: Aug 2005
Location: Kent, England
Age: 30
Gender: Female
Nature: Rash
Posts: 525
Quote:
Originally Posted by Minun200 View Post
Can someone help me? I've been trying to make a Wild battle Script that will let you battle a pokemon, then you can't battle them again. (Such as the Regi Scripts) I need this for Pokemon Ruby. Can anyone show me a script to make?
Wait, I know this is an indirect answer, but if you want to do this (and to learn how to research your own scripts), then find a place it is previously used.
The example I'm thinking of: Go to advancemap and go to the top of SKY PILLAR. Then open the Rayquaza script in your favourite editor (mine?) and then check out some of the commands it is using.
Then, providing you want a similar script, it's just a matter of changing the flag (try 0x201), changing the offset and changing the pokémon.
Oh yeah, and adding text, which is also easy.


If you solemnly swear you don't have the time and you're not just being lazy:
Spoiler:

Yeah, I do decompile and recompile with my own program, heh!
RAYQUAZA: (person ID 305, also the flag set when it disappears)
Code:

#org 0x815F316
'-----------------------------------
lock
faceplayer
battle 0x196 0x46 0x0
checksound
cry 0x196 0x2
pause 0x28
waitcry
setflag 0x305
setflag 0x861
special 0x138
waitspecial
clearflag 0x861
release
end
CUSTOM: BULBASAUR (Person number 201, just because we can. Set in advancemap.)
Code:

#org 0x8900000
'-----------------------------------
lock
faceplayer
battle 1 15 0
checksound
cry 1 2
pause 0x28
waitcry
setflag 0x201
special 0x138
waitspecial
release
end
__________________
Plz not to PM me, I don't come here often enough. Email if you need me
  #1357   Link to this post, but load the entire thread.  
Old June 27th, 2008 (7:59 PM).
Megiddo-san's Avatar
Megiddo-san Megiddo-san is offline
Barium - Summer '12 Return?
 
Join Date: Dec 2007
Location: Where you least expect it
Age: 31
Gender: Male
Nature: Relaxed
Posts: 1,308
Here's the raws for you linkinzelda. Sorry about the wait. #raw 0x5C 0x09 0x47 0x01 0x03 0x00
#raw 0xEA 0xDD 0x18 0x08 0x1A 0xDE
#raw 0x18 0x08 3rd and 4th = trainer value reversed.
__________________

Hashire! Asu e tsudzuku shinka no micha wa
  #1358   Link to this post, but load the entire thread.  
Old June 28th, 2008 (1:39 AM).
Minun200's Avatar
Minun200 Minun200 is offline
 
Join Date: Dec 2007
Gender:
Posts: 145
Can someone show me a basic battle script so you can verse a wild pikachu when you go up to it. Then it dissapears after you won the battle, I need it for Pokemon ruby. Thanks.
__________________


  #1359   Link to this post, but load the entire thread.  
Old June 28th, 2008 (2:52 AM).
lukeh's Avatar
lukeh lukeh is offline
Former ROM Hacker
 
Join Date: Jun 2008
Location: Pennsylvania
Gender:
Nature: Adamant
Posts: 122
I don't know the least thing about scripting. If nobody joins my team, then I will have to do it myself. Can someone tell me the basics with out confusing things that I won't even e able to read?
__________________
Spoiler:


Spoiler:

Brothers:
Sisters:
Twin: darkshade
Cousins: Dark Wolf X, Turtwigtoon
Best Friends:
PM me if you want to join or join something not listed here


HELP WANTED:
  • Title Screen Editor (Main)
  • Sprite Editor (Main)
  • Map Editor (Assistant)
  • Script Editor (Main)
  #1360   Link to this post, but load the entire thread.  
Old June 28th, 2008 (12:27 PM).
GKS's Avatar
GKS GKS is offline
Retired Hacker
 
Join Date: Aug 2007
Gender: Male
Nature: Calm
Posts: 1,319
Quote:
Originally Posted by αωαταρ αανγ View Post
Neither of those matter. You can put #raw as many times as you want. You can put checkflag anywhere you want as long as it is before a certain thing (according to certain people.)

Also, you seemed to miss the fact where I said "It worked before on the exact same game"

Edit: It works now. I forgot to change 0x2 to 0x1. D:
Well, how was someone supposed to help you if the problem was something simple like that? You should make sure of those stuff before posting it for help.
  #1361   Link to this post, but load the entire thread.  
Old June 29th, 2008 (9:16 PM).
Lollypop's Avatar
Lollypop Lollypop is offline
Member since '07 <300 posts
 
Join Date: Nov 2007
Location: Melbourne,Australia
Age: 25
Gender: Male
Nature: Modest
Posts: 250
I was bored so I made a random script but it dosen't work.
Here it is:
#org $begin
lock
faceplayer
message $1
boxset 6
release
end

#org $1
$1 1 =\c\h01\h05Hi. \nWho are you?

Could someone plz tell e whats wrong with it thx.

P.S: I used Pokescript
__________________
N.W.A

(N-words with attitude)
  #1362   Link to this post, but load the entire thread.  
Old July 2nd, 2008 (12:11 PM). Edited July 2nd, 2008 by foullump.
foullump's Avatar
foullump foullump is offline
Rom Hacking Guru
 
Join Date: Mar 2007
Location: United States
Nature: Calm
Posts: 221
Quote:
Originally Posted by Elite Salamance09 View Post
I was bored so I made a random script but it dosen't work.
Here it is:
#org $begin
lock
faceplayer
message $1
boxset 6
release
end

#org $1
$1 1 =\c\h01\h05Hi. \nWho are you?

Could someone plz tell e whats wrong with it thx.

P.S: I used Pokescript
There's nothing wrong with it, as I see. It must be insertion problems.
Quote:
Originally Posted by Minun200 View Post
Can someone show me a basic battle script so you can verse a wild pikachu when you go up to it. Then it dissapears after you won the battle, I need it for Pokemon ruby. Thanks.
Code:
#org $go
faceplayer
wildbattle 25 10 0
#raw 0x27
setflag 0x1200
removesprite 0x800F
release
end
That should do it. But if you use XSE I can't help. (I hate that program) Just put 1200 for the sprite's ID in advance map. Assuming you want Pikachu to be at level 10...
__________________
  #1363   Link to this post, but load the entire thread.  
Old July 2nd, 2008 (10:54 PM).
dragonarche dragonarche is offline
Is back :D
 
Join Date: Apr 2008
Location: New bark town
Gender: Male
Nature: Brave
Posts: 458
my event wont stop happening
when i walk over it it keeps saing"iam lost agin"how do i make this only happen once
script:

#org $begin
lock
faceplayer
checkflag 0x201
message $lost
$lost 1 =Iam lost agin!
boxset 6
setflag 0x201
release
end




plesse help
__________________

Experienced Vb.net and C# Dev
  #1364   Link to this post, but load the entire thread.  
Old July 2nd, 2008 (11:36 PM).
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
of course it won't stop. -,-
ya forgot these...

#org $begin
lock
faceplayer
checkflag 0x201
if b_true goto $done
message $lost
$lost 1 =I am lost again!
boxset 6
setflag 0x201
release
end

#org $done
release
end
__________________

  #1365   Link to this post, but load the entire thread.  
Old July 3rd, 2008 (1:00 AM).
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
AAAAAAAAAAAAA
 
Join Date: Mar 2008
Location: Best City OCE
Age: 27
Gender: Male
Nature: Relaxed
Posts: 5,978
Quote:
Originally Posted by Elite Salamance09 View Post
I was bored so I made a random script but it dosen't work.
Here it is:
#org $begin
lock
faceplayer
message $1
boxset 6
release
end

#org $1
$1 1 =\c\h01\h05Hi. \nWho are you?

Could someone plz tell e whats wrong with it thx.

P.S: I used Pokescript
Hehehe, foullump, you messed up!

Anyhows, ES, where the message is at the bottom: you put double 1 instead of a single 1...
__________________
Everything ends,
and that's always sad.
But everything begins again, too,
and that's always happy.
  #1366   Link to this post, but load the entire thread.  
Old July 3rd, 2008 (1:21 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
Quote:
Originally Posted by dark lakitu View Post
Hehehe, foullump, you messed up!

Anyhows, ES, where the message is at the bottom: you put double 1 instead of a single 1...
what do you mean by double 1..?
it does suppose to look like that.

for instance...

Code:
#org $start
lock
faceplayer
message $hi
boxset 6
release
end

#org $hi
$hi 1 = Hi.\nWho are you?
and it's just the same as...

Code:
#org $start
lock
faceplayer
message $1
boxset 6
release
end

#org $1
$1 1 = Hi.\nWho are you?
__________________

  #1367   Link to this post, but load the entire thread.  
Old July 3rd, 2008 (5:47 AM).
maoh4567's Avatar
maoh4567 maoh4567 is offline
that's what she said...
 
Join Date: May 2008
Location: Novaliches, Quezon City, Philippines
Age: 29
Nature: Modest
Posts: 44
hey...does anyone knows what is the problem w/ this script...

Spoiler:
#org $start
lock
faceplayer
checkflag 0x829
if b_true goto $done
countpokemon
compare LASTRESULT 0x1
if b_>> goto $continue
message $1
boxset 6
release
end

#org $done
message $2
boxset 6
#org $2
$2 1 =How's your Pokedex going??
release
end

#org $continue
message $congratz
boxset 6
$congratz 1 =Is that your Pokemon?\p...\pCongratulations!!!\nAs I've promised, I will\lgive you your own Pokedex!\lPlease follow me...
applymovement 0x06 $move
pausemove
applymovement 0xFF $move1
pausemove
applymovement 0x06 $move2
#org $move
#raw 0x17 0x17 0x17 0x01 0xFE
#org $move1
#raw 0x34 0x34 0x34 0x34 0x34 0x34 0x01 0xFE
#org $move2
#raw 0x02
setflag 0x200
fanfare 0x13e
message $gotdex
boxset4
$gotdex 1 =You got Pokedex
waitfanfare
setflag 0x829
release
end

#org $1
$1 1 =Hey...\nyou have no Pokemon...\lCome back if you have your\lown Pokemon and I will give you\la Pokedex...
__________________



  #1368   Link to this post, but load the entire thread.  
Old July 3rd, 2008 (5:51 AM).
Megiddo-san's Avatar
Megiddo-san Megiddo-san is offline
Barium - Summer '12 Return?
 
Join Date: Dec 2007
Location: Where you least expect it
Age: 31
Gender: Male
Nature: Relaxed
Posts: 1,308
All I see is that you need a 0 after the pausemoves.
__________________

Hashire! Asu e tsudzuku shinka no micha wa
  #1369   Link to this post, but load the entire thread.  
Old July 3rd, 2008 (6:33 AM).
robie392's Avatar
robie392 robie392 is offline
Pokemon Prof.
 
Join Date: Jun 2008
Location: TALLON IV
Age: 27
Nature: Modest
Posts: 58
in pokemon collisum you know the pirufy thing wre you pirufy your pokemon how could you make a script like that but for pokemon fire red english version
  #1370   Link to this post, but load the entire thread.  
Old July 3rd, 2008 (10:20 AM).
Quilava's Master's Avatar
Quilava's Master Quilava's Master is offline
Shattered Dreams '13
 
Join Date: Jul 2007
Nature: Adamant
Posts: 694
does anyone know what value # to put in a battle script to make it use in conjection with vs seeker. Like i wanna make a battle script that wrks and if i use the vs seeker than i can battle themn again
__________________
The return of Pokemon Shattered Dreams! Click the screenshot to visit the thread, you know you want to.
  #1371   Link to this post, but load the entire thread.  
Old July 4th, 2008 (3:02 AM).
Thrace's Avatar
Thrace Thrace is offline
@tion
 
Join Date: Jun 2007
Age: 32
Gender: Male
Posts: 1,048
Quote:
Originally Posted by robie392 View Post
in pokemon collisum you know the pirufy thing wre you pirufy your pokemon how could you make a script like that but for pokemon fire red english version
Umm, what exactly happens? I don't think its possible because you can't 'take' a pokemon from the player.

Quote:
Originally Posted by Quilava's Master View Post
does anyone know what value # to put in a battle script to make it use in conjection with vs seeker. Like i wanna make a battle script that wrks and if i use the vs seeker than i can battle themn again
From what I can remember I think they use a special for the VS. Seeker. So you won't be able to sorry. But you can just use the scripts that are in it already. As an alternative you could just make a script that checks if the trainer flag has been set and if it has it could just go to a different trainerbattle.
__________________
  #1372   Link to this post, but load the entire thread.  
Old July 4th, 2008 (5:48 PM).
Elite 4 Sam's Avatar
Elite 4 Sam Elite 4 Sam is offline
Steel Type User
 
Join Date: May 2007
Location: Training in Iron Island
Age: 27
Gender: Male
Nature: Adamant
Posts: 115
How do you set up a battle with XSE?
__________________
Hard as nails, Steel Prevails!


My shinies are legit!
  #1373   Link to this post, but load the entire thread.  
Old July 5th, 2008 (1:32 AM).
Thrace's Avatar
Thrace Thrace is offline
@tion
 
Join Date: Jun 2007
Age: 32
Gender: Male
Posts: 1,048
Quote:
Originally Posted by Elite 4 Sam View Post
How do you set up a battle with XSE?
In XSE push F1 in the drop down box look for either trainerbattle or wildbattle depending on what you want to do. That'll tell you what you need to know.
__________________
  #1374   Link to this post, but load the entire thread.  
Old July 5th, 2008 (4:17 AM).
Lollypop's Avatar
Lollypop Lollypop is offline
Member since '07 <300 posts
 
Join Date: Nov 2007
Location: Melbourne,Australia
Age: 25
Gender: Male
Nature: Modest
Posts: 250
Quote:
Originally Posted by dark lakitu View Post
Hehehe, foullump, you messed up!

Anyhows, ES, where the message is at the bottom: you put double 1 instead of a single 1...
I put double 1 because of thethethethe's tutorial.
__________________
N.W.A

(N-words with attitude)
  #1375   Link to this post, but load the entire thread.  
Old July 5th, 2008 (7:12 PM).
Ninja Caterpie's Avatar
Ninja Caterpie Ninja Caterpie is offline
AAAAAAAAAAAAA
 
Join Date: Mar 2008
Location: Best City OCE
Age: 27
Gender: Male
Nature: Relaxed
Posts: 5,978
Argh...Oops that IS right...
Well, I can't see anything wrong then...
__________________
Everything ends,
and that's always sad.
But everything begins again, too,
and that's always happy.
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:24 AM.