Sierra's MEGA-HUGE XSE Scripting Tutorial Page 14

Started by Sierraffinity December 26th, 2008 6:55 PM
  • 776138 views
  • 1232 replies
Why would you care?
Seen July 2nd, 2011
Posted February 13th, 2011
184 posts
15.1 Years
I have some questions:

1. What exacly IS a variable and what does it do

2. How to you make a script where the player stops and a person moves towards him (I would also like to know about those green script tiles i a-map and how you trigger them)
Sometimes...it's hell before you get to heaven...

My Trainer Card


Help me raise my pokemon!

Cre....Creselia!!?!?!?!?!?!
Male
In front of my computer
Seen November 11th, 2012
Posted September 3rd, 2010
44 posts
13.5 Years
Hello, I read your tutorial and tried to make a script with it. Here it is:

#dynamic 0xE3D080

#org @start
lock
checkflag 0x828
if 0x1 goto $done
faceplayer
msgbox $begin 6
applymovement 0x02 $move
waitmovement 0x0
msgbox $mom 6
givepokemon 0x133 0x5 0x371 0x0 0x0 0x0
fanfare 0x13E
msgbox $evee 6
waitfanfare
closeonkeypress
setflag 0x828
msgbox $name 5
compare LASTRESULT 0x1
if 0x1 gosub $nameapp
applymovement 0x02 $back
waitmovement 0x0
release
end

#org $done
release
end

#org $begin
= \h01\!

#org $move
#raw 0x01
#raw 0x56
#raw 0x05
#raw 0x30
#raw 0x01
#raw 0xFE

#org $mom
= Hello my son.\n\Where are you \l\going? \p\...\p\...\p\Oh.\p\You want to\n\go on an \l\adventure?\p\Well, I guess\n\you will need\l\a pokemon,\p\right? Don't\n\look so\l\suprised! I\p\ knew you\n\would also go\l\someday.\p\So, here!

#org $evee
= You received \n\an Evee!

#org $name
= [black_fr]Would you like to give a\n\nickname to Evee?

#org $nameapp
call 0x1A74EB
return

#org $back
#raw 0x08
#raw 0x2F
#raw 0xFE
So, I tried to compile it. After a few minor errors, I did, but it said this:
Not enough free space found. Cannot compile.
I don't get it. I thought that the offset didn't have space, but even 10,000 bits didn't work. Can you please help me??


I have left this account. If you want to contact me, try to PM or VM FrostPheonix.

Credit to wondergirl for the awesome trainer card!

Proud writer of [Pokemon]; The legend of Shadow Lugia
Age 12
Male
sucking balls
Seen May 21st, 2014
Posted May 21st, 2014
429 posts
13.4 Years
Hello, I read your tutorial and tried to make a script with it. Here it is:



So, I tried to compile it. After a few minor errors, I did, but it said this:

I don't get it. I thought that the offset didn't have space, but even 10,000 bits didn't work. Can you please help me??
Do you have FSF? Maybe that can help you.


EDIT: Pokescript? This is a tutorial for XSE. I recommend downloading XSE in Hackmew's ToolBox to get XSE.

I have some questions:

1. What exacly IS a variable and what does it do

2. How to you make a script where the player stops and a person moves towards him (I would also like to know about those green script tiles i a-map and how you trigger them)

*cough* Look up ApplyMovement *cough*
>>>/v/
Male
In front of my computer
Seen November 11th, 2012
Posted September 3rd, 2010
44 posts
13.5 Years
Do you have FSF? Maybe that can help you.
Well, I do and thats where the dynamic offset is from.
Again, it says not enough free space, so could you please tell me how to fix that?


EDIT: Pokescript? This is a tutorial for XSE. I recommend downloading XSE in Hackmew's ToolBox to get XSE.
Well, this is from XSE, but I also use pokescript commands so could you also tell me if this is a wrong script for XSE? I didnt really figure out how to use pokescript in the first place...


I have left this account. If you want to contact me, try to PM or VM FrostPheonix.

Credit to wondergirl for the awesome trainer card!

Proud writer of [Pokemon]; The legend of Shadow Lugia

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
what command do i use in a movement script so that a sprite disappears forever?
setflag 0x(variable number from 1 to 3FFF)
And the same number must be put into ID bar of person in A-Map
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List
Male
Seen January 22nd, 2016
Posted July 15th, 2015
60 posts
13.7 Years
I want a picture of Charmander showing up. With 'showpokepic', it works but the Pic is Black and Blue! Charmander looks cool in Black, but it's not what I want xD How can I solve this?
It's the same case with Mudkip and Bulbasaur, but only the one I click first in the game, the other ones are normal then.

And I really don't know which flags to take! All the ones I choose seem to be already taken by the game, because when I enter the Pokémon Menu, the flags are cleared again! So, in Pokémon Sapphire, which Flags are free??
Seen June 27th, 2010
Posted February 18th, 2010
1 posts
14.5 Years
Is there a limitation to how much text you can put on a single chat box?
I did
Spoiler:
Conium: Ahh [player], you\nknow what day it is today?\pOf course you do! It's the day\nI said I'd give you your first\npokemon!\pHere you go.

But it only goes up the " said I'd give you your first"
Is it some type of limitation of how many \n and \p I can use in a single box?
Male
Seen January 22nd, 2016
Posted July 15th, 2015
60 posts
13.7 Years
No, there is no limitation as such, because I have Textboxes 5 times longer than yours and they work. Your problem is only that your offset has not enough space. I'm pretty sure when you open your script, you'll see that your text disappeared, at least that part which is missing.
You'll have to put this at the beginning of your script:
#dynamic 0x800000
#org @start (you can replace start by anything you want)

Then replace the offset of your incomplete textbox with @text or something like that, and rewrite the textbox.

Then compile the script and put he new offset of '@start' in A-Map. Then it should work.

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
How make a triner who will give me a pokemon or item after battle. Please help me. I am learning scripting.
You must put this command to your script.
trainerbattle 0x1 0x(number of trainer) 0x0 @before (msgbox of what trainer says before battle) @after (offset of what will happen after battle)

#org @after
Put here giveitem, givepokemon or whatever you want ;)

Here's example
Spoiler:
#dynamic 0x800000
#org @start
trainerbattle 0x1 0x5 0x0 @before @after
msgbox @1 0x6
release
end

#org @after
msgbox @2 0x6
givepokemon/item command
release
end

And strings of msgboxes ;)
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List
Male
Seen January 22nd, 2016
Posted July 15th, 2015
60 posts
13.7 Years
I want a picture of Charmander showing up. With 'showpokepic', it works but the Pic is Black and Blue! Charmander looks cool in Black, but it's not what I want xD How can I solve this?
It's the same case with Mudkip and Bulbasaur, but only the one I click first in the game, the other ones are normal then.

And I really don't know which flags to take! All the ones I choose seem to be already taken by the game, because when I enter the Pokémon Menu, the flags are cleared again! So, in Pokémon Sapphire, which Flags are free??
Nobody has an idea why this is happening? In other hacks i've played and of course in the original games, all of the pokepics showing up are diplayed correctly... Why does mine not :S

Matteron (96)

Can't Read Lookin Ass

Age 26
Seen December 4th, 2022
Posted April 3rd, 2011
270 posts
15 Years
Nobody has an idea why this is happening? In other hacks i've played and of course in the original games, all of the pokepics showing up are diplayed correctly... Why does mine not :S
is your actual sprite correctly colored? check it in unlz
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.
Male
Seen January 22nd, 2016
Posted July 15th, 2015
60 posts
13.7 Years
I've got 2 problems:
First, every flag I set is unset again as soon as I leave the map or enter the pokémon menu or something.

Second, I have 3 Pokéball lying on a table, at the beginning of the game, the starters. I implemented a 'showpokepic' there, but my problem is that the first pokémon I select has alway messed up colours. It has nothing to do with the sprites themselweves, because I never edited them, and as I said, it's alway the first one I select, when I restart the game and select another, that on is messed up, but the others are normally displayed.

Hope somebody can help. Thanks in advance.
Seen April 25th, 2011
Posted February 22nd, 2010
16 posts
15.9 Years
I've got a problem as well...

I'm busy with a script which will trigger an event.
During the event the script will move a sprite to the scene.
I'm trying to accomplish this with movesprite.

For some odd reason though, I can't move the sprite when it's too far away.
With too far away, I mean more than two tiles away from the screen.
When I place the sprite closer, it does work, when I place it further, it doesn't.

movesprite 0x03 0x10 0x0F
That's the command I use with there respective parameters. (I don't think the error is in there).

Here is the script, I haven't scripted the part after the first movesprite yet. Everything till the movesprite works!

#dynamic 0x800000

#org @start
lock
checkflag 0x50B
if 0x1 goto @done
checkflag 0x50C
if 0x1 goto @unav
playsong 0x0112 0x0
sound 0x21
applymovement 0xFF @1moveme
waitmovement 0x0
waitkeypress
sound 0x12
setdooropened 0x10 0x0E
doorchange
movesprite 0x03 0x10 0x0F
release
end

#org @done
release
end

#org @unav
msgbox @1 0x06
release
end

#org @1
= blabla

#org @1moveme
#raw 0x62
#raw 0x50
#raw 0x03
#raw 0xFE

Anyone who knows the solution? (I've been trying for over an hour now, and I'm out of solutions :()

Matteron (96)

Can't Read Lookin Ass

Age 26
Seen December 4th, 2022
Posted April 3rd, 2011
270 posts
15 Years
@Lanzar
Have you ever heard of applymovement??
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.

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
applymovement
trainerbattle 0x1 (The 1 is important) 0x(number of trainer) 0x0 @b4 @after

#org @after
Put applymovements here.

And you have to use tile script since you want movement before battle.
ROM hacking FAQ - Read before asking how to play a hack.

Anime List | PSN Trophy List
Male
Sweden
Seen February 28th, 2023
Posted March 5th, 2010
28 posts
14.2 Years
applymovement
trainerbattle 0x1 (The 1 is important) 0x(number of trainer) 0x0 @b4 @after

#org @after
Put applymovements here.

And you have to use tile script since you want movement before battle.
Thanks! :D
Well, I'm kinda noob at this, but whats a tile script?