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
  #51    
Old February 6th, 2009 (02:58 PM).
diegoisawesome's Avatar
diegoisawesome diegoisawesome is online now
Please understand
Silver Tier
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 18
Gender: Male
Nature: Quirky
Posts: 973
Quote originally posted by Mourgrim:
(EDIT)
The problem persists, but I think it may have something to do with the release/end commands. You see, the game freezes, but not the music. (I didn't notice this before because I usually have it muted)

So, are any problems apparent with the way I used release/end etc.?
Code:
The Movement Script:
#dynamic 0x800000 #org @start checkflag 0x1000 if 0x1 goto @done checkflag 0x1000 if 0x0 goto @movement end #org @movement msgbox @hey 0x2 applymovement 0xThis should be the People Number of the man. @move waitmovement 0x0 applymovement 0xFF @move2 waitmovement 0x0 msgbox @take 0x2 applymovement 0xAgain, this should be the People Number of the man. @move3 waitmovement 0x0 setflag 0x1001 end #org @done end #org @move #raw 0x1E #raw 0x1E #org @move2 #raw 0x13 #raw 0x13 #org @move3 #raw 0x13 #org @hey = Hey, you can't leave\nwithout having something\lto protect you! #org @take = Take my EEVEE. Raise it\nwell, and let it evolve\linto whatever you wish it\lto become!
The Man's Script:
#dynamic 0x800010 #org @start checkflag 0x1002 if 0x1 goto @good checkflag 0x1002 if 0x0 goto @omg end #org @good msgbox @leave 0x2 applymovement 0xAnd again, this should be the People Number of the man. @move waitmovement 0x0 msgbox @goodluck 0x2 end #org @omg msgbox @takeit 0x2 end #org @move #raw 0x14 #raw 0x0C #org @leave = Okay, you may leave. #org @goodluck = Good luck out there! #org @takeit = Would you just take it?
The Pokeball's Script:
#dynamic 0x800020 #org @start checkflag 0x1001 if 0x1 goto @take checkflag 0x1001 if 0x0 goto @done end #org @take givepokemon 0x133 0x5 0x0 0x0 0x0 0x0 fanfare 0x13E msgbox @received 0x4 waitfanfare closeonkeypress fadescreen 0x1 hidesprite 0x800F setflag 0x1000 setflag 0x1002 fadescreen 0x0 end #org @done end #org @received = You received EEVEE!
Lol. You were using release when you weren't using lock.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Diego's Miscellaneous Patches
GBA Intro Manager
Reply With Quote
  #52    
Old February 6th, 2009 (03:59 PM). Edited February 6th, 2009 by Mourgrim.
Mourgrim's Avatar
Mourgrim Mourgrim is offline
 
Join Date: Nov 2008
Age: 23
Gender:
Nature: Rash
Posts: 19
...
Okay, I think I figured it out. Thanks for all your help. lol
Reply With Quote
  #53    
Old February 7th, 2009 (08:38 AM).
1KewlDude's Avatar
1KewlDude 1KewlDude is offline
Really busy... STRESS!!
 
Join Date: Dec 2007
Location: London
Age: 22
Nature: Docile
Posts: 124
I have an annoying problem... I made this very long script but it just doesn't work. You just walk right over it, it doesn't freeze or anything. Help!
Spoiler:
#dynamic 0x727078

#org @1
setvar 0x4000 0x0
goto @start
end

#org @2
setvar 0x4000 0x1
goto @start
end

#org @3
setvar 0x4000 0x2
goto @start
end

#org @4
setvar 0x4000 0x3
goto @start
end

#org @5
setvar 0x4000 0x4
goto @start
end

#org @start
compare 0x4000 0x0
if 0x1 goto @leftdude
compare 0x4000 0x1
if 0x1 goto @leftdude
compare 0x4000 0x2
if 0x1 goto @leftdude
compare 0x4000 0x3
if 0x1 goto @rightdude
compare 0x4000 0x4
if 0x1 goto @rightdude
end

#org @leftdude
applymovement 0x08 @left!
waitmovement 0x0
applymovement 0xFF @lookleft
waitmovement 0x0
compare 0x4000 0x0
if 0x1 goto @cant
compare 0x4000 0x1
if 0x1 goto @moveleft1
compare 0x4000 0x2
if 0x1 goto @moveleft2
end

#org @rightdude
applymovement 0x09 @right!
waitmovement 0x0
applymovement 0xFF @lookright
waitmovement 0x0
compare 0x4000 0x3
if 0x1 goto @moveright1
compare 0x4000 0x4
if 0x1 goto @moveright2
end

#org @left!
#raw 0x62
#raw 0xFE

#org @lookleft
#raw 0x02
#raw 0xFE

#org @cant
msgbox @sorry 0x2
applymovement 0xFF @back
compare 0x4000 0x1
if 0x1 gosub @backleft
compare 0x4000 0x2
if 0x1 gosub @backleft2
compare 0x4000 0x3
if 0x1 gosub @backright
compare 0x4000 0x4
if 0x1 gosub @backright2
waitmovement 0x0
release
end

#org @moveleft1
applymovement 0x08 @right1
waitmovement 0x0
goto @cant
end

#org @moveleft2
applymovement 0x08 @right2
waitmovement 0x0
goto @cant
end

#org @right!
#raw 0x62
#raw 0xFE

#org @lookright
#raw 0x03
#raw 0xFE

#org @moveright1
applymovement 0x09 @left1
waitmovement 0x0
goto @cant
end

#org @moveright2
applymovement 0x09 @left2
waitmovement 0x0
goto @cant
end

#org @sorry
= Sorry. This passage is blocked due\nto construction.\lFor safety reasons you can't pass.\pHave a nice day!

#org @back
#raw 0x10
#raw 0xFE

#org @backleft
applymovement 0x08 @left1
return

#org @backleft2
applymovement 0x08 @left2
return

#org @backright
applymovement 0x09 @right1
return

#org @backright2
applymovement 0x09 @right2
return

#org @right1
#raw 0x13
#raw 0x02
#raw 0xFE

#org @right2
#raw 0x13
#raw 0x13
#raw 0x02
#raw 0xFE

#org @left1
#raw 0x12
#raw 0x03
#raw 0xFE

#org @left2
#raw 0x12
#raw 0x12
#raw 0x03
#raw 0xFE
__________________
Spoiler:

This was made by me.

Hacks I support:
Spoiler:



Reply With Quote
  #54    
Old February 7th, 2009 (11:33 AM).
Mourgrim's Avatar
Mourgrim Mourgrim is offline
 
Join Date: Nov 2008
Age: 23
Gender:
Nature: Rash
Posts: 19
And here's yet another issue...xD My give pokemon code isn't working correctly. First, the nicknaming: it just keeps asking "Would you like to nickname EEVEE?" over and over until I say no. Also, it's not an eevee. I entered the number for eevee, and yet, it's giving me a Breloom. Also, I put in "hidesprite" so that it'd disappear, but that's not working either. When I step away, it reappears.

Anyway, here's the code:
#dynamic 0x800020

#org @start
checkflag 0x1000
if 0x1 goto @give
msgbox @notyours 0x2
end

#org @give
givepokemon 0x133 0x5 0x0 0x0 0x0 0x0
msgbox @received 0x2
setflag 0x828
msgbox @nickname 0x5
compare LASTRESULT 0x1
if 0x1 gosub @name
hidesprite 0x02
end

#org @name
call 0x1A7FEB
end

#org @notyours
= This isn't your POK\h06MON,\nyou shouldn't even be\llooking at it!

#org @received
= You received EEVEE!

#org @nickname
= Would you like to nickname\nEEVEE?
Reply With Quote
  #55    
Old February 7th, 2009 (01:26 PM).
Surf's Avatar
Surf Surf is offline
...
 
Join Date: Jul 2008
Location: Rust
Age: 20
Gender: Male
Nature: Relaxed
Posts: 1,198
Send a message via Windows Live Messenger to Surf
Of first of all your hidesprite command isn't working because you need to put 828 in the persons flag no.
Secondly the number for Eevee isn't wht you think it is.
Youu have to confert it into hex
__________________
I'm looking for some good (When I say good,
I mean you can hold your own by yourself)
N**i Zombies players, to form a team or even a
clan, to play with casually.
Send me a PM with your Highest Level and your PSN,
and I'll get back to you.
Reply With Quote
  #56    
Old February 7th, 2009 (01:38 PM). Edited February 7th, 2009 by Mourgrim.
Mourgrim's Avatar
Mourgrim Mourgrim is offline
 
Join Date: Nov 2008
Age: 23
Gender:
Nature: Rash
Posts: 19
I see... I was trying to make it a pokeball that'd disappear, as noticed. lol Thanks for the help.
However, now it's an eevee and not a Breloom and it disappears. But, I still don't have the option to give it a nickname and I can continue to say "yes" over and over. In fact, I don't even have the popup asking for "Yes" or "No" come up. It's either I press "A" or "B". It continues to give me eevees so long as I continue to press "A" and won't stop until I press "B". How would I go about stopping this so it works correctly?
Reply With Quote
  #57    
Old February 7th, 2009 (01:43 PM).
~*Mew*~'s Avatar
~*Mew*~ ~*Mew*~ is offline
Rom Hacker.
 
Join Date: Feb 2009
Location: London.
Nature: Calm
Posts: 34
This is a awesome tut, well done !
Reply With Quote
  #58    
Old February 7th, 2009 (04:29 PM).
bian's Avatar
bian bian is offline
.............
 
Join Date: Jul 2007
Location: sicret
Gender:
Nature: Naive
Posts: 141
can someone please tell me the script in fire red in xse where when the prof. gives
you the pokedex,it is in the national pokedex mode already.

pls.answer,tnx..
__________________
White FC: 5457 8823 3469
My trade thread (not active anymore, just a reference):
Bian's Event Pokémon Sari-Sari Store
Reply With Quote
  #59    
Old February 7th, 2009 (04:33 PM).
Mourgrim's Avatar
Mourgrim Mourgrim is offline
 
Join Date: Nov 2008
Age: 23
Gender:
Nature: Rash
Posts: 19
Quote originally posted by bian:
can someone please tell me the script in fire red in xse where when the prof. gives
you the pokedex,it is in the national pokedex mode already.

pls.answer,tnx..
Activating the pokedex requires a flag. For the national, it's a special. The flag for Pokedex, I think, is 0x829 and the special for national would be 0x1F3. I'm just about positive that all of this is in this tutorial, though.
Reply With Quote
  #60    
Old February 7th, 2009 (04:52 PM).
1KewlDude's Avatar
1KewlDude 1KewlDude is offline
Really busy... STRESS!!
 
Join Date: Dec 2007
Location: London
Age: 22
Nature: Docile
Posts: 124
Quote originally posted by Mourgrim:
Activating the pokedex requires a flag. For the national, it's a special. The flag for Pokedex, I think, is 0x829 and the special for national would be 0x1F3. I'm just about positive that all of this is in this tutorial, though.
You're right... only problem is... I think he wants someone to right the script for him... X|
__________________
Spoiler:

This was made by me.

Hacks I support:
Spoiler:



Reply With Quote
  #61    
Old February 7th, 2009 (05:03 PM).
bian's Avatar
bian bian is offline
.............
 
Join Date: Jul 2007
Location: sicret
Gender:
Nature: Naive
Posts: 141
Thanks for the answer.Sorry because i just can't find that script in XSE even when i'm searching in google, and i don't even know that it is included in the tutorial already XD. I'm just lazy to read it all.

and no, i don't need someone to correct my script since i'm just starting,i only want to know what script it is.

Anyway,thanks for the answers,i really appreciate it!
__________________
White FC: 5457 8823 3469
My trade thread (not active anymore, just a reference):
Bian's Event Pokémon Sari-Sari Store
Reply With Quote
  #62    
Old February 8th, 2009 (12:07 PM).
madarawolf's Avatar
madarawolf madarawolf is offline
Espada Cuarta
 
Join Date: Nov 2008
Gender:
Posts: 56
here is my script. It wont let me add it to my hack. so just tell me what I need to change o.k. thanks.

#dynamic 0x800010

#org @start
msgbox @sign 0x3
textcolor 0x02
end
#org @hello
= Welcome To Mt. Butt Rape. \lDon't lean against the walls.
__________________
why yes I am made of awsome
Reply With Quote
  #63    
Old February 8th, 2009 (12:38 PM).
1KewlDude's Avatar
1KewlDude 1KewlDude is offline
Really busy... STRESS!!
 
Join Date: Dec 2007
Location: London
Age: 22
Nature: Docile
Posts: 124
Quote originally posted by madarawolf:
here is my script. It wont let me add it to my hack. so just tell me what I need to change o.k. thanks.

#dynamic 0x800010

#org @start
msgbox @sign 0x3
textcolor 0x02
end
#org @sign
= Welcome To Mt. Butt Rape. \lDon't lean against the walls.
Your first pointer didn't actually point to anywhere. Also, I don't know if you can do text colour that way, but you should press the debug button at the top and you should get a message if it's wrong.

Your hack sounds good by the way... LOL!
__________________
Spoiler:

This was made by me.

Hacks I support:
Spoiler:



Reply With Quote
  #64    
Old February 8th, 2009 (02:14 PM).
madarawolf's Avatar
madarawolf madarawolf is offline
Espada Cuarta
 
Join Date: Nov 2008
Gender:
Posts: 56
Thanks for the help and the compliment. now I just need to make one more script and Mt. Butt Rape will be finished. I need a little help on that one too.
alright so the script I want is going to pop up when you step on it then you can still move. how would I do that? and if it helps the message will be, You just got anally raped!!!
__________________
why yes I am made of awsome
Reply With Quote
  #65    
Old February 8th, 2009 (03:02 PM).
Full Metal's Avatar
Full Metal Full Metal is offline
C(++) Developer.
Silver Tier
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Posts: 805
Send a message via Windows Live Messenger to Full Metal
...*offtopic* and why would you incorporate this into a pokemon hack?...wow the world is really getting less and less sensible of their actions...
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #66    
Old February 8th, 2009 (08:10 PM).
Mourgrim's Avatar
Mourgrim Mourgrim is offline
 
Join Date: Nov 2008
Age: 23
Gender:
Nature: Rash
Posts: 19
....Yeeah...

Anyway, I was wondering. I didn't see this in the tutorial, but maybe I just read over it on accident. However, how would one go about allowing the player to use an HM? Like, after a battle. Or just in general, really.
Reply With Quote
  #67    
Old February 14th, 2009 (08:30 AM).
Sonikku17's Avatar
Sonikku17 Sonikku17 is offline
Wanderer
 
Join Date: Aug 2008
Age: 23
Nature: Impish
Posts: 18
Hey, is there any chance you could make a tutorial for move tutor scripts? That would be wonderful!
Reply With Quote
  #68    
Old February 16th, 2009 (09:18 AM).
Knomez's Avatar
Knomez Knomez is offline
lolwut...
 
Join Date: Feb 2009
Gender:
Nature: Quiet
Posts: 17
Very nice tutorial, now i actually understand scripting, before it was just a bunch of jumbled words o-o...
__________________

Name: Unown
Adopt one yourself! @Pokémon Orphanage

Reply With Quote
  #69    
Old February 16th, 2009 (11:13 PM).
Zaptinex's Avatar
Zaptinex Zaptinex is offline
 
Join Date: May 2008
Location: USA
Gender:
Posts: 43
Love the tutorial! Its like most of the scripting commands and more in one tutorial! Nice work.
Reply With Quote
  #70    
Old February 22nd, 2009 (10:23 PM). Edited February 23rd, 2009 by Kryszajtys.
Kryszajtys's Avatar
Kryszajtys Kryszajtys is offline
 
Join Date: Oct 2008
Gender:
Posts: 32
i cant hide the sprite i talk to Please help this is the Script i was using

Note: its a spoiler for my New Pokemon game
another Note: Not like any1 cares


#dynamic 0x800000
#org @start
lock
faceplayer
msgbox @text 0x6
release
end
#org @text
=Hey im Lance , I no you don't know me \pBut i have been watching\n you \pand your pokemon grow \pThere are some crazy people\nout there \pIn fact there are 10 people \pwho are trying to create a\nnew pokemon\pThere going to call it Suicune\pI need you to help me stop this\pThere Planing to use\nthis Pokemon\pfor evil , to take over\nthe world \pwith this pokemons power it wont be hard\pWe will meet again , when it is time
hidesprite 0x05







Editome one Please help with the Hidesprite ^ cause its not working


and also can some one give me a Better example for Giving an Egg cause he just put giveegg 0x115
i dont get that can some one give me an Example with every command

like

#dynamic 0x80000
#org @start
giveegg 0x155



is that all i put or something

or are these commands spousto be in the SCript

checkflag
msgbox
setflag
etc.


please give me an example Script for giving an egg
__________________
kryszatys's PokePet

Night Fall the level 50 Umbreon!
Reply With Quote
  #71    
Old February 23rd, 2009 (02:58 PM).
bardock10's Avatar
bardock10 bardock10 is offline
 
Join Date: Feb 2009
Gender:
Posts: 6
OK on the wild battle script (lets use yours)
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x6 0x0
wildbattle 0x6 0x0 0x1E 0x8B 0x0
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= CHARIZARD: Raaarrgghh!
So I change the stuff I need to change But when I save and go to compile it says
too many permiters on line 8
Code:
wildbattle 0x6 0x0 0x1E 0x8B 0x0
the correct number is 3.What does this mean?
Reply With Quote
  #72    
Old February 23rd, 2009 (07:32 PM).
PokemonBroski's Avatar
PokemonBroski PokemonBroski is offline
I'm Back for Good!
 
Join Date: Feb 2009
Location: Wisconsin
Gender: Male
Nature: Calm
Posts: 92
theres a problem with your give pokemon script
whenever I put it in the game and I try to talk to the person they just sit there and nothing pops up
Reply With Quote
  #73    
Old February 24th, 2009 (05:29 AM).
jcys810 jcys810 is offline
Call me Justin, J or Impulse
 
Join Date: Feb 2009
Location: Singapore
Age: 21
Gender:
Nature: Mild
Posts: 11
Send a message via Windows Live Messenger to jcys810
This is a great tutorial, it ought to help me should I ever decide to make a hack of my own!

Thanks alot, bookmarked!
Reply With Quote
  #74    
Old March 1st, 2009 (12:44 PM).
Blackpanfa's Avatar
Blackpanfa Blackpanfa is offline
ROM Buster
 
Join Date: Nov 2008
Location: England [+]
Nature: Quirky
Posts: 26
thanks to you the applymovement works!!! One problem though, I only want it to happen ONCE: here is my script for it.
Code:
#Dynamic 0x80005D

#org @start
checkflag 0x900
if 0x1 goto @end
checkflag 0x828
if 0x0 goto @move
if 0x1 goto @end
setflag 0x900
end

#org @move
applymovement 0xFF @back
waitmovement 0x0
release
end

#org @back
#raw 0x62 0x00 0x0C 0x0C 0x0C 0xFE

#org @end
clearflag 0x900
release
end
Thanks.
__________________


I support:

Spoiler:







Reply With Quote
  #75    
Old March 1st, 2009 (12:51 PM). Edited March 1st, 2009 by diegoisawesome.
diegoisawesome's Avatar
diegoisawesome diegoisawesome is online now
Please understand
Silver Tier
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 18
Gender: Male
Nature: Quirky
Posts: 973
Quote originally posted by Blackpanfa:
thanks to you the applymovement works!!! One problem though, I only want it to happen ONCE: here is my script for it.
Code:
#Dynamic 0x80005D

#org @start
checkflag 0x828
if 0x0 goto @move
checkflag 0x828
if 0x1 goto @end
end

#org @move
applymovement 0xFF @back
waitmovement 0x0
release
end

#org @back
#raw 0x62 0x00 0x0C 0x0C 0x0C 0xFE

#org @end
clearflag 0x900
release
end
Thanks.
Try that and see if that's what you want.

Quote originally posted by bardock10:
OK on the wild battle script (lets use yours)
Code:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @1 0x6
cry 0x6 0x0
wildbattle 0x6 0x1E 0x8B
fadescreen 0x1
fadescreen 0x0
hidesprite 0x800F
setflag 0x200
release
end

#org @1
= CHARIZARD: Raaarrgghh!
So I change the stuff I need to change But when I save and go to compile it says
too many permiters on line 8
Code:
wildbattle 0x6 0x0 0x1E 0x8B 0x0
the correct number is 3.What does this mean?
Thanks for catching that. It's been fixed.
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles
Diego's Miscellaneous Patches
GBA Intro Manager
Reply With Quote
Reply
Quick Reply

Sponsored Links

You may also like.. (Beta)
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 06:44 PM.