Sierra's MEGA-HUGE XSE Scripting Tutorial Page 18

Started by Sierraffinity December 26th, 2008 6:55 PM
  • 776138 views
  • 1232 replies
Age 27
Male
We're now near the Tin Tower! . xD
Seen November 10th, 2010
Posted July 10th, 2010
44 posts
13.2 Years
I tried to write new code in this and save it and it does not work. I save the changes and when i go back and check to be sure, nothing has happened.

Uhh . . Did you press COMPILE? And what do you mean by save? You just save the file into an .rbc/.rbh file? If so, then that's your problem!


JOHTO ELITE FOUR


. . .

Ready4failure

my friends and i on youtube...

Age 29
Male
NY, USA
Seen November 7th, 2011
Posted May 24th, 2010
18 posts
13.1 Years
i was so proud of my self, because i finally understand how to do weather commands. but I have a small problem. I want the script to activate when i step outside. so, i put the script on the tile outside the door. bbuuuuutttttttt, when i step out of the door, it doesnt activate. I have to step outside, step off the tile in front of the door, then step BACK ON it to make it rain. i kinda wanted it to activate the second i step outside. is there some reason this isnt working? I'm including the script in a spoiler (to save space), but its really not needed because its the same as the example, just different flag lol.
Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x300
if 0x1 goto @next
setweather 0x3
doweather
setflag 0x300
release
end
#org @next
setweather 0x2
doweather
clearflag 0x300
release
end


oh, and btw, im IN LOVE with this tutorial. its helped me quite a bit since im new to hacking.
Male
22nd floor of the Carrot Tower in Setagaya, Tokyo, Japan
Seen September 30th, 2010
Posted September 6th, 2010
123 posts
14.8 Years

Uhh . . Did you press COMPILE? And what do you mean by save? You just save the file into an .rbc/.rbh file? If so, then that's your problem!
What do you mean? I have the same problem and it's freaking me out. :nervous:

0m3GA ARS3NAL

Im comin' home...

Age 30
Male
Superjail Penitentiary
Seen February 25th, 2023
Posted September 12th, 2013
1,816 posts
15.3 Years
i was so proud of my self, because i finally understand how to do weather commands. but I have a small problem. I want the script to activate when i step outside. so, i put the script on the tile outside the door. bbuuuuutttttttt, when i step out of the door, it doesnt activate. I have to step outside, step off the tile in front of the door, then step BACK ON it to make it rain. i kinda wanted it to activate the second i step outside. is there some reason this isnt working? I'm including the script in a spoiler (to save space), but its really not needed because its the same as the example, just different flag lol.
Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x300
if 0x1 goto @next
setweather 0x3
doweather
setflag 0x300
release
end
#org @next
setweather 0x2
doweather
clearflag 0x300
release
end


oh, and btw, im IN LOVE with this tutorial. its helped me quite a bit since im new to hacking.
You have to make something like that a level script.
>Boot Jailbot
>Pass *****
.
.
Jailbot OS Ver 1.1.2
Greetings Warden
of Superjail Penitentiary
Awaiting user input...

>Display User_Info
╠══User Info══╣
Username:
0m3GA ARS3NAL
Age: 18
Sex: Male ♂
Race: Caucasian
Quote:
"What is this
I don't even..."

M/O: Often acts out to get attention, but recently has changed that. Has been studying up on hacking information and hopes to participate in more advanced hacking discussion.
╠══End of File══╣
Awaiting user input...

>

Ready4failure

my friends and i on youtube...

Age 29
Male
NY, USA
Seen November 7th, 2011
Posted May 24th, 2010
18 posts
13.1 Years
You have to make something like that a level script.
oh, well thats unfortunate. Guess I'll have to learn how to do that *sighs* and i've heard such scary things about them. Thanx tho.
Not Racist, Not Violent, No Longer Silent!

EVERYONE GO HERE!! its my best buddy's site! http://pokemall.proboards.com he's really excited bout it, and its gunna be good!

Failure, I'm always ready for. It's the people trying to hold me back from trying, the people holding me from my dreams, they are what I can't stand...
Olivine City, Johto
Seen September 3rd, 2016
Posted January 12th, 2011
92 posts
16.2 Years
I've run into a bad problem recently right in the middle of my hacking/scripting. I'm trying to write script tile scripts (NOT level scripts), and I'm putting the "0300" and "4050", but it doesn't work. My overworld just walks right over it like nothing was there. However, when I put "0000" in for everything, the script makes the game freeze. So I'm not sure why it isn't working...any insight would be nice!

Here's an illustration:
Spoiler:


And now my full code:
Spoiler:
#dynamic 0x31B82C

#org @start
lock
checkflag 0x1013
if 0x1 goto @end
showsprite 0xB
applymovement 0xFF @player
waitmovement 0x0
applymovement 0xB @john
waitmovement 0x0
trainerbattle 0x1 0x01F 0x0 @starts @after @later
fadescreen 0x1
hidesprite 0xB
setflag 0x1013
fadescreen 0x0
release
end

#org @starts
= Howdy, [PLAYER]!\pI'm surprised you found your way\nthrough this cave, even I had a\llittle bit of trouble doing it.\pIt looks like your Pokémon have\ngotten stronger.\pLet's hope so, or else this battle\nis going to be just too easy for\lme!= Howdy, [PLAYER]!\pI'm surprised you found your way\nthrough this cave, even I had a\llittle bit of trouble doing it.\pIt looks like your Pokémon have\ngotten stronger.\pLet's hope so, or else this battle\nis going to be just too easy for\lme!= Howdy, [PLAYER]!\pI'm surprised you found your way\nthrough this cave, even I had a\llittle bit of trouble doing it.\pIt looks like your Pokémon have\ngotten stronger.\pLet's hope so, or else this battle\nis going to be just too easy for\lme!

#org @after
= Another defeat.

#org @later
msgbox @johns 0x6
fadescreen 0x1
hidesprite 0xB
setflag 0x1013
fadescreen 0x0
release
end

#org @johns
= I'm going to head to Celadon City\nnext player, see you around.

#org @player
#raw 0x1
#raw 0x62
#raw 0xFE

#org @john
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org @end
release
end
Spoiler:

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
I've run into a bad problem recently right in the middle of my hacking/scripting. I'm trying to write script tile scripts (NOT level scripts)
You just answered your question =)
Without level script, script won't be working just like you want.
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List

Azary3172

My Favorites Pokemon Games

Male
Kuching, Sarawak, Malaysia
Seen March 28th, 2019
Posted March 28th, 2019
40 posts
13.3 Years
Nice tutorial! I will make this one soon! :)
My favorites games

1. Doom (all version) including my favorites editor, Doom Builder!
2. Pokemon (all version since 2000 on first emulator - SmyGb).
3. Final Fantasy (4, 5 and 6 on SNES, GBA and 9 on PS1).
4. Duke Nukem 3D Atomic Editon (under Eduke3d with Mapster included)

and many more.... :D
Age 27
Male
Slovenia
Seen March 30th, 2015
Posted July 24th, 2013
3,475 posts
15.2 Years
Because you're supposed to use \n and \l =)
Just because this Ash guy here didn't properly explain what he meant, I'll do it for you.
See how the slashes / and \ are different. Well, you need to use \ this one.

I've run into a bad problem recently right in the middle of my hacking/scripting. I'm trying to write script tile scripts (NOT level scripts), and I'm putting the "0300" and "4050", but it doesn't work. My overworld just walks right over it like nothing was there. However, when I put "0000" in for everything, the script makes the game freeze. So I'm not sure why it isn't working...any insight would be nice!

Here's an illustration:
Spoiler:


And now my full code:
Spoiler:
#dynamic 0x31B82C
 
#org @start
lock
checkflag 0x1013
if 0x1 goto @end
showsprite 0xB
applymovement 0xFF @player
waitmovement 0x0
applymovement 0xB @john
waitmovement 0x0
trainerbattle 0x1 0x01F 0x0 @starts @after @later
fadescreen 0x1
hidesprite 0xB
setflag 0x1013
fadescreen 0x0
release
end
 
#org @starts
= Howdy, [PLAYER]!\pI'm surprised you found your way\nthrough this cave, even I had a\llittle bit of trouble doing it.\pIt looks like your Pokémon have\ngotten stronger.\pLet's hope so, or else this battle\nis going to be just too easy for\lme!= Howdy, [PLAYER]!\pI'm surprised you found your way\nthrough this cave, even I had a\llittle bit of trouble doing it.\pIt looks like your Pokémon have\ngotten stronger.\pLet's hope so, or else this battle\nis going to be just too easy for\lme!= Howdy, [PLAYER]!\pI'm surprised you found your way\nthrough this cave, even I had a\llittle bit of trouble doing it.\pIt looks like your Pokémon have\ngotten stronger.\pLet's hope so, or else this battle\nis going to be just too easy for\lme!
 
#org @after
= Another defeat.
 
#org @later
msgbox @johns 0x6
fadescreen 0x1
hidesprite 0xB
setflag 0x1013
fadescreen 0x0
release
end
 
#org @johns
= I'm going to head to Celadon City\nnext player, see you around.
 
#org @player
#raw 0x1
#raw 0x62
#raw 0xFE
 
#org @john
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
 
#org @end
release
end
You don't use 0300, you use 0003.

bigboi

Hacker of the 3rd Generation

Male
Canada
Seen June 8th, 2014
Posted February 14th, 2012
20 posts
12.9 Years
Just because this Ash guy here didn't properly explain what he meant, I'll do it for you.
See how the slashes / and \ are different. Well, you need to use \ this one.
Thanks for that. It works.

I have another problem. I make multiple people in a room, and one is deleted, while 2 share the same script. They all have different script offsets. How does this not work?

qaz015393

pokemon revenge developer

Age 32
Male
Seen 18 Hours Ago
Posted 5 Days Ago
785 posts
13.8 Years
thanks i finally understand how to use xse but i need help with one thing. can someone tell me what i did wrong im trying to enter a city & then have a pokemon notice me run away from me. did i do the code right.were did i ness up.
#dynamic 0x2166F0

#org @start
checkflag 0x01
if 0x01 goto @done
lock
faceplayer
textcolor 0x01
msgbox @talk1 0x6
setflag 0x4
release
end

#org @done
faceplayer
clearflag 0x04
release
end

#org @talk1
= !!!
Olivine City, Johto
Seen September 3rd, 2016
Posted January 12th, 2011
92 posts
16.2 Years
Is there any script to remove a Pokemon from your party?

For instance, in my current hack game, there is a scene where you have no Pokemon, the Prof. of the region lets you borrow one, but I want the Prof. to take it back right away. I'm guessing it's something like "removepokemon" but I'm not sure. I've searched this tut and I've missed it if it's included somewhere.

Thanks!
Spoiler:

colcolstyles

Yours truly

Male
The Bay Area
Seen May 18th, 2019
Posted August 13th, 2012
1,588 posts
15 Years
Is there any script to remove a Pokemon from your party?

For instance, in my current hack game, there is a scene where you have no Pokemon, the Prof. of the region lets you borrow one, but I want the Prof. to take it back right away. I'm guessing it's something like "removepokemon" but I'm not sure. I've searched this tut and I've missed it if it's included somewhere.

Thanks!
HackMew posted some nice ASM code that allows you to do that. You can find it here.

Brother of Vrai

5qwerty

WHOLLY MOLEY

Male
Seen 2 Days Ago
Posted December 14th, 2022
2,012 posts
14.1 Years
Hey, could someone help me with this script? I just can't seem to get it to work.

Spoiler:
#dynamic 0x800000

#org @start
lock
checkflag 0x502
if 0x1 goto @end
msgbox @heal 0x6
faceplayer
trainerbattle 0x1 0x001 0x0 @before @after @later
end

#org @later
msgbox @beaten 0x2
fadescreen 0x1
hidesprite 0x5
setflag 0x503
fadescreen 0x0
applymovement 0x4 @moveleft
waitmovement 0x4
msgbox @awesome 0x6
fadescreen 0x3
special 0x1
fadescreen 0x2
msgbox @leave 0x6
fadescreen 0x1
hidesprite 0x4
setflag 0x502
clearflag 0x500
warp 0x4 0x3 0xFF 0x6 0x4
fadescreen 0x0
release
end

#org @end
release
end

#org @heal
= Now I'm finished healing, and\nI'll be on my way...

#org @before
= Hey, you!\nDon't mess with me!\lI'll whip you!

#org @after
= Wait, what is this?

#org @beaten
= Fufufu...\nI could have gotten away if that\lstupid [rival] kid didn't show up\lto stall my time.\lI'll remember this!

#org @awesome
= [player], I am proud.\nThat was a splendid battle!\lI'll heal your Pokémon for you.

#org @leave
= Sorry, but I have to do\nsome more research.\lBye!

#org @moveleft
#raw 0x10
#raw 0x02
#raw 0xFE

Everything else is fine, I just can't initiate the trainerbattle script.

thanks i finally understand how to use xse but i need help with one thing. can someone tell me what i did wrong im trying to enter a city & then have a pokemon notice me run away from me. did i do the code right.were did i ness up.
#dynamic 0x2166F0

#org @start
checkflag 0x01
if 0x01 goto @done
lock
faceplayer
textcolor 0x01
msgbox @talk1 0x6
setflag 0x4
release
end

#org @done
faceplayer
clearflag 0x04
release
end

#org @talk1
= !!!
To run away from you? You have to have an applymovement script.
And I don't know if flags 0x1 - 0x9 work. It sure didn't for me.

And I'm not really sure what you're doing here.
They script will just repeat over again, because you're setting a different flag at the end of the script. (It's supposed to be the same one)

And even if the flag 0x1 is checked, why would you have a clearflag for 0x4 in the @done script?

If the flag is checked, you should just have release end for @done.

Somebody slap me if I'm wrong.
Seen September 11th, 2021
Posted March 3rd, 2012
40 posts
14.7 Years
This is great THX!
But i am having a problem with FR flag 0x82F...running shoes...
whenever i do a script to get me the shoes i dont get them. but the script says that I should. help?
My RBY solo challange!
RBY: 25/81 [31%]
Spoiler:

1Venusaur 2Charizard 3Blastoise
4Butterfree 5Beedrill 6Pidgeot
7Raticate 8Fearow 9Arbok
10Raichu 11Sandslash 12Nidoqueen 13Nidoking
14Clefable 15Ninetales 16Wigglytuff 17Golbat
18Vileplume 19Parasect 20Venomoth
21Dugtrio 22Persian 23Golduck
24Primeape 25Arcanine 26Poliwrath
27Alakazam 28Machamp 29Victreebel
30Tentacruel 31Golem 32Rapidash
33Slowbro 34Magneton 35Farfetch'd 36Dodrio 37Dewgong 38Muk
39Cloyster 40Gengar 41Onix
42Hypno 43Kingler 44Electrode
45Exeggutor 46Marowak 47Hitmonlee
48Hitmonchan 49Lickitung 50Weezing
51Rhydon 52Chansey 53Tangela
54Kangaskhan 55Seadra 56Seaking 57Starmie 58Mr. Mime
59Scyther 60Jynx 61Electabuzz 62Magmar 63Pinsir 64Tauros
65Gyarados 66Lapras 67Ditto 68Vaporeon 69Jolteon
70Flareon 71Porygon 72Omastar 73Kabutops
74Aerodactyl 75Snorlax 76Articuno 77Zapdos
78Moltres 79Dragonite 80Mewtwo 81Mew
Male
Narnia
Seen July 28th, 2010
Posted July 24th, 2010
7 posts
12.8 Years
Hey guys, I'm new here and just wanted to ask a 2questions?

I've searched alot to try and find the answer here but no luck...

My questions are:

1. In Xse, I do everything right, codes etc...follow them strictly step by step.
-----------------------------
#dynamic 0x800000

#org @start
lock
faceplayer
message @1 0x6
release
end

#org @1
= Hello World
--------------------------------

. When I test it, the character simply turns to me but he doesn't talk...Can't seem to figure out whats wrong. Any help would be greatly appreciated guys. ( Also, if I use FSF to find free space and I put it copy it to Xse, when I finish the codes and press compile, a box comes on saying that "THE ROM DOESN'T HAVE ENOUGH SPACE"..And the FSF option within Xse is unclickable , its not highlighted at all. Any tips also?
-----------
2. When I create a new house using a new map on advance map, I can't seem to enter the house when I test it. The screen goes black and the game freezes... All warps are correctly inserted and I've checked it so many times. Do you know what i'm doing wrong?

Thank you Everyone
Male
NewFoundland
Seen August 27th, 2013
Posted March 12th, 2012
24 posts
14.9 Years
#dynamic 0x2DD0F8
#org @start
lock
Faceplayer
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @take
checkflag 0x829
if 0x0 goto @pokedex
msgbox @after 0x6
cry 0x32 0x0
wildbattle 0x32 0x5 0x0
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @pokedex
setflag 0x829
setflag 0x82F
setflag 0x828
givepokemon 0x32 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
special 0x16F
msgbox @3 0x6
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x201
release
end

#org @3
= You obtained a Pokedex,\nNidoran(m), and\lrunning shoes!

#org @2
= Everything was left\nthe way it was

#org @1
= There is a pokeball with\nNidoran(m) and other stuff\lTake it?

#org @after
= Nidoran(m) appeared from\nthe pokeball\lHe appears to be\nangry.


This is my first script and i compiled it but when i go to the item i get a diglett and i have another one with nidoran female and it gives me a zubat. Also when it fades out it fades but when i walk over where it was, it reappears. anyone know whats wrong?
O and ^post, you need to have free space finder in the same folder as xse, and your rom ran out of space. Try a Rom expander?