Sierra's MEGA-HUGE XSE Scripting Tutorial Page 6

Started by Sierraffinity December 26th, 2008 6:55 PM
  • 776138 views
  • 1232 replies
Seen July 23rd, 2009
Posted June 19th, 2009
11 posts
14.2 Years
WHY!! everytime i try scripting and i leave my house it resets heres my script i deleted oak lol =P
Spoiler:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
applymovement 0x06 @move
msgbox @2 0x6
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
Hidesprite 6
release
end

#org @1
= WAIIIT!!!

#org @2
= Take this Eevee for protection./n/nCya around kk?

#org @move
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
If yu want custom pokemon mixes (fusions)
made pm me *looks at display picture
HACKS I SUPPORT:
Spoiler:

Please hatch my eggs clik them and warm them =P
Seen September 26th, 2009
Posted May 9th, 2009
3 posts
14.1 Years
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
applymovement 0x06 @move
msgbox @2 0x6
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
Hidesprite 6
release
end

#org @1
= WAIIIT!!!

#org @2
= Take this Eevee for protection./n/nCya around kk?

#org @move
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E

You must use flags in it. For example

#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x1111
if 0x1 goto @(var) <--- Choose an variable
msgbox @1 0x6
applymovement 0x06 @move
msgbox @2 0x6
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
Hidesprite 6
setflag 0x1111
release
end

#org @1
= WAIIIT!!!

#org @2
= Take this Eevee for protection./n/nCya around kk?

#org @move
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E
#raw 0x1E

#org @(var)
release
end

Matteron (96)

Can't Read Lookin Ass

Age 26
Seen December 4th, 2022
Posted April 3rd, 2011
270 posts
15 Years
Hey guys remember me. Well thanks to this tut I learned how to script extremly well, but after making plent of scripts there is one script that im stuck on

#dynamic 0x743CF8

#org @start
applymovement 0xFF @?
applymovement 0x03 @!
waitmovement 0x0
msgbox @1 0x6
fanfare 0x13E
msgbox @givedex 0x6
msgbox @cya 0x6
applymovement 0x03 @bye
waitmovement 0x0
setflag 0x829
hidesprite 0x800F
setflag 0x200
release
end

#org @?
#raw 0x63
#raw 0xFE

#org @!
#raw 0x00
#raw 0x62
#raw 0xFE

#org @1
= Bryan: Hey! \v\h01! How is it\ngoing?\l\v\h01: Good, you?\lBryan: Good.\l\v\h01: Anyhow, aren't you\lsupposed to be at Nartu Island?\lBryan: Ya, I am supposed to leave\ltoday, but I was waiting for you\lso I could give this to you.

#org @givedex
= [green_fr]\v\h01 recieved a POKEDEX

#org @cya
= Oh! Look at the time, gotta run.

#org @bye
#raw 0x11
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE
what happens is that "bryan" (the guy who you are talking) reapears and blocks your way again. Also you have to keep talking to him and recieve the pokedex to pass.

can anyone find a way to hide him for good.
Matteron(96)
Currently Playing--->
Progress: Post-Game
Current Team:


In Terms of Hacking...
Favorite ROM
Skills
Working On
In Terms of Game Dev...
Working On
News
I'm currently up for hire, for almost anything in ROM hacking, so just send me a PM.

HackChu

I need a haircut...

Age 30
Male
Bankrupt Amerika
Seen September 23rd, 2020
Posted September 22nd, 2020
674 posts
16.3 Years
Take a look at this:

#dynamic 0x71A32C

#org @start
checkflag 0x820
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x04 @move
pause 0x20
release
end

#org @done
release
end

#org @move
#raw 0x12
#org @1
= Here you go!

The guy says what I told him to,and than he takes a step at me than the game crashes.What did I do wrong?

Matteron (96)

Can't Read Lookin Ass

Age 26
Seen December 4th, 2022
Posted April 3rd, 2011
270 posts
15 Years
Take a look at this:

#dynamic 0x71A32C

#org @start
checkflag 0x820
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x04 @move
pause 0x20
release
end

#org @done
release
end

#org @move
#raw 0x12
#org @1
= Here you go!

The guy says what I told him to,and than he takes a step at me than the game crashes.What did I do wrong?
Try this: (changes are bold)

#dynamic 0x71A32C

#org @start
checkflag 0x820
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x04 @move
pause 0x20
release
end

#org @done
release
end

#org @move
#raw 0x12
#raw 0xFE
#org @1
= Here you go!

I used to have the same problem see you were missing #raw 0xFE after your movements. Without #raw 0xFE (which ends the movements) the game thinks that somebody still has to move so it waits until somebody does...which will never happen...moral of the story is that no #raw 0xFE=no continue...understand
Matteron(96)
Currently Playing--->
Progress: Post-Game
Current Team:


In Terms of Hacking...
Favorite ROM
Skills
Working On
In Terms of Game Dev...
Working On
News
I'm currently up for hire, for almost anything in ROM hacking, so just send me a PM.

HackChu

I need a haircut...

Age 30
Male
Bankrupt Amerika
Seen September 23rd, 2020
Posted September 22nd, 2020
674 posts
16.3 Years
Um,I used this and when my character got to a door they didn't do in,they stood on it,and the character didn't show,which was Oak in the beginning.

#dynamic 0x71A26C

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x03 @move
waitmovement 0x0
msgbox @2 0x6
applymovement 0x03 @move2
pause 0x20
playsong 0x13E 0x0
applymovement 0x03 @move3
applymovement 0x03 @move4
applymovement 0xFF @move5
waitmovement 0x0
fadesong 0x12C
release
end

#org @done
release
end

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

#org @move2
#raw 0x13
#raw 0x13
#raw 0xFE

#org @move3
#raw 0x11
#raw 0xFE

#org @move4
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0xFE

#org @move5
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0xFE
#org @1
= Hey, wait up!
#org @2
= Come follow me.

Try this: (changes are bold)

#dynamic 0x71A32C

#org @start
checkflag 0x820
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x04 @move
pause 0x20
release
end

#org @done
release
end

#org @move
#raw 0x12
#raw 0xFE
#org @1
= Here you go!

I used to have the same problem see you were missing #raw 0xFE after your movements. Without #raw 0xFE (which ends the movements) the game thinks that somebody still has to move so it waits until somebody does...which will never happen...moral of the story is that no #raw 0xFE=no continue...understand
Thanks,but I found that out after I posted lol.

Matteron (96)

Can't Read Lookin Ass

Age 26
Seen December 4th, 2022
Posted April 3rd, 2011
270 posts
15 Years
How do you combine (in Ruby) a trainerbattle script with an applymovement script. Also, I wanna learn it so I can make in notepad. If not, that's fine.
um lets see here I don't think you can make in notepad(fix m if i'm wrong) and about the movement do you want it after or before the trainer battle

ps can anyone fix my script plz

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?
Now on to the script...lets see what could be the matter...hmm... well you could have got a offset with not enough bytes, or you could have just not compiled it...
Matteron(96)
Currently Playing--->
Progress: Post-Game
Current Team:


In Terms of Hacking...
Favorite ROM
Skills
Working On
In Terms of Game Dev...
Working On
News
I'm currently up for hire, for almost anything in ROM hacking, so just send me a PM.
Seen November 30th, 2020
Posted May 3rd, 2009
2 posts
15.9 Years
Hello there! Maybe someone can help me.

I just wanted to try out the "Giveitem" script, but everytime I try to compile it says:

Missing #define or Parameter on the Line 21 (marked)

------------------

#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @done
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @done
msgbox @3 0x6
release
end

#org @take
giveitem 0xD 0x1 MSG_OBTAIN
msgbox @3 0x6
setflag 0x200
release
end

#org @1
= Hi!\pI'm from the Cherrygrove\nPokeMart.\pWhy don't you take this\nfree sample?

#org @2
= That's okay. I'm sure someone\nelse will enjoy it.
#org @3
= If you want more, you'll\nhave to go to the PokeMart\nto buy them.

------------------------


I hope you can help me T_T

Matteron (96)

Can't Read Lookin Ass

Age 26
Seen December 4th, 2022
Posted April 3rd, 2011
270 posts
15 Years
Hello there! Maybe someone can help me.

I just wanted to try out the "Giveitem" script, but everytime I try to compile it says:

Missing #define or Parameter on the Line 21 (marked)

------------------

#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @done
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @done
msgbox @3 0x6
release
end

#org @take
giveitem 0xD 0x1 MSG_OBTAIN
msgbox @3 0x6
setflag 0x200
release
end

#org @1
= Hi!\pI'm from the Cherrygrove\nPokeMart.\pWhy don't you take this\nfree sample?

#org @2
= That's okay. I'm sure someone\nelse will enjoy it.
#org @3
= If you want more, you'll\nhave to go to the PokeMart\nto buy them.

------------------------


I hope you can help me T_T
I don't see anything wrong with it its perfectly fine...does anyone no what's wrong with it?
Matteron(96)
Currently Playing--->
Progress: Post-Game
Current Team:


In Terms of Hacking...
Favorite ROM
Skills
Working On
In Terms of Game Dev...
Working On
News
I'm currently up for hire, for almost anything in ROM hacking, so just send me a PM.

Curt_09

Also known as Chozo

Age 32
Male
Oklahoma
Seen March 14th, 2023
Posted March 27th, 2016
498 posts
14.2 Years
Hello there! Maybe someone can help me.

I just wanted to try out the "Giveitem" script, but everytime I try to compile it says:

Missing #define or Parameter on the Line 21 (marked)

------------------

#dynamic 0x800000

#org @start
lock
faceplayer
checkflag 0x200
if 0x1 goto @done
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @done
msgbox @3 0x6
release
end

#org @take
giveitem 0xD 0x1 MSG_OBTAIN
msgbox @3 0x6
setflag 0x200
release
end

#org @1
= Hi!\pI'm from the Cherrygrove\nPokeMart.\pWhy don't you take this\nfree sample?

#org @2
= That's okay. I'm sure someone\nelse will enjoy it.
#org @3
= If you want more, you'll\nhave to go to the PokeMart\nto buy them.

------------------------


I hope you can help me T_T
I can't find anything wrong with this, except you may want to space between org2 and org3 down there at the bottom. Try changing the MSG_OBTAIN to 0x1.
Old hacks I liked back in the day:



colcolstyles

Yours truly

Male
The Bay Area
Seen May 18th, 2019
Posted August 13th, 2012
1,588 posts
15 Years
I just wanted to try out the "Giveitem" script, but everytime I try to compile it says:

Missing #define or Parameter on the Line 21 (marked)

...

giveitem 0xD 0x1 MSG_OBTAIN
Well if the error code says that you're "Missing #define or Parameter on the Line 21" then that's probably the problem. From what I understand, 'MSG_OBTAIN' is read by XSE and replaced with a byte when the script is compiled. However, you have to define what exactly 'MSG_OBTAIN' should be replaced by. The XSE built-in guide should be able to help you with using the '#define' preprocessing directive.

Brother of Vrai

Satoshi Ookami

Memento Mori

Age 30
Male
Abyss of Time, Great Seal
Seen August 5th, 2018
Posted July 3rd, 2018
14,253 posts
14.8 Years
Now on to the script...lets see what could be the matter...hmm... well you could have got a offset with not enough bytes, or you could have just not compiled it...
I compiled it of course... do ya think that problem could be with flags? because without flags scripts workin'...
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List
Seen December 15th, 2010
Posted May 9th, 2009
3 posts
14.1 Years
#dynamic 0x2DD0F8

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x6
applymovement 0x01 @move
waitmovement 0x0
applymovement 0xFF @move2
pause 0x30
msgbox @2 0x6
applymovement 0x01 @move3
applymovement 0xFF @move3
waitmovement 0x0
release
end

#org @done
release
end

#org @move
#raw 0x62
#raw 0x01
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @move2
#raw 0x03
#raw 0xFE

#org @move3
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org @1
= Hey! [player]!

#org @2
= Here! Try this out!
What are the Unknown and Var numbers for this script? How do I find them?
Seen June 24th, 2014
Posted February 19th, 2011
317 posts
14.8 Years
Ehe, NVM. forgort that thread's a tutorial, not a script help thread...

Anyways, I used to think scripting was hard to the level of "Insanium in the Cranium" But its not!

Ty for the tut, see you and good night!

.:Youtube:Sprites:My Fanfic:My Brawl Card:.

|Tensai's Secret|Adamant Diamond|
I Support Those Hacks
Thanks Ryukun for amazing theme

2% of the population thinks Global Warming is a scam. If you're one of the 98% who actually feel the drastically changing temperature, place this in your sig.

Woodridge, IL
Seen June 9th, 2009
Posted May 25th, 2009
80 posts
14.1 Years
You are wrong, your pointers are not offsets. #org 0x720AFE ----> This should be a pointer example: @give, @1.
No, this is the compiled version. And there's nothing wrong with the pointers.
My Newest Hack, Pokemon Dark Shadow Version:
http://www.pokecommunity.com/showthread.php?t=179246


Seen May 23rd, 2009
Posted May 21st, 2009
32 posts
14 Years
I have a problem, I use Advance Map, overwrite a script, and then what do I do? Because it always goes back to the old script. (I have debug, compiled, saved it and yet nothing works. Yes I am new at using XSE, but can someone help?)

I was using the give pokemon charmander code.





Cna yuo raed tihs? Olny 55% of plepoe can.
I cdnuolt blveiee taht I cluod aulaclty uesdnatnrd waht I was rdanieg. The phaonmneal pweor of the hmuan mnid, aoccdrnig to a rscheearch at Cmabrigde Uinervtisy, it dseno't mtaetr in waht oerdr the ltteres in a wrod are, the olny iproamtnt tihng is taht the frsit and lsat ltteer be in the rghit pclae. The rset can be a taotl mses and you can sitll raed it whotuit a pboerlm. Tihs is bcuseae the huamn mnid deos not raed ervey lteter by istlef, but the wrod as a wlohe. Azanmig huh? yaeh and I awlyas tghuhot slpeling was ipmorantt!
fi yuo cna raed tihs, palce it in yuor siantugre.

HackChu

I need a haircut...

Age 30
Male
Bankrupt Amerika
Seen September 23rd, 2020
Posted September 22nd, 2020
674 posts
16.3 Years
you should post in the script help thread,you will get answers there sooner.
Join us!

My 'learning how to combine battle scripts' thread:
http://www.pokecommunity.com/showthread.php?t=183001

SoulSilver FC:1162 1864 5409
Name: Ethan

Black FC: 2666 1354 4379
Name: Ashton

White 2 FC: 1120 8065 3049
Name: Nate

3DS Friend Code: 1349-4646-2412
Name: tysonrss

Pheya

Is very excited about HH & SS.

Seen January 2nd, 2010
Posted December 31st, 2009
80 posts
15.1 Years
I have a problem, I use Advance Map, overwrite a script, and then what do I do? Because it always goes back to the old script. (I have debug, compiled, saved it and yet nothing works. Yes I am new at using XSE, but can someone help?)

I was using the give pokemon charmander code.
Try remaking the script. ;)