The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > Fan Games > Binary ROM Hacking
Reload this Page Script Requests/Sharing/Discussion

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
  #326   Link to this post, but load the entire thread.  
Old June 20th, 2007 (7:17 PM). Edited June 20th, 2007 by zel 2.0.
zel 2.0's Avatar
zel 2.0 zel 2.0 is offline
Gold Remaker
 
Join Date: Jun 2006
Location: Argentina
Age: 36
Gender: Male
Nature: Quiet
Posts: 1,955
Quote:
Originally Posted by shadowcreep View Post
is there a script for using an item to change the characters sprite like an costume change ?
I don't think there is such thing, as I'm sure nobody knows how to assign a script to an item use. And then, there is no way to change how a hero/ine looks in-game.

Quote:
Originally Posted by Deokishisu View Post
I'm having a problem with this script. Everything's fine until the applymovement. After I win the battle and talk to the person again, she doesn't move. Did I do something wrong?

Spoiler:
'-----------------------
#org 0x71DDEC
#raw 0x5C
trainerbattle 0x0 0x15F 0x0 0x871DE50 0x818ADFB
msgbox 0x818AE16 '"You won't be able to..."
callstd 0x6
applymovement 0x12 0x71DF54
end

#org 0x71DF54
#raw 0x11
#raw 0xFE
end

'---------
' Strings
'---------
#org 0x71DE50
= The TROPICAN SAFARI belongs to\nTEAM ROCKET!\pWhat?\nYou say you want to liberate it?
#org 0x18ADFB
= Oh, that makes me furious!
#org 0x18AE16
= I've got to tell the ADMIN in charge\nof this operation!

And is there any way to make the person say the "I've got to tell the ADMIN..." part directly after the battle? That way, you wouldn't have to talk to them in order to make them move.
All the applymovement commands require the use of a pause command after the applymovement. Just like this:

applymovement 0x12 0x71DF54
pause 0x20


Just change the 20 for a bigger value when the movement is longer.

[EDIT]: Oh, by the way, just change the trainerbattle command to this: trainerbattle 0x9 0x15F 0x0 0x818ADFB 0xOponentWins, and all the commands after the trainerbattle will get executed right after you win the battle (even that movement you wanted to do). The only bad point about this is that you need to make the introduction yourself (there's no pre-battle message as you can see in the command, and you get that extra OponentWins message, in case you lose the battle)
__________________


  #327   Link to this post, but load the entire thread.  
Old June 21st, 2007 (6:31 AM). Edited June 21st, 2007 by Deokishisu.
Deokishisu's Avatar
Deokishisu Deokishisu is offline
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
Posts: 984
EDIT: Ok, now I have another problem, everything in the script works great. All fine and dandy. But now I want her to disappear after the script is over. Y'know, disappear forever. I tried the movesprite command and that didn't work so... What command would allow me to do that? And where do I put it? Here's the script:

Spoiler:
'-----------------------
#org 0x71DDEC
lock
msgbox 0x871DE50 '"The TROPICAN SAFARI ..."
callstd 0x6
#raw 0x5C
trainerbattle 0x9 0x15F 0x0 0x818ADFB 0x871DEF0
msgbox 0x818AE16 '"I've got to tell the..."
callstd 0x6
applymovement 0x25 0x871DF54
pause 0x40
release
end


'---------
' Strings
'---------
#org 0x71DE50
= The TROPICAN SAFARI belongs to\nTEAM ROCKET!\pWhat?\nYou say you want to liberate it?
#org 0x18ADFB
= Oh, that makes me furious!
#org 0x71DEF0
= Ha!\nTEAM ROCKET prevails!
#org 0x18AE16
= I've got to tell the ADMIN in charge\nof this operation!

The movements are compiled and stuff. I was just too lazy to type them! So... Any help?
  #328   Link to this post, but load the entire thread.  
Old June 22nd, 2007 (1:06 PM).
EarthsVisitor EarthsVisitor is offline
Jolly Good
 
Join Date: May 2006
Location: New Jersey
Gender:
Nature: Calm
Posts: 385
Deokishisu:
In AdvanceMap, go to the sprite event that you want to dissapear and click on it.
On the side you should see something that says "Person ID" assign them any number. (I suggest 0###) (ex: 0543)
Then, in your script, at the point you want him/her to dissapear, put setflag 0xPERSONID.
So, for example, ours would be
setflag 0x543

Be reminded that this flag will only take place after the map the person is on, reloads.
So, you'd have to exit, and come back.

The best way is to movesprite, and ALSO do this, or you could force them to go into a house, then come back.
:)
__________________

  #329   Link to this post, but load the entire thread.  
Old June 23rd, 2007 (4:20 PM).
Deokishisu's Avatar
Deokishisu Deokishisu is offline
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
Posts: 984
I did do the setflag/person ID thingy and then my person wouldn't move. I'll try it again and see if it works.

How would I go about an applymove player script, then have someone talking and afterwords have a battle and then talk again and after that, have them leave, and you warp back somewhere. Would the basic format for the commands be in this order?:

Spoiler:
applymovement 0xFF
msgbox
callstd
trainerbattle
msgbox
callstd
applymovement
warp
end


Am I right about this?
  #330   Link to this post, but load the entire thread.  
Old June 23rd, 2007 (4:44 PM).
El Diabeetus's Avatar
El Diabeetus El Diabeetus is offline
Amateur Voice Actor / ROM Editor ('Hacker')
 
Join Date: Jul 2006
Age: 29
Nature: Lonely
Posts: 1,064
This is about scripted and the scripts okay so loaded my scripted with the rom without any spaces and in the same folder but when I tried to load a script it didn't work.
__________________
Hacks I'm currently working on (at a super slow pace):

Chinpokomon Big/Small (would leave the titles, but apparently exceeded sig limit)

Check my Japanese inspired Logo edits for Gens 1-7!:
http://www.pokecommunity.com/showpost.php?p=9137003
  #331   Link to this post, but load the entire thread.  
Old June 24th, 2007 (11:23 AM).
whirpoolboy whirpoolboy is offline
 
Join Date: May 2007
Gender:
Nature: Adamant
Posts: 10
Where can i find mid2agb its hard to find on google
  #332   Link to this post, but load the entire thread.  
Old June 25th, 2007 (6:29 AM).
zel 2.0's Avatar
zel 2.0 zel 2.0 is offline
Gold Remaker
 
Join Date: Jun 2006
Location: Argentina
Age: 36
Gender: Male
Nature: Quiet
Posts: 1,955
Quote:
Originally Posted by Deokishisu View Post
How would I go about an applymove player script, then have someone talking and afterwords have a battle and then talk again and after that, have them leave, and you warp back somewhere. Would the basic format for the commands be in this order?:

Spoiler:
applymovement 0xFF
msgbox
callstd
trainerbattle
msgbox
callstd
applymovement
warp
end


Am I right about this?
The correct unspecific order I would use is:

checkflag ->Use a flag so the event doesn't happen again
if 0x1 jump 0xEventFinished
applymovement
pause
msgbox
callstd
#raw 0x5C ->Well, this for FR, if you don't put this then the trainerbattle won't work on Scripted
trainerbattle
set or clear all the flags involved
msgbox
callstd
applymovement
pause
warp
end

EventFinished is quite easy, as it's just a release, then end.

Quote:
Originally Posted by Furanki Pkmn Master View Post
This is about scripted and the scripts okay so loaded my scripted with the rom without any spaces and in the same folder but when I tried to load a script it didn't work.
You tried to load a script from a rom, or from a .rbc file? (if it's the first, then it could be that the script was too big so, Scripted couldn't understand it, and it hang the program). Other than that, I'm not quite sure about other possibilities.
__________________


  #333   Link to this post, but load the entire thread.  
Old June 25th, 2007 (11:15 AM). Edited June 25th, 2007 by Deokishisu.
Deokishisu's Avatar
Deokishisu Deokishisu is offline
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
Posts: 984
Okay, script works fine. However, I was wondering how to make text pink? Y'know, like when women talk. I know that \c\h01Ë is blue and \c\h01É is green but what's pink? Oh, and this is for Firered so that colored text tutorial doesn't cover it.
  #334   Link to this post, but load the entire thread.  
Old June 25th, 2007 (7:06 PM).
Hedgehogger's Avatar
Hedgehogger Hedgehogger is offline
Learning ASM, but struggling
 
Join Date: Feb 2007
Location: Somewhere near a box.
Gender: Male
Nature: Quiet
Posts: 204
I've got yet another script Problem here. This is a script for a quest I'm trying to implement in Azure Blue some time later on. *Cough*MEGASPOILERALERT*Cough*
Spoiler:
#org 0x800BB0
checkflag 0x14B
if 0x1 goto 0x800DA0
message 0x800BC0
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x800BF0
message 0x800C50
boxset 0x6
release
end

#org 0x800BF0
message 0x800CB0
boxset 0x6
giveitem 0x34
setflag 0x14B
release
end

#org 0x800DA0
checkflag 0x31F
if 0x1 goto 0x800E70
message 0x800DC0
boxset 0x6
release
end

#org 0x800E70
message 0x800EA0
boxset 0x6
applymovement 0x800ED0
pausemove 0
setflag 0x31E
release
end

#org 0x800ED0
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xFE

#org 0x800BC0
= You there, you're a TRAINER, right?\pDo you want some help finishing the POKéDEX?

#org 0x800C50
= No? Well, I hope someone can help me find this\nrare POKéMON...

#org 0x800BF0
= Yes? Thank you!\pI found this ORB a long time ago...\nI think it can cause CELEBI to appear, but...\nI haven't had much luck.\pTake it. I think it'd work for you.\pCELEBI should be in a nearby forest somewhere.

#org 0x800DC0
= Have you found it?\nDid you catch CELEBI?

#org 0x800EA0
= You are a great TRAINER after all!\nThank you for all your help!\pI'd reward you, but...I don't have anything to give.\nI have to get going. I'll be at PROF. HAZEL's lab.\pSee you around!
But the thing is, I've looked up and down at this script and just can't place what's wrong with it. Every time I try to compile, it says "Error 13 Type Mismatch", but I don't see any unusual commands in here. Are the offsets too close, or are the strings just too long, or is it just too big of a script?

Also, the "Setflag 0x31E" is so I can make the people ID in AM and make the person disappear afterward.
  #335   Link to this post, but load the entire thread.  
Old June 25th, 2007 (7:32 PM).
zel 2.0's Avatar
zel 2.0 zel 2.0 is offline
Gold Remaker
 
Join Date: Jun 2006
Location: Argentina
Age: 36
Gender: Male
Nature: Quiet
Posts: 1,955
Quote:
Originally Posted by Hedgehogger View Post
I've got yet another script Problem here. This is a script for a quest I'm trying to implement in Azure Blue some time later on. *Cough*MEGASPOILERALERT*Cough*
Spoiler:
#org 0x800BB0
checkflag 0x14B
if 0x1 goto 0x800DA0
message 0x800BC0
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto 0x800BF0
message 0x800C50
boxset 0x6
release
end

#org 0x800BF0
message 0x800CB0
boxset 0x6
giveitem 0x34
setflag 0x14B
release
end

#org 0x800DA0
checkflag 0x31F
if 0x1 goto 0x800E70
message 0x800DC0
boxset 0x6
release
end

#org 0x800E70
message 0x800EA0
boxset 0x6
applymovement 0x800ED0
pausemove 0
setflag 0x31E
release
end

#org 0x800ED0
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0x8
#raw 0xFE

#org 0x800BC0
= You there, you're a TRAINER, right?\pDo you want some help finishing the POKéDEX?

#org 0x800C50
= No? Well, I hope someone can help me find this\nrare POKéMON...

#org 0x800BF0
= Yes? Thank you!\pI found this ORB a long time ago...\nI think it can cause CELEBI to appear, but...\nI haven't had much luck.\pTake it. I think it'd work for you.\pCELEBI should be in a nearby forest somewhere.

#org 0x800DC0
= Have you found it?\nDid you catch CELEBI?

#org 0x800EA0
= You are a great TRAINER after all!\nThank you for all your help!\pI'd reward you, but...I don't have anything to give.\nI have to get going. I'll be at PROF. HAZEL's lab.\pSee you around!
But the thing is, I've looked up and down at this script and just can't place what's wrong with it. Every time I try to compile, it says "Error 13 Type Mismatch", but I don't see any unusual commands in here. Are the offsets too close, or are the strings just too long, or is it just too big of a script?

Also, the "Setflag 0x31E" is so I can make the people ID in AM and make the person disappear afterward.
When you give an item you need to specify how many you want to give, so the giveitem command is: giveitem 0xItem 0xQuantity

By the way... What's that pausemove 0? Is that a pokescript command? (The normal way would be pause 0xValue)
__________________


  #336   Link to this post, but load the entire thread.  
Old June 26th, 2007 (12:33 AM).
Prof. 9 Prof. 9 is offline
 
Join Date: Jun 2006
Location: Netherlands
Gender: Male
Posts: 150
I'm having trouble with this script:
Quote:
Originally Posted by a fish stick.
#org 0xE3CFB9
lock
checkflag 0x860
compare LASTRESULT 0x1
if 0x1 goto 0xE3CFF2
checkflag 0x364
compare LASTRESULT 0x1
if 0x1 goto 0xE3CFF2
applymovement 0xFF 0xE3CFAE
pause 0x10
message 0xE3CFF5
boxset 0x4
setflag 0x364
warp 0x0 0x9 0x7
release
end

#org 0xE3CFAE
#raw 0x56
#raw 0xFE

#org 0xE3CFF2
release
end

#org 0xE3CFF5
= It sounds like a truck.
It's for Pokémon Emerald... It's suppossed to set flag 364, then refresh the map by warping, so that a sprite on the map dissappears.

However, I think the script doesn't set the flag at all, 'cuz the message box and the "!" show up and the player warps every time I trigger the script. What am I doing wrong?
  #337   Link to this post, but load the entire thread.  
Old June 26th, 2007 (6:03 AM).
Dark_porygon Dark_porygon is offline
Banned
 
Join Date: Apr 2007
Age: 34
Gender:
Nature: Brave
Posts: 53
can someone make this script for me?

oh hello can you help me, my husband is stuck in the rock of luciva city. Can you bring me to him ?
YES : (she walks after your 8 times left, 8 times up ,5 times left.
Oh thank you very much here take this (you get a nugget
(they walk all 1 down and right never to return again)
NO: Please if you find him say it to me

for pokescript.
  #338   Link to this post, but load the entire thread.  
Old June 26th, 2007 (6:57 AM). Edited June 26th, 2007 by tImE.
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 need a Script about a double battle with Jessie'n'James. Youre supposed to talk to jessie then she sais "Who are you? Doesnt matter dont disturb us"-(there it ends) when you talk to her again she say "Do you really want to get hurt?" -No: "Then get away!" -YES:"Then your wish is my law" then a batlle with her and james start. After the battle she says"Okay fine! We go then." then they disappears.

I cant script at all so thats why I need your help.
Plz help me someone!

EDIT: MEOWTH is with them he needs to Disappear too. Jessie is event 1E / 14 James is event 1F / 15 and Meowth is event 11/16
  #339   Link to this post, but load the entire thread.  
Old June 26th, 2007 (8:32 AM).
Hedgehogger's Avatar
Hedgehogger Hedgehogger is offline
Learning ASM, but struggling
 
Join Date: Feb 2007
Location: Somewhere near a box.
Gender: Male
Nature: Quiet
Posts: 204
Quote:
Originally Posted by zel View Post
When you give an item you need to specify how many you want to give, so the giveitem command is: giveitem 0xItem 0xQuantity

By the way... What's that pausemove 0? Is that a pokescript command? (The normal way would be pause 0xValue)
She said the Pausemove 0 thing works for ScriptED, and it does, because I've used it in another script (That checkitem one that I fixed behind the scenes), and I've fixed the Giveitem, and tried the pause 0x0, but it now says "Overflow error".
  #340   Link to this post, but load the entire thread.  
Old June 26th, 2007 (2:17 PM).
foullump's Avatar
foullump foullump is offline
Rom Hacking Guru
 
Join Date: Mar 2007
Location: United States
Nature: Calm
Posts: 221
I actually have a simple scripting question. For some reason, the compare lastresult doesn't work in this script. What's supposed to happen is that when you talk to this person, it will check if you have two pokemon. If you do, the person will battle you in a double battle. If not, It will do a single battle. I already made the person twice in Pet. One as a single battle (0x0EB), and as a double battle (0x0F5). But it always just goes to the single battle. Here's the script. If anyone has an answer, that would be great.

Code:
#org $battle
countpokemon
compare LASTRESULT 2
if B_true goto $double
trainerbattle 0 0x0EB $s1 $e1
message $win
boxset 6
release
end

#org $double
trainerbattle 0 0x0F5 $s1 $e1
message $win
boxset 6
release
end

#org $s1
$s1 1 = You! Are you a TEAM ROCKET\nassociate?

#org $e1
$e1 1 = Hmm! I guess you're not...

#org $win
$win 1 = Sorry about that. I just got\nconfused.
__________________
  #341   Link to this post, but load the entire thread.  
Old June 26th, 2007 (5:54 PM).
zel 2.0's Avatar
zel 2.0 zel 2.0 is offline
Gold Remaker
 
Join Date: Jun 2006
Location: Argentina
Age: 36
Gender: Male
Nature: Quiet
Posts: 1,955
Prof 9: I think that the main script (the one at 0xE3CFB9) is getting overwritten by the next closest script (the one at 0xE3CFF2), I don't think you have enough space there.

Hedgehogger: I found the problem at the script, you have an error at the applymovement command at 0x800E70, which is applymovement 0xSprite 0xMovement

I'll try to remember the two requests, but I'll do something when I have a little more time (in the meantime, if someone else wants to help... :))
__________________


  #342   Link to this post, but load the entire thread.  
Old June 26th, 2007 (9:43 PM). Edited June 27th, 2007 by Prof. 9.
Prof. 9 Prof. 9 is offline
 
Join Date: Jun 2006
Location: Netherlands
Gender: Male
Posts: 150
Quote:
Originally Posted by zel View Post
Prof 9: I think that the main script (the one at 0xE3CFB9) is getting overwritten by the next closest script (the one at 0xE3CFF2), I don't think you have enough space there.
No, no, the beginning of the next closest script is exactly 1 byte away from the end of the main script. I inserted the script first, with every offset 100 bytes higher than the previous one, then re-pointed everything to make more room for other scripts. I did that because Emerald doesn't have as much free space as the other Pokémon games.

EDIT: I'll give you the script properties in AdvanceMap, maybe the problem's there...

Map: Littleroot Town (of course I changed the name and map. I also resized it to 50x50 tiles.) (or maybe I shouldn't use the Littleroot map?)
Event no.: 7
Flag Value: 03 [-] 00
Flag Number: 50 [-] 40
Unknown: 00 [-] 00
Unknown: 00 [-] 00
Script Offset: *script offset, with the $ in front*
Maybe I have to use another flag (I used the Littleroot City's fat guy's flag. I also tried using a different flag, from an item script (you know, a regular Item Ball))?

EDIT2: Remember, it's for Pokémon Emerald!
  #343   Link to this post, but load the entire thread.  
Old June 27th, 2007 (6:15 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
Would this Sudowoodo script work as the one in Gold?

#org 0x800000
cry PKMN_SUDOWOODO
wildbattle 0xB9 0x24 0x3
end
__________________
  #344   Link to this post, but load the entire thread.  
Old June 28th, 2007 (7:56 AM).
Antwhan's Avatar
Antwhan Antwhan is offline
setting up for the big beta
 
Join Date: Jun 2007
Location: Pizza Capital of the World
Age: 32
Gender:
Nature: Quirky
Posts: 208
I was wondering how you would go about setting up a rival battle script, for firered.

i know it would need a movement set up then an engage trainerbattle and then make him walk away after...and u would need more than one movement set up since the path is bigger than one space...

if someone could show me at least an outline that i could follow, that would be so helpful...
  #345   Link to this post, but load the entire thread.  
Old June 28th, 2007 (11:06 AM).
Hedgehogger's Avatar
Hedgehogger Hedgehogger is offline
Learning ASM, but struggling
 
Join Date: Feb 2007
Location: Somewhere near a box.
Gender: Male
Nature: Quiet
Posts: 204
Quote:
Originally Posted by 44tim44 View Post
Would this Sudowoodo script work as the one in Gold?

#org 0x800000
cry PKMN_SUDOWOODO
wildbattle 0xB9 0x24 0x3
end
I would recommend trying "cry 0xA1 0xB9" in place of cry PKMN_SUDOWOODO. And, make the 0x3 into 0x0...unless you want a Wildbattle with Regi music against a Sudowoodo.
  #346   Link to this post, but load the entire thread.  
Old June 28th, 2007 (12:01 PM).
zel 2.0's Avatar
zel 2.0 zel 2.0 is offline
Gold Remaker
 
Join Date: Jun 2006
Location: Argentina
Age: 36
Gender: Male
Nature: Quiet
Posts: 1,955
To Prof.9: Are you sure the "if/goto" really works? (I don't know since I usually use if/jump), probably it's a flag problem, or perhaps you put the setflag command in a place in the script where it cannot set the flag (I don't know how Emerald behaves, really)

Quote:
Originally Posted by Dark_porygon View Post
can someone make this script for me?

oh hello can you help me, my husband is stuck in the rock of luciva city. Can you bring me to him ?
YES : (she walks after your 8 times left, 8 times up ,5 times left.
Oh thank you very much here take this (you get a nugget
(they walk all 1 down and right never to return again)
NO: Please if you find him say it to me

for pokescript.
All of this script is just a guess, because the script would also depend on where the hero's placed when talking to the woman, and because there are many things I can't write in a script without knowing the game more in deep (that's why people should learn to script, rather than asking for scripts :P)
By the way... I didn't understand what's that walking after saying yes... Most likely this script will be a waste...

Spoiler:
#org 0x800000
checkflag 0xMyFlag
if 0x1 jump 0x800040
message 0x8000A5
boxset 0x5
compare LASTRESULT 1
if 0x1 jump 0x800050
message 0x800100
boxset 0x2
end

#org 0x800040
message 0x800150
boxset 0x2
end

#org 0x800050
applymovement 0xFF 0x800090
pause 0x1
applymovement 0xPeopleNoOftheWoman'sSpriteinAdvMap 0x800090
pause 0x80 ->another guess here
message 0x800125
boxset 0x2
giveitem 0x6E 0x1 ->6E is Nugget, at least for FR
setflag 0xMyFlag
release
end

#org 0x800090
#binary 12 12 12 12 12 12 12 12 11 11 11 11 11 11 11 11 12 12 12 12 12 FE
#org 0x8000A5
= Oh, hello. Can you help me?\pMy husband is stuck in the rock of Luciva City.\nCan you bring me to him? (Are you sure about this, if it was "bring him to me", then the script would change a lot)
#org 0x800100
= Please, if you find him say it to me.
#org 0x800125
= Oh, thank you very much.\nHere, take this.
#org 0x800150
= Thank you for helping us.


probably you'd also need a clearflag command if you want to show up the woman where the other person is, and that would also mean that you'd need a setflag command in some other script in order to make the woman not showing up close to the person at the begin of all of this.

I tried to answer. But the script and its variants may be a little hard if you don't know much about scripting yet...

Quote:
Originally Posted by 44tim44 View Post
Hi I need a Script about a double battle with Jessie'n'James. Youre supposed to talk to jessie then she sais "Who are you? Doesnt matter dont disturb us"-(there it ends) when you talk to her again she say "Do you really want to get hurt?" -No: "Then get away!" -YES:"Then your wish is my law" then a batlle with her and james start. After the battle she says"Okay fine! We go then." then they disappears.

I cant script at all so thats why I need your help.
Plz help me someone!

EDIT: MEOWTH is with them he needs to Disappear too. Jessie is event 1E / 14 James is event 1F / 15 and Meowth is event 11/16
Just remember that if you want to make them disappear you also need to use Advance Map for a warping spot, and for adding the sprites you want to erase the flag "Disappear" in their People ID value.

Spoiler:
#org 0x800000
checkflag 0xTalkedOnce
if 0x1 jump 0x800020
setflag 0xTalkedOnce
message 0x800090
boxset 0x2
end

#org 0x800020
message 0x8000C0
boxset 0x5
compare LASTRESULT 1
if 0x1 jump 0x800050
message 0x8000E0
boxset 0x2
end

#org 0x800050
message 0x8000F3
boxset 0x2
#raw 0x5C
trainerbattle 0x9 0xIDinPETforthebattle 0x0 0x800110 0x800120
setflag 0xDisappear
message 0x800130
boxset 0x2
warp 0xMapBank 0xMapNumber 0xWarpNo ->put a warp in Advance Map, so that the screen refreshes and erases the Rocket's sprites
release
end

#org 0x800090
= Who are you?\nDoesn't matter, don't disturb us!
#org 0x8000C0
= Do you really want to get hurt?
#org 0x8000E0
= Then, get away!
#org 0x8000F3
= Then your wish is my law!
#org 0x800110
= We lost.
#org 0x800120
= We won.
#org 0x800130
= Okay fine!\nWe go then.


Quote:
Originally Posted by Antwhan View Post
I was wondering how you would go about setting up a rival battle script, for firered.

i know it would need a movement set up then an engage trainerbattle and then make him walk away after...and u would need more than one movement set up since the path is bigger than one space...

if someone could show me at least an outline that i could follow, that would be so helpful...
It usually is something like this

#org 0xStart
applymovement 0xSpritePeopleNumber 0xMovement1
pause 0xTime1
message 0xPreBattle
boxset 0x2
#raw 0x5C
trainerbattle 0x9 0xPETID 0x0 0xVictory 0xDefeat
setflag 0xDisappear
message 0xPostBattle
boxset 0x2
applymovement 0xSpritePeopleNumber 0xMovement2
pause 0xTime2
end


SpritePeopleNumber: You get it from Advance Map after clicking the trainer's sprite
PETID: You get it from the PET program, so you can specify which battle will occur

Obviously, trainer scripts can get as harder as you want...

That's all. Being really specific, and very clear when writing what you want the script to do always helps :)
__________________


  #347   Link to this post, but load the entire thread.  
Old June 28th, 2007 (8:02 PM).
magnetflygon magnetflygon is offline
Begginner Rom Hacker
 
Join Date: Jun 2007
Location: US
Age: 30
Gender:
Nature: Relaxed
Posts: 11
I wanted to know if I could get a sign script for Emerald, I never saw a script for a sign in the tutorial.
__________________
Currently looking for a third person to join a Rom Hacking team which Icalasari and I hope to set up. Please PM me or Icalasari if you are interested in joining.

P.S. Especially looking for someone who knows a thing or two about hex editing.
  #348   Link to this post, but load the entire thread.  
Old June 28th, 2007 (10:58 PM). Edited June 28th, 2007 by Prof. 9.
Prof. 9 Prof. 9 is offline
 
Join Date: Jun 2006
Location: Netherlands
Gender: Male
Posts: 150
Quote:
Originally Posted by zel View Post
To Prof.9: Are you sure the "if/goto" really works? (I don't know since I usually use if/jump), probably it's a flag problem, or perhaps you put the setflag command in a place in the script where it cannot set the flag (I don't know how Emerald behaves, really)
Thanks, ok, i'll try using if/jump.

EDIT: Nope, doesn't work at all...

EDIT2:
Quote:
Originally Posted by zel View Post
or perhaps you put the setflag command in a place in the script where it cannot set the flag
How do you mean, can you explain?

EDIT3:
Quote:
Originally Posted by magnetflygon View Post
I wanted to know if I could get a sign script for Emerald, I never saw a script for a sign in the tutorial.
I guess you just need a simple message script for that...
Quote:
Originally Posted by a fish stick
#org 0x[your script offset]
lock {though I don't know if you need that}
message 0x[your message offset]
boxset 0x4
release {though I don't know if you need that}
end

#org 0x[your message offset]
= Hello, I am a sign.
  #349   Link to this post, but load the entire thread.  
Old June 29th, 2007 (4:18 PM).
clakes707 clakes707 is offline
 
Join Date: Jun 2007
Gender:
Nature: Adamant
Posts: 49
Can someone make me a script that makes someone (I am going to use the guy in LittleRoot that says something about Proff. Birch) give you a Pokemon( Cyndaquil) once, and once you have it, he says " How is that Cyndaquil doing?" Thanks! Oh, and once the script is made, can someone tell me how to put it in the game? The scripting program I use is the ne called ScriptEd that comes with EliteMap. Can someone telll me EVERY step in putting the script into the guy? By every step, I mean from loading it in ScriptEd aqnd to playing the game to see if it works. Thanks once again!
  #350   Link to this post, but load the entire thread.  
Old June 29th, 2007 (5:54 PM).
foullump's Avatar
foullump foullump is offline
Rom Hacking Guru
 
Join Date: Mar 2007
Location: United States
Nature: Calm
Posts: 221
And I still have my unanswered question. I'll quote myself.
Quote:
Originally Posted by foullump View Post
I actually have a simple scripting question. For some reason, the compare lastresult doesn't work in this script. What's supposed to happen is that when you talk to this person, it will check if you have two pokemon. If you do, the person will battle you in a double battle. If not, It will do a single battle. I already made the person twice in Pet. One as a single battle (0x0EB), and as a double battle (0x0F5). But it always just goes to the single battle. Here's the script. If anyone has an answer, that would be great.

Code:
#org $battle
countpokemon
compare LASTRESULT 2
if B_true goto $double
trainerbattle 0 0x0EB $s1 $e1
message $win
boxset 6
release
end

#org $double
trainerbattle 0 0x0F5 $s1 $e1
message $win
boxset 6
release
end

#org $s1
$s1 1 = You! Are you a TEAM ROCKET\nassociate?

#org $e1
$e1 1 = Hmm! I guess you're not...

#org $win
$win 1 = Sorry about that. I just got\nconfused.
__________________
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:22 AM.