Sierra's MEGA-HUGE XSE Scripting Tutorial Page 8

Started by Sierraffinity December 26th, 2008 6:55 PM
  • 776138 views
  • 1232 replies

Logan

Age 28
Male
Salisbury, England
Seen July 19th, 2022
Posted November 12th, 2021
10,414 posts
14.5 Years
I believe it is

releaseall
end

Excalibur

Sorry for my english...

Age 30
Male
Seen January 11th, 2015
Posted August 22nd, 2009
19 posts
14.5 Years
#Dynamic 0x000001

#org @start
lock
faceplayer
msgbox @blah 0x6
cry 0xF5 0x0
wildbattle 0xF5 0x32 0x0
hidesprite 0x1
setflag 0x<your flag>
release
end

#org @blah
= GYAOO!

And then in A-Map choose your sprite and where is Person ID, write the same flag.

There is an image
img520.imageshack.us/img520/2349/examplef.png

Sierraffinity

Retiring from Pokémon ROM hacking

Age 26
she/her
Somewhere the rains of Africa can be blessed
Seen January 8th, 2023
Posted December 26th, 2022
1,071 posts
15.4 Years
Don't know why but it doesn't work for me...
I wanted to make a sign so I made this:
'---------------
#dynamic 0x800159


#org @start
msgbox @sign 0x3
end

#org @sign
= Hi!
When I clicked the Sign there didn't appear any text...

Okay, I fixed my problem on my own xD

But now I've got another Problem
I tried the "givepokemon" Script but it didn't work.
XSE said that there is missing something at the "compare LASTRESULT 0x1" part.
But what's missing there???
Replace LASTRESULT with 0x800D.
Restarted and revamped.

Public alpha out now!

Pokepal17

More cowbell~

Age 28
Male
Steeltown
Seen July 7th, 2011
Posted May 22nd, 2011
1,517 posts
14.6 Years
Replace LASTRESULT with 0x800D.
To avoid stuff like that, will you please write at the very beginning of the tutorial, to make sure the reader is using the latest XSE and that they have extracted all the files or else this tutorial may not be compatible.
Pokémon Stardrop

Sierraffinity

Retiring from Pokémon ROM hacking

Age 26
she/her
Somewhere the rains of Africa can be blessed
Seen January 8th, 2023
Posted December 26th, 2022
1,071 posts
15.4 Years
Okay, thank you!!! ! :D

Hmmm...
Well the Script was okay but i don't get any Pokemon :D
I talk to a guy but he always says "Are you taking good care of Charmander".
Is it because I already have a Charmander?
What do i have to change??
Change the flag numbers. That was just an example flag #.
Restarted and revamped.

Public alpha out now!

Pokepal17

More cowbell~

Age 28
Male
Steeltown
Seen July 7th, 2011
Posted May 22nd, 2011
1,517 posts
14.6 Years
Question, does #dynamic 0x<offset> overwrite the designated offset? Or does it look for free space starting from the offset?
It looks for free space starting from the offset.
Pokémon Stardrop

Pokepal17

More cowbell~

Age 28
Male
Steeltown
Seen July 7th, 2011
Posted May 22nd, 2011
1,517 posts
14.6 Years
Is there a command that I can use in XSE or wherever to erase a certain script from an offset, then replace it with the new one that at the time, I just made? I tried the #remove before and after the #dynamic at the beginning of the script, but it didn't work.
All the script should be is:

#remove 0xoffset


nothing else.
Pokémon Stardrop
Male
Pokemon League :P
Seen November 29th, 2022
Posted December 13th, 2018
66 posts
14 Years
I made this Script

#dynamic 0x803E28

#org @start
checkflag 0x209
if 0x1 goto @done
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @take
msgbox @2 0x2
release
end

#org @take
givepokemon 0x382 0x5 0x199 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x209
msgbox @4 0x5
compare 0x800D 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end

#org @name
call 0x1A74EB
return

#org @done
clearflag 0x209
release
end

#org @1
= [black_fr]There's a Pokeball on the table\nDo you want to take it?

#org @2
= [black_fr]You left the Pokeball on the table

#org @3
= [black_fr]You received Aron

#org @4
= [black_fr]Would you like to give a\nnickname to Aron?

#org @5
= DREW: Please take care of\nAron!
At first there's the Question if I take the Pokeball or not. if I click "no" then "You left the Pokeball on the table" appears and nothing else happens.
But if I click at "Yes" my game just freezes -.-
I don't know why.
Male
Pokemon League :P
Seen November 29th, 2022
Posted December 13th, 2018
66 posts
14 Years
Hi,
I've got another Problem now xDDD

I made a Script but there appears the message "This tree looks like it can be CUT down" when I'm talking to the Person.

Here's my script

#dynamic 0x8001F6

#org @start
lock
faceplayer
msgbox @speak 0x2
applymovement 0x4 @move
waitmovement 0x0
release
end

#org @speak
= [blue_fr]LINDSAY: Hi, this is my farm.\nI've got a lot of Pokemon here\pMy favorite is...\n[black_fr]JOHN: Lindsay!\pDon't say any other word!/n[blue_fr]LINDSAY: Oh..., Gotta go!

#org @move
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x0
#raw 0xFE
Warm my Eggs, please!


TheDon

Shedinja Enthusiast

Age 32
Seen September 25th, 2018
Posted September 20th, 2018
42 posts
15.1 Years
Is there a command that I can use in XSE or wherever to erase a certain script from an offset, then replace it with the new one that at the time, I just made? I tried the #remove before and after the #dynamic at the beginning of the script, but it didn't work.
Still looking for help with this. Thanks in advance.

.Seth

.explorer.

Male
A capacitor in a power supply board.
Seen February 8th, 2016
Posted December 30th, 2010
1,644 posts
14.9 Years
I'm not saying anyone's breaking rules here, but there is a script help thread, you know.

I've never really taken the time to comment on this tutorial (or did I? I dunno. :P), so I think I will.

Overall, it's just a big translation of thethethethe's PokeScript tutorial, so really, it's not completely yours, but you gave credit, so I've no problem with that.

All in all, there are a few errors here and there, but it's very useful, and even I, the author of a different XSE tutorial, find myself looking at this.