Sierra's MEGA-HUGE XSE Scripting Tutorial Page 44

Started by Sierraffinity December 26th, 2008 6:55 PM
  • 776138 views
  • 1232 replies
Seen January 15th, 2020
Posted November 2nd, 2014
6 posts
10 Years
--SOLVED!--

Hello :D I'd just like to ask something reaaaally quick since I'm tired and I'm about to go to sleep.

So I was waddling in the internet when I got the bright idea of making my pokemon game (which I tried 100 times before but they all ended up in failures...), so I started scripting with XSE thinking it was super easy, and.... nothing worked.

It's pretty much like this: I follow all of the instructions in this tutorial, and I even sometimes copy and paste some scripts to test my problem, but naww, once I save and go test the game out, all of the person events simply just "beep" and do absolutely nothing :)

This is a great tutorial but my IQ must be way too low to understand how my GODDA-- my treacherous Advance Map and XSE fail to... well, script...?

I use the latest Advance map (duh), Pokemon Emerald, and... what more? Well I just copy pasted the basic message box script from this tutorial to the game and it still just bleeps. Yes, I compiled and everything blah bluh bleh, But something isn't working.

If anyone can help, I appreciate you for your assistance even if it might not solve the problem. Thank you!

PS: Memento, failing in everything since 199... wait what?

*EDIT after almsot closing the web page and going to sleep* And yes, I do know I should've gone to the other pages and F3 for people that have the same problems and not make more trouble posts that have been answered, but c'mon, I'm lazy AND sleepy. There's no worse combination. I did google but since ROM hacking isn't mainstream, google flipped me away and now I'm here. Thank you. Now, if I could get some sleep I'd be really happy... ...

SECOND EDIT: I found the problem. Somehow my XSE was ****ing it up so I changed into the version... 1.11 I believe? I had 1.0.0 so if it's not working for someone and you're using Advance Map 1.92, try this. Heads up for Flareon destiny gold or whatever his name was for the help :D This message can be deleted, I'm just leaving it here so if someone comes on and reads this, it might help them.
Seen July 21st, 2016
Posted November 3rd, 2014
5 posts
10.3 Years
Hello :D I'd just like to ask something reaaaally quick since I'm tired and I'm about to go to sleep.

So I was waddling in the internet when I got the bright idea of making my pokemon game (which I tried 100 times before but they all ended up in failures...), so I started scripting with XSE thinking it was super easy, and.... nothing worked.

It's pretty much like this: I follow all of the instructions in this tutorial, and I even sometimes copy and paste some scripts to test my problem, but naww, once I save and go test the game out, all of the person events simply just "beep" and do absolutely nothing :)

This is a great tutorial but my IQ must be way too low to understand how my GODDA-- my treacherous Advance Map and XSE fail to... well, script...?

I use the latest Advance map (duh), Pokemon Emerald, and... what more? Well I just copy pasted the basic message box script from this tutorial to the game and it still just bleeps. Yes, I compiled and everything blah bluh bleh, But something isn't working.

If anyone can help, I appreciate you for your assistance even if it might not solve the problem. Thank you!

PS: Memento, failing in everything since 199... wait what?

*EDIT after almsot closing the web page and going to sleep* And yes, I do know I should've gone to the other pages and F3 for people that have the same problems and not make more trouble posts that have been answered, but c'mon, I'm lazy AND sleepy. There's no worse combination. I did google but since ROM hacking isn't mainstream, google flipped me away and now I'm here. Thank you. Now, if I could get some sleep I'd be really happy... ...
Try a script like this one:

#dynamic 0x800000

#org @script
lock
faceplayer
msgbox @tekst
boxset 6
release
end

#org @tekst
= Tekst
Female
germany
Seen January 11th, 2017
Posted November 10th, 2014
3 posts
8.5 Years
Step 14:
There should be a minimum of three parts to the script: two things with pointers and your script that you made. In the second part, there should be a pointer to your script. Under it, there should be a #raw word 0x(random number). Replace the random number with 0. Compile it and test it out in the game.
Please add to that step that you have to compile everything even if everything looks alright in the decompiled offset.
Because every damn tutorial forgot to mention that and I wasted my time for days -.-"

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
The last line says to compile :(

U.Flame

Maker of Short Games

Age 27
Male
Unknown
Seen 6 Days Ago
Posted January 17th, 2023
1,322 posts
14.9 Years
I want to give decorations in an event in Sapphire, and found out that the right command is giveitem3. Does anyone have a list of the Ruby/Sapphire decoration numbers?
The more you learn about something, the more you realize just how much you don't know. I've shelved my more ambitious ideas in favor of smaller, more feasible projects and contributions. While I still have an ongoing project, and still intend to experiment with improving Gen 3's multiplayer, it's been much less stressful doing smaller things, like entries for Anthroyd's MAGM contests.

Of which you can check out here:
Naillevaihcam
Magical Altering Gym Menagerie
Male
Antarctica
Seen April 1st, 2020
Posted September 26th, 2017
326 posts
9.1 Years
@Snorlax44: It's similar to a question. If the flag has been set in a past script with setflag 0x##, then you can jump to a different text string using if 0x1 goto @yesflag. If you have not set the flag, then it'll go directly down the line and go to a different pointer. Then you end it like all other scripts.

Mana

Age 31
Male
UK
Seen March 25th, 2023
Posted August 18th, 2021
10,075 posts
14.3 Years
I want to give decorations in an event in Sapphire, and found out that the right command is giveitem3. Does anyone have a list of the Ruby/Sapphire decoration numbers?
Hmm, I don't think I've ever seen a compiled list. However you could perhaps look at the merchants selling decorations and work it out from there?

Decorations are purchased with Pokémon Dollars from a variety of locations, such as the Pretty Petal Flower Shop on Route 104, and the Lilycove Department Store among other places.
Male
America
Seen August 5th, 2019
Posted August 5th, 2019
928 posts
8.7 Years
is this script has fault
#dynamic 0x800000

#org @start
msgbox @hello 0x2
end

#org @hello
= not working

if not then why it is not working

This script is fine. I just checked it. The problem might be XSE. What version do you have?


"Memories warm you up from
the inside."

dsret

Learning to hack.

Male
The Hole. No one's been there.
Seen June 9th, 2016
Posted December 27th, 2014
3 posts
11.9 Years
I've been working on a hack, and this tutorial has been very helpful, but whenever I try to make a
checkflag script that checks for a badge, it either switches to another script I've written for another NPC, or it just freezes my character, with the game still running. Help anyone?
Here's my script:

#dynamic 0x800500

#org @start
checkflag 0x820
if 0x1 goto @pass
msgbox @prints 0x6
applymovement 0xff @move
end

#org @pass
msgbox @ok 0x6
end

#org @prints
= Wait! Don't step on those\nfootprints! I'm inspecting them.\lYou can come back after I'm done!

#org @move
#raw 0x10
#raw 0xfe

#org @ok
= I'm all done. Turns out they were my own footprints. Hehe...



Thanks in advance.






Percy

Male
Asia
Seen December 24th, 2021
Posted June 19th, 2021
3,045 posts
8.7 Years
I've been working on a hack, and this tutorial has been very helpful, but whenever I try to make a
checkflag script that checks for a badge, it either switches to another script I've written for another NPC, or it just freezes my character, with the game still running. Help anyone?
Here's my script:

#dynamic 0x800500

#org @start
checkflag 0x820
if 0x1 goto @pass
msgbox @prints 0x6
applymovement 0xff @move
end

#org @pass
msgbox @ok 0x6
end

#org @prints
= Wait! Don't step on those\nfootprints! I'm inspecting them.\lYou can come back after I'm done!

#org @move
#raw 0x10
#raw 0xfe

#org @ok
= I'm all done. Turns out they were my own footprints. Hehe...



Thanks in advance.






Maybe you're overwriting something, try some new offset.
i don't want to have a signature

dsret

Learning to hack.

Male
The Hole. No one's been there.
Seen June 9th, 2016
Posted December 27th, 2014
3 posts
11.9 Years
Maybe you're overwriting something, try some new offset.
Still doesn't seem to work... :/
This signature has been disabled.
The image is way too large.
Please review and fix the issues by reading the signature rules.

You must edit it to meet the limits set by the rules before you may remove the [sig-reason] code from your signature. Removing this tag will re-enable it.

Do not remove the tag until you fix the issues in your signature. You may be infracted for removing this tag if you do not fix the specified issues. Do not use this tag for decoration purposes.

DarkenedEclipse

Project Oak

Male
Sinnoh
Seen December 24th, 2016
Posted October 2nd, 2015
207 posts
8.9 Years
Still doesn't seem to work... :/
I have highlighted your key points you're missing. They're in bold.
#dynamic 0x800500

#org @start
lock
faceplayer
checkflag 0x820
if 0x1 goto @pass
msgbox @prints 0x6
applymovement 0xff @move
waitmovement 0x0
end

#org @pass
msgbox @ok 0x6
release
end

#org @prints
= Wait! Don't step on those\nfootprints! I'm inspecting them.\lYou can come back after I'm done!

#org @move
#raw 0x10
#raw 0xfe

#org @ok
= I'm all done. Turns out they were my own footprints. Hehe...


Just a simple missing waitmovement the lock and faceplayer are optional however.
As Blaziken XY said, never write a script to the same offset twice or else you corrupt the data! Make sure your green scripting tile is set too this:
Unknown: 0300
Var Number: 4050
~Eclipse

dsret

Learning to hack.

Male
The Hole. No one's been there.
Seen June 9th, 2016
Posted December 27th, 2014
3 posts
11.9 Years
I have highlighted your key points you're missing. They're in bold.
#dynamic 0x800500

#org @start
lock
faceplayer
checkflag 0x820
if 0x1 goto @pass
msgbox @prints 0x6
applymovement 0xff @move
waitmovement 0x0
end

#org @pass
msgbox @ok 0x6
release
end

#org @prints
= Wait! Don't step on those\nfootprints! I'm inspecting them.\lYou can come back after I'm done!

#org @move
#raw 0x10
#raw 0xfe

#org @ok
= I'm all done. Turns out they were my own footprints. Hehe...


Just a simple missing waitmovement the lock and faceplayer are optional however.
As Blaziken XY said, never write a script to the same offset twice or else you corrupt the data! Make sure your green scripting tile is set too this:
Unknown: 0300
Var Number: 4050
~Eclipse
Thank you so much!
But do I need to put the 'Unknown' to 0300 and 'Var Number' to 4050 everytime I make a similar
script to this?

DarkenedEclipse

Project Oak

Male
Sinnoh
Seen December 24th, 2016
Posted October 2nd, 2015
207 posts
8.9 Years
Thank you so much!
But do I need to put the 'Unknown' to 0300 and 'Var Number' to 4050 everytime I make a similar
script to this?
To my current knowledge, yes I do believe so as I looked at Diego's tutorial itself XD.
~Eclipse

DarkShedinja

Nerd

Age 25
Male
Philippines
Seen August 16th, 2021
Posted January 17th, 2020
63 posts
9 Years
Thank you for this awesome and really helpful Tutorial ! :D