• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

Sierra's MEGA-HUGE XSE Scripting Tutorial

Darthatron

巨大なトロール。
1,152
Posts
18
Years
Help? every time I do the give pokemon script, this comes up:
2lks4xw.jpg



The script is:
Code:
#dynamic 0x800000

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @take
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @6 0x6
release
end

#org @1
= Hello.\nSorry to trouble you.\nI can't take care\nof my Charmander.\pCan you take care of\nit for me?

#org @2
= That's okay.\pI'm sure someone else will\ntake it.

#org @3
= [black_fr]You received a Charmander!

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

#org @5
= Please take care of\nCharmander.

#org @6
= Are you taking good care\nof Charmander?
LOL I'm still not finished with it

Looks like you are missing the std.rbc file. Re-download XSE and try the script again.
 

Sierraffinity

Desperately trying to retire from ROM hacking
1,069
Posts
16
Years
Help? every time I do the give pokemon script, this comes up:
2lks4xw.jpg



The script is:
Code:
#dynamic 0x800000

#org @start
checkflag 0x828
if 0x1 goto @done
msgbox @1 0x5
compare LASTRESULT 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end

#org @take
givepokemon 0x85 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @4 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
msgbox @5 0x6
release
end

#org @name
call 0x1A74EB
return

#org @done
msgbox @6 0x6
release
end

#org @1
= Hello.\nSorry to trouble you.\nI can't take care\nof my Charmander.\pCan you take care of\nit for me?

#org @2
= That's okay.\pI'm sure someone else will\ntake it.

#org @3
= [black_fr]You received a Charmander!

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

#org @5
= Please take care of\nCharmander.

#org @6
= Are you taking good care\nof Charmander?
LOL I'm still not finished with it
Methinks you didn't update XSE. You're still using 1.0. Remember the HUGE letters at the top of the tut: Update XSE Before Using This Tutorial Or It May Not Work As Defined or something like that.
What it's doing now is checking for the type of boxset right under the msgbox.
 

mikocoon

error? who cares?
17
Posts
14
Years
can you give me the values of all item for poke mart script? because mine ended with ????????? item.and how to activate national pokedex in ruby?(the script)
 

rokrdude

POKEMON : SINNOH QUEST CREATOR
135
Posts
14
Years
  • Seen Oct 2, 2016
can you give me the values of all item for poke mart script? because mine ended with ????????? item.and how to activate national pokedex in ruby?(the script)



PokéScript
#raw 0x11 0x02 0x00 0x6B 0x02 0x02 0x11 0x03 0x01 0x6B 0x02 0x02
#raw 0x11 0xDA 0xBE 0x4E 0x02 0x02 0x11 0x67 0x5A 0x6A 0x02 0x02

XSE
writebytetooffset 0x2 0x2026B00
writebytetooffset 0x3 0x2026B01
writebytetooffset 0xDA 0x2024EBE
writebytetooffset 0x67 0x2026A5A

Item list(in hex)

Spoiler:
 

mattattack

Huh, Son?
184
Posts
16
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)
 

Skull Guardian

I am now FrostPheonix.
44
Posts
14
Years
Script?

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??
 

Muffin™

Knows your age
429
Posts
14
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*
 
Last edited:

simdu68

asleep all summer zzZZ
218
Posts
14
Years
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
 

Skull Guardian

I am now FrostPheonix.
44
Posts
14
Years
Tried that

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...
 

Buizark

Always looking for an OU match
72
Posts
14
Years
  • Age 30
  • Seen Aug 5, 2016
Just use hidesprite after the movement.
 

Reygok

Beginning Hacker
60
Posts
14
Years
  • Seen Jan 22, 2016
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??
 
Last edited:
1
Posts
15
Years
  • Seen Jun 27, 2010
Is there a limitation to how much text you can put on a single chat box?
I did
Spoiler:

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?
 

Reygok

Beginning Hacker
60
Posts
14
Years
  • Seen Jan 22, 2016
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
14,254
Posts
15
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:
 

Reygok

Beginning Hacker
60
Posts
14
Years
  • Seen Jan 22, 2016
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
 
Back
Top