The PokéCommunity Forums

The PokéCommunity Forums (https://www.pokecommunity.com/index.php)
-   Binary Hack Tutorials (https://www.pokecommunity.com/forumdisplay.php?f=66)
-   -   Sierra's MEGA-HUGE XSE Scripting Tutorial (https://www.pokecommunity.com/showthread.php?t=164276)

Giratina the master April 8th, 2009 7:24 AM

Why does when i make a trade i says unknown word givepokemon

Sierraffinity April 8th, 2009 2:10 PM

Quote:

Originally Posted by sophidius (Post 4515311)
Uhh, is there no way to get an earthquake in FR/LG?

There is. Check under the Specials section.

s270171 April 8th, 2009 6:59 PM

okay, regarding level scripts.
i got confused when you said it needs three parts...example maybe? I don't know... maybe its just cuz i dont really understand the point of variables...
could someone explain that too?

by the way love the tutorial. It got me soooooooooo far

oh and a regular scripting problem.
when I give the item TEACHY TV it will go into my bag but when I try and use it the screen goes black and it freezes. Is there something im missing?

NTA April 10th, 2009 1:58 PM

is tere a list of fanfares i can use?

rednano12 April 12th, 2009 12:07 PM

Thanks for the great guide! With this and Hackmew's included guide, I think I am starting to get the hang of scripting. I was wondering if it was possible to get a list of fanfares?

Sierraffinity April 12th, 2009 12:37 PM

Sorry, but I don't have a list of fanfares.

LunaticHigh April 12th, 2009 2:38 PM

For hidesprite, can you use it to hide the player's sprite?
If you can, what do you put for the person id?

triplexh18 April 13th, 2009 1:19 AM

Can someone help me with this script i'm really new to scripting but i still have read almost every tutorial but no matter what this scipt doesn't work the way i want it to

im trying to make a scipt so that once i enter a new area outside
Prof Oak runs up to me shouting my name with a "!" above his head then walking 2 steps down in front of me and his Prof Oak theme comes on and then he says about 2 paragraphs of text(i know how the \p \n \l works so i got that right) than before we battle the track goes to the ENCOUNTER 4 theme and than we fight(i gave him pokemon in A-trainer)with Gary's Elite Four theme.

the problem is whenever i step on the script either nothing happens or the game freezes and i already changed Var number and Unknown to what the tut said.

and when i talk to him myself the game freezes

but when i make another person with the same script as the Prof Oak i made
and talked to him then it works but then the 1st Oak does the script i wanted him to do but no battle occurs, the music doesn't change and then

i deleted and added some stuff to the script but can someone please tell me what script do i give to Oak and what script i put on that green S mark

this is what it says on the Green S
I opened the script and copied and pasted it here.

please correct any mistakes

//---------------
#org 0x8036F7
checkflag 0x8C0
if 0x1 goto 0x8803731
msgbox 0x880373A MSG_NORMAL //"OSCIZOR!"
playsong 0x156
applymovement 0x14 0x8803734
waitmovement 0x0
applymovement 0x14 0x8803736
pause 0x30
trainerbattle 0x0 0x1FF 0x0 @2 @ 3
msgbox 0x8803746 MSG_NORMAL //"Hold on OSCIZOR!\pI know you are\n..."
playsong 0x155 0x0
waitmovement 0x0
fadesong 0x12C
release
end
//---------------
#org 0x803731
release
end

//---------
// Strings
//---------
#org 0x80373A
= OSCIZOR!
#org 0x803746
= Hold on OSCIZOR!\pI know you are\ntrying to go onto battle this\lman but you see..I can't let you.\pThe reason being is\nthat you were not supposed to\l get this far and fight him...\pMy grandson was supposed to.\pAnd if you beat him...\lyou...\nyou will just ruin everything!\pWHY ARE YOU TRYING\nTO RUIN EVERYTHING!

//-----------
// Movements
//-----------
#org 0x803734
#raw 0x62 //Exclamation Mark (!)
#org 0x803736
#raw 0x52 //Jump in Place (Facing Down)
#raw 0x1D //Step Down (Fast)
#raw 0x1D //Step Down (Fast)

I also made a youtube video if it helps

i explain a little more there but i can't post a link so just combine all this with no spaces

ww w.
youtube.
com
/watch?v
=9PybIbNXY-8

my username there is Xboxproscar
along with the video
Fire Red Script 001 Footage

LunaticHigh April 13th, 2009 5:24 PM

Quote:

Originally Posted by triplexh18 (Post 4535206)
//---------------
#org 0x8036F7
checkflag 0x8C0
if 0x1 goto 0x8803731
msgbox 0x880373A MSG_NORMAL //"OSCIZOR!"
playsong 0x156
applymovement 0x14 0x8803734 <---- Is the event id from A.map turned into hex? This is probably why Oak isnt moving.
waitmovement 0x0
applymovement 0x14 0x8803736 <---- same here
pause 0x30
trainerbattle 0x0 0x1FF 0x0 @2 @ 3
msgbox 0x8803746 MSG_NORMAL //"Hold on OSCIZOR!\pI know you are\n..."
playsong 0x155 0x0
waitmovement 0x0
fadesong 0x12C
release
end
//---------------
#org 0x803731
release
end

//---------
// Strings
//---------
#org 0x80373A
= OSCIZOR!
#org 0x803746
= Hold on OSCIZOR!\pI know you are\ntrying to go onto battle this\lman but you see..I can't let you.\pThe reason being is\nthat you were not supposed to\l get this far and fight him...\pMy grandson was supposed to.\pAnd if you beat him...\lyou...\nyou will just ruin everything!\pWHY ARE YOU TRYING\nTO RUIN EVERYTHING!

//-----------
// Movements
//-----------
#org 0x803734
#raw 0x62 //Exclamation Mark (!)
#raw 0xFE <-- This is end of movements
#org 0x803736
#raw 0x52 //Jump in Place (Facing Down)
#raw 0x1D //Step Down (Fast)
#raw 0x1D //Step Down (Fast)
#raw 0xFE

I didn't look into your script too much but I can point out a few errors that might be messing up your script.
Changes and stuff are in bold.

You should also put this in the script help thread :X

triplexh18 April 15th, 2009 1:45 PM

thanks

I got it to work

NatureKeeper April 17th, 2009 10:57 AM

Thanks to this tutorial, I won't be needing scripters. I can script now, thanks for your efforts.

ElusionM April 17th, 2009 7:58 PM

Ok, guys. I've got a problem.
I've made a script so that if I don't have a certain pokemon(for this example, Pikachu), the guy will not move aside for me. I've used a checkpokemon script. However, if I don't have a Pikachu, the "Not allowed" message comes fine. However, when I DO have the Pikachu, he doesn't follow the applymovement, and top of that, the GAME FREEZES!

Here is the Code, please proof-read it for me; the last time I did anything related to hacking was 2007 and only for like a month; I've forgotten everything I knew and now have to relearn everything to also match with the new tools and the updates everyone is releasing:
Code:

'---------------
#org 0x71AC40
lock
faceplayer
setvar 0x8004 0x19
special2 LASTRESULT 0x17C
compare LASTRESULT 0x1
if 0x1 goto 0x871AD70
msgbox 0x871AD90 MSG_NORMAL '"Sorry, you're not allowed."
release
end

'---------------
#org 0x71AD70
applymovement 0x5 0x871ADA0

'---------
' Strings
'---------
#org 0x71AD90
= Sorry, you're not allowed.

'-----------
' Movements
'-----------
#org 0x71ADA0
#raw 0xE8 'movE8
#raw 0x0 'Face Down
#raw 0xD5 'movD5
#raw 0xE0 'movE0
#raw 0xE0 'movE0
#raw 0xE3 'movE3
#raw 0xEB 'movEB
#raw 0xD9 'movD9
#raw 0xD8 'movD8
#raw 0xAD 'movAD



machomuu April 17th, 2009 9:02 PM

Quote:

Originally Posted by ElusionM (Post 4554565)
Ok, guys. I've got a problem.
I've made a script so that if I don't have a certain pokemon(for this example, Pikachu), the guy will not move aside for me. I've used a checkpokemon script. However, if I don't have a Pikachu, the "Not allowed" message comes fine. However, when I DO have the Pikachu, he doesn't follow the applymovement, and top of that, the GAME FREEZES!

Here is the Code, please proof-read it for me; the last time I did anything related to hacking was 2007 and only for like a month; I've forgotten everything I knew and now have to relearn everything to also match with the new tools and the updates everyone is releasing:
Code:

'---------------
#org 0x71AC40
lock
faceplayer
setvar 0x8004 0x19
special2 LASTRESULT 0x17C
compare LASTRESULT 0x1
if 0x1 goto 0x871AD70
msgbox 0x871AD90 MSG_NORMAL '"Sorry, you're not allowed."
release
end

'---------------
#org 0x71AD70
applymovement 0x5 0x871ADA0

'---------
' Strings
'---------
#org 0x71AD90
= Sorry, you're not allowed.

'-----------
' Movements
'-----------
#org 0x71ADA0
#raw 0xE8 'movE8
#raw 0x0 'Face Down
#raw 0xD5 'movD5
#raw 0xE0 'movE0
#raw 0xE0 'movE0
#raw 0xE3 'movE3
#raw 0xEB 'movEB
#raw 0xD9 'movD9
#raw 0xD8 'movD8
#raw 0xAD 'movAD



http://i298.photobucket.com/albums/mm255/dragoncharger/Help.png
Credits to Dragonmaster91 for the picture.

Sierraffinity April 18th, 2009 5:11 AM

Quote:

Originally Posted by ElusionM (Post 4554565)
Ok, guys. I've got a problem.
I've made a script so that if I don't have a certain pokemon(for this example, Pikachu), the guy will not move aside for me. I've used a checkpokemon script. However, if I don't have a Pikachu, the "Not allowed" message comes fine. However, when I DO have the Pikachu, he doesn't follow the applymovement, and top of that, the GAME FREEZES!

Here is the Code, please proof-read it for me; the last time I did anything related to hacking was 2007 and only for like a month; I've forgotten everything I knew and now have to relearn everything to also match with the new tools and the updates everyone is releasing:
Code:

'---------------
#org 0x71AC40
lock
faceplayer
setvar 0x8004 0x19
special2 LASTRESULT 0x17C
compare LASTRESULT 0x1
if 0x1 goto 0x871AD70
msgbox 0x871AD90 MSG_NORMAL '"Sorry, you're not allowed."
release
end

'---------------
#org 0x71AD70
applymovement 0x5 0x871ADA0
waitmovement 0x5
end

'---------
' Strings
'---------
#org 0x71AD90
= Sorry, you're not allowed.

'-----------
' Movements
'-----------
#org 0x71ADA0
#raw 0xE8 'movE8
#raw 0x0 'Face Down
#raw 0xD5 'movD5
#raw 0xE0 'movE0
#raw 0xE0 'movE0
#raw 0xE3 'movE3
#raw 0xEB 'movEB
#raw 0xD9 'movD9
#raw 0xD8 'movD8
#raw 0xAD 'movAD
#raw 0xFE



Try it now. Changes are in bold.

machomuu April 18th, 2009 5:24 AM

Oh, I misread the script, sorry :P.

ElusionM April 18th, 2009 9:50 AM

Thanks guys/Diego! However, one more problem:

Now the script works, but I can click on the guy again, and AGAIN he moves back. I tried doing it so the script is IN FRONT of the tile he is on, rather than on himself, but now everytime I step on the tile, the script executes, and he moves even yet again!! To the point he's standing in other mountain tiles; which is fake looking.

I realize I need to use the 'setflag', but can you add it to the script to show me how's it's effectively done?

And what's wrong with this script(I know I'm missing good chunks of commands). When I step on it, it's supposed to be EARTHQUAKE, but instead the game freezes:

Code:

'---------------
#org 0x1F0FE0
special 0x136
msgbox 0x81F0FF0 MSG_NORMAL '"What!? What was that?"
release
end

'---------
' Strings
'---------
#org 0x1F0FF0
= What!? What was that?



s270171 April 19th, 2009 3:37 PM

level scripts.
how do u make it so that you can do more than one in the entire game. when i follwed your instructions it worked, but i could only do the one script. how do you change the script offset of the level script so i can make two of them?

HackinJohn April 20th, 2009 12:36 PM

Seeing as this script has been giving me a nightmare for the last two days, would someone like to offer any assistance? ;D

Before I go and show it off, here's what I'm *trying* to make happen:

Player comes through warp, and as soon as they step out of the cave, he is noticed by the leader of an evil organization. The leader walks over to him, talks to him, and then scares the player out of the way, and he disappears through the warp the player just came through.

Here's the script: (I'm sure there's plenty wrong with it.)

Code:

#dynamic 0x2FB2F7

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @done
setflag 0x200
applymovement 0x01 @move
waitmovement 0x0
msgbox @monologue 0x6
applymovement 0xFF @move2
waitmovement 0x0
applymovement 0x01 @move3
waitmovement 0x00
hidesprite 0x01
release
end

#org @done
release
end

#org @move
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x00
#raw 0x11
#raw 0x03
#raw 0x13
#raw 0x01
#raw 0xFE

#org @monologue
= I heard from one of my minors that\nsomeone had been interfering, and\lI guess, no doubt, that he or she\lwas heading up the mountain,\ltrying to get into the next city.\pI figured I would try to head them\noff by running to the peak.\pBut I never imagined that he or\nshe would be so young.\pAnd seeing as this would not be a\nfair fight, I will let you go this\ltime.\pBut we shall meet again.

#org @move2
#raw 0x62
#raw 0x50
#raw 0xFE

#org @move3
#raw 0x1E
#raw 0x1E
#raw 0x60
#raw 0xFE


Any kind of help would be more than magnificent. :D

Sierraffinity April 20th, 2009 1:53 PM

Quote:

Originally Posted by HackinJohn (Post 4565213)
Seeing as this script has been giving me a nightmare for the last two days, would someone like to offer any assistance? ;D

Before I go and show it off, here's what I'm *trying* to make happen:

Player comes through warp, and as soon as they step out of the cave, he is noticed by the leader of an evil organization. The leader walks over to him, talks to him, and then scares the player out of the way, and he disappears through the warp the player just came through.

Here's the script: (I'm sure there's plenty wrong with it.)

Code:

#dynamic 0x2FB2F7

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @done
setflag 0x200
applymovement 0x01 @move
waitmovement 0x0
msgbox @monologue 0x6
applymovement 0xFF @move2
waitmovement 0x0
applymovement 0x01 @move3
waitmovement 0x00
hidesprite 0x01
release
end

#org @done
release
end

#org @move
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x00
#raw 0x11
#raw 0x03
#raw 0x13
#raw 0x01
#raw 0xFE

#org @monologue
= I heard from one of my minors that\nsomeone had been interfering, and\lI guess, no doubt, that he or she\lwas heading up the mountain,\ltrying to get into the next city.\pI figured I would try to head them\noff by running to the peak.\pBut I never imagined that he or\nshe would be so young.\pAnd seeing as this would not be a\nfair fight, I will let you go this\ltime.\pBut we shall meet again.

#org @move2
#raw 0x62
#raw 0x50
#raw 0xFE

#org @move3
#raw 0x1E
#raw 0x1E
#raw 0x60
#raw 0xFE


Any kind of help would be more than magnificent. :D

This is meant to be a level script based on what you said, right? If it is, try this:
Code:

#dynamic 0x2FB2F7

#org @start
lock
faceplayer
setvar 0x(Variable) 0x1
setflag 0x200
applymovement 0x01 @move
waitmovement 0x0
msgbox @monologue 0x6
applymovement 0xFF @move2
waitmovement 0x0
applymovement 0x01 @move3
waitmovement 0x00
hidesprite 0x01
release
end

#org @move
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x00
#raw 0x11
#raw 0x03
#raw 0x13
#raw 0x01
#raw 0xFE

#org @monologue
= I heard from one of my minors that\nsomeone had been interfering, and\lI guess, no doubt, that he or she\lwas heading up the mountain,\ltrying to get into the next city.\pI figured I would try to head them\noff by running to the peak.\pBut I never imagined that he or\nshe would be so young.\pAnd seeing as this would not be a\nfair fight, I will let you go this\ltime.\pBut we shall meet again.

#org @move2
#raw 0x62
#raw 0x50
#raw 0xFE

#org @move3
#raw 0x1E
#raw 0x1E
#raw 0x60
#raw 0xFE


Now follow my tut and it should be running in no time! :)

HackinJohn April 20th, 2009 2:54 PM

Thank you so much, diego!!
Your tutorial has been so much help thus far!!

powerbomb April 21st, 2009 6:29 PM

Hello there, newbie at scripting (this tut helps a LOT).
I was looking around, and forgive my stupidity, but I have utterly no idea how to set up a Vs. Seeker script for a trainer. I used the regular trainer script, such as:

#dynamic 0x34ED04

#org @start
trainerbattle 0x0 0x004 0x0 @before @after
msgbox @beaten 0x6
release
end

#org @before
= INTRUDER ALERT!

#org @after
= So you are worthy!

#org @beaten
= I'll let you pass this once.

That's my script. But how do I make it so that the trainer responds to the Vs. Seeker?

s270171 April 22nd, 2009 12:12 PM

level scripts.
how do u make it so that you can do more than one in the entire game. when i follwed your instructions it worked, but i could only do the one script. how do you change the script offset of the level script so i can make two of them?

COULD SOMEONE PLEASE ANSWER THIS! it is kinda putting me at a stand-still in my game. plz!

CollinP April 25th, 2009 12:20 PM

umm... i have a question- is there a tutorial for newbies? cuz i can't understand any of this, and when i tried to do it, it didn't work...........

3 days later- nvm, i found out how to do it, ty

AmusedRaccoon April 27th, 2009 11:55 PM

The nickname pokemon script offset in LeafGreen is 0x1A74C7. (Whereas the one for FireRed, as Diego used in his tutorial, is 0x1A74EB.)

Just thought I'd point this out, since it felt good to bend Translhextion to my will for once. Maybe it'll help somebody! ;D

Satoshi Ookami April 30th, 2009 7:35 AM

I have a problem with pokemon giving script... I copied what you have here just to be sure that it's working but it isn't... person who I gave offset of script don't do a thing... Can anyone help me?


All times are GMT -8. The time now is 8:11 PM.


Like our Facebook Page Follow us on Twitter © 2002 - 2018 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 - 2016 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.

Acknowledgements
Use of PokéCommunity Assets
vB Optimise by DragonByte Technologies Ltd © 2023.