< >

 Tutorial diegoisawesome's MEGA-HUGE XSE Scripting Tutorial

Notices

 Tools, Tutorials & Resources Various tools to help you develop your hacks can be found here.New threads in this forum are to be approved by a moderator before they are displayed.

#326
February 9th, 2010 (5:59 PM).
 mattattack Huh, Son? Join Date: Apr 2008 Location: Why would you care? Nature: Jolly Posts: 184
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!!?!?!?!?!?!

#327
February 12th, 2010 (10:55 AM).
 Skull Guardian I am now FrostPheonix. Join Date: Nov 2009 Location: In front of my computer Gender: Male Posts: 44
Hello, I read your tutorial and tried to make a script with it. Here it is:

Quote:
 #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:
Quote:
 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
#328
February 12th, 2010 (11:54 AM). Edited February 12th, 2010 by Muffin™.
 Muffin™ Knows your age Join Date: Dec 2009 Location: sucking balls Age: 5 Gender: Male Nature: Calm Posts: 429
Quote:
 Originally Posted by Skull Guardian 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??

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

Quote:
 Originally Posted by mattattack 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/
#329
February 12th, 2010 (11:58 AM).
 simdu68 asleep all summer zzZZ Join Date: Feb 2010 Location: France Age: 21 Gender: Male Nature: Calm Posts: 221
wow!! its really very well explained! congrats
i think i know now much more than before about scripting :D
but its stil very complivated, i think i'll not at once be able to script without reading your tutorial in the same time

thanx anyway :D
#330
February 13th, 2010 (1:37 AM).
 Skull Guardian I am now FrostPheonix. Join Date: Nov 2009 Location: In front of my computer Gender: Male Posts: 44
Quote:
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?

Quote:
 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
#331
February 14th, 2010 (9:06 AM).
 altariaking Needs NO VMs... Join Date: Dec 2009 Location: Scotland, Lesmahagow Age: 41 Gender: Male Nature: Naive Posts: 1,098
what command do i use in a movement script so that a sprite disappears forever?
#332
February 14th, 2010 (2:15 PM).
 Buizark Always looking for an OU match Join Date: Dec 2009 Gender: Male Nature: Calm Posts: 72
Just use hidesprite after the movement.
#333
February 15th, 2010 (4:15 AM).
 mikocoon error? who cares? Join Date: Jan 2010 Location: indonesia Age: 22 Gender: Male Nature: Quiet Posts: 20
rokrdude,thanks for the values it really helped
#334
February 15th, 2010 (9:11 AM).
 Satoshi Ookami Memento Mori Gold Tier Join Date: Jul 2008 Location: Abyss of Time, Great Seal Age: 23 Gender: Male Nature: Calm Posts: 13,843
Quote:
 Originally Posted by altariaking 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
#335
February 16th, 2010 (6:57 AM). Edited February 16th, 2010 by Reygok.
 Reygok Beginning Hacker Join Date: Sep 2009 Gender: Male Posts: 60
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??
#336
February 18th, 2010 (3:22 PM).
 BurnNBlast Join Date: Nov 2008 Gender: Posts: 1
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?
#337
February 19th, 2010 (2:43 AM).
 Reygok Beginning Hacker Join Date: Sep 2009 Gender: Male Posts: 60
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.
#338
February 19th, 2010 (5:00 AM).
 Darkerm Darkness is Not always Evil Join Date: Jan 2010 Location: Bangladesh Age: 22 Gender: Male Nature: Gentle Posts: 401
How make a triner who will give me a pokemon or item after battle. Please help me. I am learning scripting.
#339
February 19th, 2010 (5:46 AM).
 Satoshi Ookami Memento Mori Gold Tier Join Date: Jul 2008 Location: Abyss of Time, Great Seal Age: 23 Gender: Male Nature: Calm Posts: 13,843
Quote:
 Originally Posted by Darkerm 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
#340
February 19th, 2010 (9:49 AM).
 Reygok Beginning Hacker Join Date: Sep 2009 Gender: Male Posts: 60
Quote:
 Originally Posted by Reygok 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
#341
February 19th, 2010 (3:19 PM).
 helloNL Join Date: Oct 2009 Gender: Male Posts: 37
just use flags above the 1000
#342
February 19th, 2010 (3:33 PM).
 Matteron (96) Difference is everything... Gold Tier Join Date: May 2008 Age: 19 Posts: 270
Quote:
 Originally Posted by Reygok 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
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.
#343
February 22nd, 2010 (1:26 PM).
 Reygok Beginning Hacker Join Date: Sep 2009 Gender: Male Posts: 60
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.
#344
February 22nd, 2010 (1:43 PM).
 BBs0n Join Date: Jul 2007 Gender: Nature: Adamant Posts: 16
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.

Code:
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!

Code:
#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 :()
#345
February 23rd, 2010 (11:34 AM).
 Reygok Beginning Hacker Join Date: Sep 2009 Gender: Male Posts: 60
I have done the same thing, but simply with applymovement, and this works perfectly. You could try it that way.

An no one knows an answer to my question, 2 posts above...
#346
February 24th, 2010 (2:22 PM).
 Lanzar ~Zelda fan #1~ Join Date: Feb 2009 Location: Sweden Gender: Male Nature: Mild Posts: 28
Hey, can someone help me with a little thing? I just wonder how I make a script where a trainer comes from like 4 steps right, and challenge you, then he/she leaves? Just like in the beginning of Pokémon ShinyGold, the first battle with Carlos.

I support~

#347
February 24th, 2010 (5:21 PM).
 Matteron (96) Difference is everything... Gold Tier Join Date: May 2008 Age: 19 Posts: 270
@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.
#348
February 25th, 2010 (12:05 AM).
 Lanzar ~Zelda fan #1~ Join Date: Feb 2009 Location: Sweden Gender: Male Nature: Mild Posts: 28
Quote:
 Originally Posted by Matteron (96) @Lanzar Have you ever heard of applymovement??
Yeah, but I don't know how to put in a trainer battle script in an applymovement script. D:

I support~

#349
February 25th, 2010 (5:52 AM).
 Satoshi Ookami Memento Mori Gold Tier Join Date: Jul 2008 Location: Abyss of Time, Great Seal Age: 23 Gender: Male Nature: Calm Posts: 13,843
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
#350
February 25th, 2010 (6:20 AM).
 Lanzar ~Zelda fan #1~ Join Date: Feb 2009 Location: Sweden Gender: Male Nature: Mild Posts: 28
Quote:
 Originally Posted by Ash493 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?

I support~