Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Reload this Page [Tutorial] diegoisawesome's MEGA-HUGE XSE Scripting Tutorial

Notices
For all updates, view the main page.

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.



Reply
 
Thread Tools
  #1101    
Old February 17th, 2015 (10:01 AM).
Phiupp's Avatar
Phiupp Phiupp is offline
 
Join Date: Jul 2013
Location: German
Gender: Male
Posts: 7
Hola,

after trying and searching for a long time I have to ask now

I've got a problem with healing places.
Is it possible to set them at another place, after I deleted the original Pokémon-Center Lady
When I lose a fight now I am at the map the Poke-Center was (before I edited the map) and my Pokémon get healed but there is no sprite of Joy and it is not the map I want.
Hope you understand what I mean

Now I want to change this "reset point" to another place - so at the Poke-Center I created by my self.
I tried to set it simply with the line "sethealingplace 0x01" in my healing script but like I thought before this one doesn't work.

Hope someone can help me with this problem
Would help a lot
thanks
__________________
it's not about how hard you hit it's about how hard you can get hit!
Reply With Quote
  #1102    
Old February 27th, 2015 (03:42 PM).
AceRoku's Avatar
AceRoku AceRoku is offline
Dev of Pokemon Flare
 
Join Date: Feb 2015
Gender: Male
Posts: 28
A great tutorial dude. Thanks for this. I might start learning ASM today.
__________________
Pokémon Flare - Coming SOON

Looking for scripters,mappers and tile inserters (all sort of persons who can help me) on Pokémon Flare.
If you're interested, feel free to leave me a VM/PM
Reply With Quote
  #1103    
Old March 14th, 2015 (10:51 AM).
ME604 ME604 is offline
 
Join Date: Mar 2015
Posts: 1
Hi! Love your tutorial!!! But my compile button is faded, and I can't click on it... what's wrong with it?
Reply With Quote
  #1104    
Old March 14th, 2015 (10:54 AM).
Magic's Avatar
Magic Magic is offline
キュウコン
Moderator
CS
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Posts: 5,287
Quote originally posted by ME604:
Hi! Love your tutorial!!! But my compile button is faded, and I can't click on it... what's wrong with it?
That normally means you need to load the ROM you want to compile. Either by file->open or by clicking the button next to the white box.
__________________
Looking for spriters/pixel artists for a ROM hacking project.
ENQUIRE WITHIN
Reply With Quote
  #1105    
Old 4 Weeks Ago (09:17 AM).
ShinyQuilava97(Gold)'s Avatar
ShinyQuilava97(Gold) ShinyQuilava97(Gold) is offline
 
Join Date: Feb 2015
Location: New Bark Town , Johto
Gender: Male
Nature: Naughty
Posts: 49
Um... The hidepokepic command doesn't work for me. Can someone please help me ?
__________________
Support my hack - 'Pokémon OrangeSun'.
Thread - 'http://www.pokecommunity.com/showthread.php?t=347035'.
Reply With Quote
  #1106    
Old 4 Weeks Ago (09:20 AM).
Magic's Avatar
Magic Magic is offline
キュウコン
Moderator
CS
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Posts: 5,287
Quote originally posted by ShinyQuilava97(Gold):
Um... The hidepokepic command doesn't work for me. Can someone please help me ?
As in the pokepic stays open? Hmm, post your script in the script help thread and I/someone will have a look :3.
__________________
Looking for spriters/pixel artists for a ROM hacking project.
ENQUIRE WITHIN
Reply With Quote
  #1107    
Old 4 Weeks Ago (08:58 PM). Edited 4 Weeks Ago by Spherical Ice.
ShinyQuilava97(Gold)'s Avatar
ShinyQuilava97(Gold) ShinyQuilava97(Gold) is offline
 
Join Date: Feb 2015
Location: New Bark Town , Johto
Gender: Male
Nature: Naughty
Posts: 49
Anyone ?

Thnx , Magic ! Will someone help me there ?

Hi ?
__________________
Support my hack - 'Pokémon OrangeSun'.
Thread - 'http://www.pokecommunity.com/showthread.php?t=347035'.
Reply With Quote
  #1108    
Old 4 Weeks Ago (08:45 AM).
Spherical Ice's Avatar
Spherical Ice Spherical Ice is offline
Moderator
CS
 
Join Date: Nov 2007
Location: UK
Posts: 3,408
Send a message via Skype™ to Spherical Ice
Quote originally posted by ShinyQuilava97(Gold):
Hi ?
Hello! I must remind you that this is a forum, and not, say, an IRC channel, and so it may take some time for users to respond to you. Just be patient and I'm sure they'll get to you quickly!

As for your problem, it would help if you posted the entire script over here in the Script Help Thread. Good luck!
__________________
Reply With Quote
  #1109    
Old 3 Weeks Ago (09:50 AM).
asking25 asking25 is offline
 
Join Date: Aug 2014
Gender: Male
Posts: 6
Hello, I am new to scripting and I have a problem in applying movement, I made a script that only happens a mistake. The idea of the script was a character walking up to me I deliver a master ball and then back to the starting point and it disappears, it happens and the sprit is on my screen the gba .. but when I put the A-map out of my screen (in the case of GBA) the script but happen! character not walk up to me.

Does anyone know why?
Reply With Quote
  #1110    
Old 3 Weeks Ago (09:35 PM).
chrunch's Avatar
chrunch chrunch is offline
Silver Tier
 
Join Date: Oct 2009
Gender: Male
Posts: 1,049
Quote originally posted by asking25:
Hello, I am new to scripting and I have a problem in applying movement, I made a script that only happens a mistake. The idea of the script was a character walking up to me I deliver a master ball and then back to the starting point and it disappears, it happens and the sprit is on my screen the gba .. but when I put the A-map out of my screen (in the case of GBA) the script but happen! character not walk up to me.

Does anyone know why?
I'm not sure I understand what you're saying. Does the script actually work when you test it out? Does the game freeze or does the script just not start?
__________________
Reply With Quote
  #1111    
Old 3 Weeks Ago (09:52 PM).
Percy's Avatar
Percy Percy is offline
Sceptile ftw
 
Join Date: Sep 2014
Location: Somewhere in the world, obviously
Age: 18
Gender: Male
Nature: Gentle
Posts: 1,326
Quote originally posted by asking25:
Hello, I am new to scripting and I have a problem in applying movement, I made a script that only happens a mistake. The idea of the script was a character walking up to me I deliver a master ball and then back to the starting point and it disappears, it happens and the sprit is on my screen the gba .. but when I put the A-map out of my screen (in the case of GBA) the script but happen! character not walk up to me.

Does anyone know why?
We're confused. Can you post the actual script?
__________________
Pokémon Ranger Academy
Status: Coming Soon ...
Blaziken is no longer my favorite Pokémon
Credit

Pair

Reply With Quote
  #1112    
Old 3 Weeks Ago (06:23 AM).
asking25 asking25 is offline
 
Join Date: Aug 2014
Gender: Male
Posts: 6
My Script
Spoiler:

#dynamic 0x71F878

#org @start
msgbox @talk1 0x6
playsong 0x011A 0x0
applymovement 16 @walk1
waitmovement 16
msgbox @talk2 0x6
giveitem 0x1 1 0x0
msgbox @talk3 0x6
applymovement 16 @walk2
waitmovement 16
hidesprite 16
setvar 0x6000 0x1
setflag 0x1206
fadesong 0x012C
release
end

#org @talk1
= Wait....

#org @talk2
= You need PokeBall? Take This.

#org @talk3
= BYE BYE!!

#org @walk1
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0xFE

#org @walk2
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE


It works perfectly when the Sprite that will move is within the scope of the GBA screen, but when I put away 10 steps (getting out of the GBA in game screen) it does not go to me, the script msg giveitem and hidesprite work, but she does not go to me.

but when I put the sprite in the range of vision of my character in game, it moves perfectly.
Reply With Quote
  #1113    
Old 3 Weeks Ago (06:29 AM).
Magic's Avatar
Magic Magic is offline
キュウコン
Moderator
CS
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Posts: 5,287
OWs that are too far off screen won't be able to move during the script, I can't remember it movesprite works - easiest way would be to make the OW so it is just one tile offscreen, that should work.
__________________
Looking for spriters/pixel artists for a ROM hacking project.
ENQUIRE WITHIN
Reply With Quote
  #1114    
Old 3 Weeks Ago (06:34 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is online now
Oh Hai Thar~ 'ω'
Silver Tier
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Posts: 6,958
Quote originally posted by asking25:
My Script
Spoiler:

#dynamic 0x71F878

#org @start
msgbox @talk1 0x6
playsong 0x011A 0x0
applymovement 16 @walk1
waitmovement 16
msgbox @talk2 0x6
giveitem 0x1 1 0x0
msgbox @talk3 0x6
applymovement 16 @walk2
waitmovement 16
hidesprite 16
setvar 0x6000 0x1
setflag 0x1206
fadesong 0x012C
release
end

#org @talk1
= Wait....

#org @talk2
= You need PokeBall? Take This.

#org @talk3
= BYE BYE!!

#org @walk1
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x11
#raw 0x11
#raw 0xFE

#org @walk2
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE


It works perfectly when the Sprite that will move is within the scope of the GBA screen, but when I put away 10 steps (getting out of the GBA in game screen) it does not go to me, the script msg giveitem and hidesprite work, but she does not go to me.

but when I put the sprite in the range of vision of my character in game, it moves perfectly.
As Magic stated, NPCs that are too far away from the player character will not move.

The range of an NPC for them to move is 1-9 tiles away from the player's left/right, and 1-6(or maybe 7?) from the player's north/south.
__________________

3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)


Reply With Quote
  #1115    
Old 3 Weeks Ago (06:43 AM).
FBI agent's Avatar
FBI agent FBI agent is offline
If my PM box is full, VM instead :x
 
Join Date: Jan 2013
Location: Unknown Island
Gender: Male
Posts: 817
Quote originally posted by destinedjagold:
As Magic stated, NPCs that are too far away from the player character will not move.

The range of an NPC for them to move is 1-9 tiles away from the player's left/right, and 1-6(or maybe 7?) from the player's north/south.
Is this true for when you're using the move camera specials as well? I'm wondering if that has to do with the player avatar or the camera itself.
__________________
...

My name forum name is FBI Agent, though you can call me FBI because it's shorter.

Some of my stuff:
ASM request/resource thread
ASM tutorials thread
ASM Workshop
Reply With Quote
  #1116    
Old 3 Weeks Ago (06:53 AM).
destinedjagold's Avatar
destinedjagold destinedjagold is online now
Oh Hai Thar~ 'ω'
Silver Tier
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Posts: 6,958
Quote originally posted by FBI agent:
Is this true for when you're using the move camera specials as well? I'm wondering if that has to do with the player avatar or the camera itself.
No idea. Never crossed that bridge before. :/
But in theory, it should work. Since the player and the camera are locked all the time, and probably created this 'illusion' that the NPCs could only work around a specific radius from the player, so maybe the camera's actually the one's important here for NPCs to move.
__________________

3DS FC: 0061-1111-6462
TSV: 1364(X), 0790(OR)


Reply With Quote
  #1117    
Old 3 Weeks Ago (07:07 AM).
Magic's Avatar
Magic Magic is offline
キュウコン
Moderator
CS
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Posts: 5,287
You can move the camera and still move NPCs normally, from my experience. I don't think it's solely down to luck that they're in range, so the scope is probably judged from the center of the camera position.
__________________
Looking for spriters/pixel artists for a ROM hacking project.
ENQUIRE WITHIN
Reply With Quote
  #1118    
Old 3 Weeks Ago (07:10 AM).
asking25 asking25 is offline
 
Join Date: Aug 2014
Gender: Male
Posts: 6
Oh thank you, at least I know that the script is correct, only 2 more questions.

is there any way I banter with script it? eg a script that makes another sprite like another appears on the screen? would practically the same than my sprite forward to my screen.

does anyone know a script for me to do rematch? I know I'll probably use SetFlags out the basic commands, but I found no tutorial on the internet.

Thank U!
Reply With Quote
  #1119    
Old 3 Weeks Ago (03:57 AM).
ShinyQuilava97(Gold)'s Avatar
ShinyQuilava97(Gold) ShinyQuilava97(Gold) is offline
 
Join Date: Feb 2015
Location: New Bark Town , Johto
Gender: Male
Nature: Naughty
Posts: 49
Awesome tutorial !
__________________
Support my hack - 'Pokémon OrangeSun'.
Thread - 'http://www.pokecommunity.com/showthread.php?t=347035'.
Reply With Quote
  #1120    
Old 1 Week Ago (08:24 PM).
zork787's Avatar
zork787 zork787 is offline
 
Join Date: Oct 2012
Gender: Male
Posts: 15
Ok so I'm adding some custom items to my hack and when I try to compile my item description it gives me a "Error 6 Overflow on line 4 Wrong parameter type" error and I don't think my code is wrong but I dunno whats going on

Code:
'-----------------------
#dynamic 0x634906
#org @string
= A peculiar stone that makes certain\nspecies of POKeMON evolve.\lIt shines with a dazzling light.
Reply With Quote
  #1121    
Old 1 Week Ago (12:25 AM).
Magic's Avatar
Magic Magic is offline
キュウコン
Moderator
CS
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Posts: 5,287
Quote originally posted by zork787:
Ok so I'm adding some custom items to my hack and when I try to compile my item description it gives me a "Error 6 Overflow on line 4 Wrong parameter type" error and I don't think my code is wrong but I dunno whats going on

Code:
'-----------------------
#dynamic 0x634906
#org @string
= A peculiar stone that makes certain\nspecies of POKeMON evolve.\lIt shines with a dazzling light.
Hmm. Try copy and pasting the script in your post over the entire script you have in XSE (ctrl+A to make sure you highlight eeeeverything).

Sometimes XSE has a mishap. I copy and pasted your script and it debugged just fine for me.
__________________
Looking for spriters/pixel artists for a ROM hacking project.
ENQUIRE WITHIN
Reply With Quote
  #1122    
Old 1 Week Ago (06:39 AM). Edited 1 Week Ago by zork787.
zork787's Avatar
zork787 zork787 is offline
 
Join Date: Oct 2012
Gender: Male
Posts: 15
well I redownloaded XSE and my code worked that time, mustve been a bug with teh version I was using.

Edit: Well I seem to have run into anotehr snag, I've managed to successfully impliment the Dawn, Dusk and Shiny stones but there text is kinda messed up http://gyazo.com/92547a1abd9b40e256f25dbe521218f1 and yet in the editing programs they appear fine
Reply With Quote
  #1123    
Old 5 Days Ago (04:24 AM).
ShinyQuilava97(Gold)'s Avatar
ShinyQuilava97(Gold) ShinyQuilava97(Gold) is offline
 
Join Date: Feb 2015
Location: New Bark Town , Johto
Gender: Male
Nature: Naughty
Posts: 49
How to edit the Seagallop animation ?
__________________
Support my hack - 'Pokémon OrangeSun'.
Thread - 'http://www.pokecommunity.com/showthread.php?t=347035'.
Reply With Quote
  #1124    
Old 5 Days Ago (05:50 AM).
kearnseyboy6's Avatar
kearnseyboy6 kearnseyboy6 is offline
Aussie's Toughest Mudder
 
Join Date: Dec 2008
Posts: 273
Quote originally posted by zork787:
well I redownloaded XSE and my code worked that time, mustve been a bug with teh version I was using.

Edit: Well I seem to have run into anotehr snag, I've managed to successfully impliment the Dawn, Dusk and Shiny stones but there text is kinda messed up http://gyazo.com/92547a1abd9b40e256f25dbe521218f1 and yet in the editing programs they appear fine
I'm not 100% sure on the accents or anything but I saw your code incorrectly used the \l command as it pushes the text up and away:

First Line
\nSecond Line
\nThird Line

Also make sure you compile in free space and fix the pointers appropritely !
__________________
HOLIDAYING CURRENTLY!!
Reply With Quote
Reply
Quick Reply

Sponsored Links
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are UTC -8. The time now is 09:25 PM.