The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > Tools, Tutorials & Resources
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

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.


Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #151    
Old July 8th, 2008, 10:25 AM
wave-guiding riolu_08's Avatar
wave-guiding riolu_08
The Aura is with Riolu!
 
Join Date: May 2008
Location: Haha...In my own region, Tanoshu of my working hack, Eon Version
Age: 21
Gender:
Nature: Lax
I'm new at script editing and I'm using XSE.
This script isn't working. Can anyone tell me why?
I'm testing for now so I can get the hang of creating Wild Pokemon events.
#dynamic 0x165858

#org @start
lock
faceplayer
message @suicune
startwildbattle 0x245 0x32 0x0
release
end

#org @suicune
= Cuuuun!
Wait, I left something out. I'll test to see if it works now. If it doesn't, I'll post back.
Nope, still doesn't work......

Last edited by wave-guiding riolu_08; July 8th, 2008 at 10:44 AM.
  #152    
Old July 8th, 2008, 11:19 AM
1KewlDude's Avatar
1KewlDude
Really busy... STRESS!!
 
Join Date: Dec 2007
Location: London
Age: 21
Nature: Docile
Quote:
Originally Posted by wave-guiding riolu_08 View Post
I'm new at script editing and I'm using XSE.
This script isn't working. Can anyone tell me why?
I'm testing for now so I can get the hang of creating Wild Pokemon events.
#dynamic 0x165858

#org @start
lock
faceplayer
message @suicune
startwildbattle 0x245 0x32 0x0
release
end

#org @suicune
= Cuuuun!
Wait, I left something out. I'll test to see if it works now. If it doesn't, I'll post back.
Nope, still doesn't work......
You missed out the 'callstd' after the message command. Here's what it should look like:
Code:
#dynamic 0x165858
 
#org @start
lock
faceplayer
msgbox @suicune
callstd 0x2
startwildbattle 0x245 0x32 0x0
release
end
 
#org @suicune
= Cuuuun!
You should use the 'debug' tool in XSE, it will pick up these little mistakes.
__________________
Spoiler:

This was made by me.

Hacks I support:
Spoiler:



  #153    
Old July 8th, 2008, 11:28 AM
wave-guiding riolu_08's Avatar
wave-guiding riolu_08
The Aura is with Riolu!
 
Join Date: May 2008
Location: Haha...In my own region, Tanoshu of my working hack, Eon Version
Age: 21
Gender:
Nature: Lax
Thanks and I'll be sure to use the debug feature more often!

The event still doesn't work.
The offset for my event is supposed to be to the left of the offset of the rival's
mailbox in Pokemon FireRed. I click on the sprite and nothing happens.
Even if I find free space(using Advance Map), the offsets generated aren't
pinpointed on the map.
__________________

Last edited by wave-guiding riolu_08; July 8th, 2008 at 12:41 PM. Reason: Your double post has been automatically merged.
  #154    
Old July 16th, 2008, 11:35 AM
poke freak 101's Avatar
poke freak 101
Beginning Trainer
 
Join Date: Feb 2008
Location: B.C VANCOUVER
Gender:
Nature: Calm
whenever i do my script and try to compile it it says

unknown keyword "applymovement" at line 4

can someone help me.
i still am a newbie so if its obvious then sorry.....

hey can you do movement scripts on it?

because every time i do it says a error and when i fix them it says &ho

please help?

Last edited by poke freak 101; July 16th, 2008 at 01:25 PM. Reason: Your double post has been automatically merged.
  #155    
Old July 16th, 2008, 01:38 PM
1KewlDude's Avatar
1KewlDude
Really busy... STRESS!!
 
Join Date: Dec 2007
Location: London
Age: 21
Nature: Docile
Quote:
Originally Posted by poke freak 101 View Post
whenever i do my script and try to compile it it says

unknown keyword "applymovement" at line 4

can someone help me.
i still am a newbie so if its obvious then sorry.....

hey can you do movement scripts on it?

because every time i do it says a error and when i fix them it says &ho

please help?
It would really helpful if you posted the script...
__________________
Spoiler:

This was made by me.

Hacks I support:
Spoiler:



  #156    
Old July 16th, 2008, 07:38 PM
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter Tier 2
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 22
Gender: Male
Nature: Modest
Quote:
Originally Posted by poke freak 101 View Post
whenever i do my script and try to compile it it says

unknown keyword "applymovement" at line 4

can someone help me.
i still am a newbie so if its obvious then sorry.....

hey can you do movement scripts on it?

because every time i do it says a error and when i fix them it says &ho

please help?
Please post the script, so we can help you.
__________________
あなた は しきしゃ です
わたし は ばか です
  #157    
Old July 16th, 2008, 07:47 PM
Tyrantrum's Avatar
Tyrantrum
none pizza with left beef
Community Supporter
 
Join Date: Oct 2007
Location: New Jersey
Age: 20
Gender: Male
Nature: Lonely
Send a message via Skype™ to Tyrantrum
Um, I'm kind of waiting for a full XSE tut to come out, but, what would a give Pokemon script look like?
Also, the script is long.
How would I make it so that someone talks first, gives u the pokemon, then talks some more?
Also, the sound when ur given something?
Sry, I'm still a little new to scripting.
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
  #158    
Old July 16th, 2008, 07:53 PM
Ryousha's Avatar
Ryousha
Waiting for PokeSpe HG/SS
 
Join Date: Jun 2007
Location: Somewhere
Age: 18
Nature: Naive
Send a message via Windows Live Messenger to Ryousha
Code:
#Dynamic 0x800000

#ORG @Main
Lock
FacePlayer
Message @Speak
checkflag 0x200
#include stdpoke.rbh
givepokemon PKMN_SNEASAL 0x5 0x0 0x0 0x0 0x0
BoxSet 0x6
setflag 0x200
Release
End

#ORG @Speak
= There's a note attached!\n Dear [player],\pI known you since you were 6,\nI got this for your b-day.
= Would you like to rename it?
Like that. Don't steal, this is for my hack.

also i think mine has a glitch, :\

Last edited by Ryousha; July 16th, 2008 at 07:58 PM.
  #159    
Old July 16th, 2008, 07:57 PM
KhaosKnight's Avatar
KhaosKnight
The 1 and only Khaotic Hacker
 
Join Date: Dec 2007
Nature: Relaxed
Quote:
Originally Posted by Eeveon View Post
Um, I'm kind of waiting for a full XSE tut to come out, but, what would a give Pokemon script look like?
Also, the script is long.
How would I make it so that someone talks first, gives u the pokemon, then talks some more?
Also, the sound when ur given something?
Sry, I'm still a little new to scripting.

Code:
 
#Dynamic 0x800000
 
#org @main
lock
faceplayer
checkflag 0x200
if 0x1 goto @end
msgbox @msg1
boxset6
givepokemon 0x4 0x5 0x0
msgbox @msg2
boxset 6
setflag 0x200
release
end
 
#org @end
msgbox @msg3
boxset 6
release
end
 
#org @msg1
= Here, take this pokemon
 
#org @msg2
= Take good care of it
 
#org @msg3
= how is my pokemon doing?

there is a basic cut n' dry give pokemon script(it will give you a lv 5 charmander)
[givepokemon] this tell the script to give a pokemon (duh :D)
[0x4] 4 is charmanders number
[0x5] this one is the pkmns level
[0x0] is the value, just use 0, im not 100% percent on what this does, but i know it wont work without it )

for a more detailed givepokemon script check here
__________________






Last edited by KhaosKnight; July 16th, 2008 at 08:08 PM.
  #160    
Old July 16th, 2008, 07:59 PM
Ryousha's Avatar
Ryousha
Waiting for PokeSpe HG/SS
 
Join Date: Jun 2007
Location: Somewhere
Age: 18
Nature: Naive
Send a message via Windows Live Messenger to Ryousha
meh, you're more advanced than me, (still learning.)
  #161    
Old July 16th, 2008, 08:02 PM
KhaosKnight's Avatar
KhaosKnight
The 1 and only Khaotic Hacker
 
Join Date: Dec 2007
Nature: Relaxed
Quote:
Originally Posted by Ryousha View Post
Code:
#Dynamic 0x800000
 
#ORG @Main
Lock
FacePlayer
Message @Speak
checkflag 0x200
#include stdpoke.rbh
givepokemon PKMN_SNEASAL 0x5 0x0 0x0 0x0 0x0
BoxSet 0x6
setflag 0x200
Release
End
 
#ORG @Speak
= There's a note attached!\n Dear [player],\pI known you since you were 6,\nI got this for your b-day.
= Would you like to rename it?
Like that. Don't steal, this is for my hack.

also i think mine has a glitch, :\

i think so too, you have flags set but for no reason, there is no B_true or 0x1 line(or B_false 0x0)

But i have never seen a script like that before, especialy the "#stdpoke" thing
__________________





  #162    
Old July 16th, 2008, 08:06 PM
Tyrantrum's Avatar
Tyrantrum
none pizza with left beef
Community Supporter
 
Join Date: Oct 2007
Location: New Jersey
Age: 20
Gender: Male
Nature: Lonely
Send a message via Skype™ to Tyrantrum
Will it always be checkflag 0x200 and setflag 0x200?
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
  #163    
Old July 16th, 2008, 08:08 PM
Ryousha's Avatar
Ryousha
Waiting for PokeSpe HG/SS
 
Join Date: Jun 2007
Location: Somewhere
Age: 18
Nature: Naive
Send a message via Windows Live Messenger to Ryousha
Quote:
Originally Posted by Eeveon View Post
Will it always be checkflag 0x200 and setflag 0x200?
No that's just the ID,

but 200 is commonly used,

Quote:
Originally Posted by khaosknight1 View Post
i think so too, you have flags set but for no reason, there is no B_true or 0x1 line(or B_false 0x0)

But i have never seen a script like that before, especialy the "#stdpoke" thing

Can you try scripting it for me?

I can try to learn from there of yours skill
  #164    
Old July 16th, 2008, 08:13 PM
Tyrantrum's Avatar
Tyrantrum
none pizza with left beef
Community Supporter
 
Join Date: Oct 2007
Location: New Jersey
Age: 20
Gender: Male
Nature: Lonely
Send a message via Skype™ to Tyrantrum
Should I always use checkflag and setflag 0x200?
I never understand these.
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
  #165    
Old July 16th, 2008, 08:14 PM
KhaosKnight's Avatar
KhaosKnight
The 1 and only Khaotic Hacker
 
Join Date: Dec 2007
Nature: Relaxed
Quote:
Originally Posted by Ryousha View Post
Can you try scripting it for me?

I can try to learn from there of yours skill
Sorry but no, i am a major nOOb when it comes to scripting, when i get stuck(which happens alot) Dshayabusa helps me(alot)

i just know some of the basics, and i have my own hack to...hack, sorry Ryousha but i cant this time

Quote:
Originally Posted by Eeveon View Post
Should I always use checkflag and setflag 0x200?
I never understand these.
give this a read Eveon

Spoiler:


THIS WAS TAKEN FROM THEx4's SCRIPTING TUTORIAL, credit goes to THEx4

Before I continue. I'm going to just add something on flags.
Flags are very useful when you need an event to only occur once or if you want a person to disappear.
We can set a flag, and if we want an overworld, to dissappear we have to assign the set flag to the OW's, people ID in advancemap. But I'll go into more detail on that later.
Many flags are used within the game already. So if you plan on leaving scripts that are already in the rom, you'll need to be more careful on what flags you use, because flags can only really be used once.
If you want some flags that are not used in the rom as a start, here's a few. 0x200 - 0x29F, 500-79F, 1000-109F. But you'll find more if you experiment with them.

I'll have to do a bit of explaining here, so I'll start with preventing events to happen.

Code:
 
#org $start
lock
faceplayer
checkflag 0x200
if b_true goto $done
message $1
boxset 6
setflag 0x200
release
end
 
#org $done
message $2
boxset 6
clearflag 0x200
release
end
We've already covered lock and faceplayer, so we'll go to checkflag.
checkflag checks if a flag has been set. Checkflag is usually followed by an if line.
When using the if line after checkflag it contains either a b_true or b_false. b_true, meaning, that if the flag is set goto ${pointer}, and if not it will continue with the script. Similiarly, b_false checks if the flag is NOT set, and if it isn't it will goto ${pointer}, and if the flag is set, the script will continue without going to the pointer.
This pointer used in if b_true goto $done it points to another part of the script as you can see in the script.

As you can see the if b_true goto $done points to a different part of a script as shown with the #org $done
Here we have a message and a new command, clearflag.
Once flags are set they can be "unset" with the command clearflag.
Clearflag has to be followed by the flag number.
And here we are at the end of the script.

But there is more than one way to use a flag. Some flags have some sort of game function. I'll explain that in the next part.


Remember this tutorial(THEx4's) is for pokescript, you will need to change the $ to @ when using XSE, other than that everything else is pretty much the same
__________________






Last edited by KhaosKnight; July 16th, 2008 at 08:23 PM.
  #166    
Old July 18th, 2008, 06:11 AM
JackTheRipper's Avatar
JackTheRipper
MISSINGNO. IS WATCHING YOU...
 
Join Date: Jul 2008
Location: The Cemetary
Age: 21
Gender:
Nature: Quiet
I'm seriously about to lose my head.
I'm so frustrated that i have to search so endlessly for tutorials and information!!
I wish someone would help me!
I made a ROM hack of Leaf Green with Advance Map, Advance Text, Advance Starter, Overworld Editor, XSE, and FSF. When i test my ROM, it always starts out with "The save file is corrupted blah blah" and i can't get rid of that. If i press continue then it goes to a dark red screen. If i press new game then it puts me through the PROF. OAK lecture stuff(which i've been searching to figure out how to change what PROF. OAK says!) and then when i go out of my house it is a black screen and i can't do anything.
And here's the best part.............this all started happening when i tried to put my script from XSE on the game. The compile button that you said to click does not let me click it so i went to batched compiler or something and did it that way and took one of the 2 offsets that it gave me and put it on a sprite that i made from scratch and so now i can't even play my ROM and i feel like giving up and deleting everything!!!!
SOMEONE HELP ME!
................
  #167    
Old July 18th, 2008, 06:26 AM
Ryousha's Avatar
Ryousha
Waiting for PokeSpe HG/SS
 
Join Date: Jun 2007
Location: Somewhere
Age: 18
Nature: Naive
Send a message via Windows Live Messenger to Ryousha
Quote:
Originally Posted by JackTheRipper View Post
I'm seriously about to lose my head.
I'm so frustrated that i have to search so endlessly for tutorials and information!!
I wish someone would help me!
I made a ROM hack of Leaf Green with Advance Map, Advance Text, Advance Starter, Overworld Editor, XSE, and FSF. When i test my ROM, it always starts out with "The save file is corrupted blah blah" and i can't get rid of that. If i press continue then it goes to a dark red screen. If i press new game then it puts me through the PROF. OAK lecture stuff(which i've been searching to figure out how to change what PROF. OAK says!) and then when i go out of my house it is a black screen and i can't do anything.
And here's the best part.............this all started happening when i tried to put my script from XSE on the game. The compile button that you said to click does not let me click it so i went to batched compiler or something and did it that way and took one of the 2 offsets that it gave me and put it on a sprite that i made from scratch and so now i can't even play my ROM and i feel like giving up and deleting everything!!!!
SOMEONE HELP ME!
................
Geta new one, XSE is still unstable it may break your rom, get used to it.

Theres a reason called:Backs up
  #168    
Old July 18th, 2008, 06:32 AM
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter Tier 2
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 22
Gender: Male
Nature: Modest
Quote:
Originally Posted by JackTheRipper View Post
I'm seriously about to lose my head.
I'm so frustrated that i have to search so endlessly for tutorials and information!!
I wish someone would help me!
I made a ROM hack of Leaf Green with Advance Map, Advance Text, Advance Starter, Overworld Editor, XSE, and FSF. When i test my ROM, it always starts out with "The save file is corrupted blah blah" and i can't get rid of that. If i press continue then it goes to a dark red screen. If i press new game then it puts me through the PROF. OAK lecture stuff(which i've been searching to figure out how to change what PROF. OAK says!) and then when i go out of my house it is a black screen and i can't do anything.
And here's the best part.............this all started happening when i tried to put my script from XSE on the game. The compile button that you said to click does not let me click it so i went to batched compiler or something and did it that way and took one of the 2 offsets that it gave me and put it on a sprite that i made from scratch and so now i can't even play my ROM and i feel like giving up and deleting everything!!!!
SOMEONE HELP ME!
................
Change your Save Type to 128kb, from 64kb.
Quote:
Originally Posted by Ryousha View Post
Geta new one, XSE is still unstable it may break your rom, get used to it.

Theres a reason called:Backs up
XSE is much more stable than any other script editor, and it shouldn't screw up your ROM.

But still, BACK UP!
__________________
あなた は しきしゃ です
わたし は ばか です
  #169    
Old July 18th, 2008, 06:34 AM
Ryousha's Avatar
Ryousha
Waiting for PokeSpe HG/SS
 
Join Date: Jun 2007
Location: Somewhere
Age: 18
Nature: Naive
Send a message via Windows Live Messenger to Ryousha
Quote:
Originally Posted by Darthatron View Post
Change your Save Type to 128kb, from 64kb.

XSE is much more stable than any other script editor, and it shouldn't screw up your ROM.

But still, BACK UP!
Yeah Back Up

also XSE does break my rom once in a millenium years day
  #170    
Old July 18th, 2008, 07:07 AM
JackTheRipper's Avatar
JackTheRipper
MISSINGNO. IS WATCHING YOU...
 
Join Date: Jul 2008
Location: The Cemetary
Age: 21
Gender:
Nature: Quiet
What do you mean "Change your Save Type to 128kb, from 64kb."??
On AdvanceMap? or in the game saves?
From my knowledge, i don't even think you CAN save the game on an emulator...can you?
This is all so confusing.
I just want to make my ROM but there's so many errors, bugs, glitches, problems, issues!!!!!!!!! GOD....

Ah.
I changed it and it got rid of the corruption message but my game still blinks different colors varying from red to green to brown to black whenever i step out of my house. And another problem is that i want to be able to edit the message about "you are about to embark on ..blehbleh.." and i want to be able to edit what Oak says in the beginning also. I can't find either of those two things....

Hello???
Can someone help me?!

I'm just going to delete my ROM.
I have to since no one on this careless board will help and if they will, i don't know where the frick to go.

Last edited by JackTheRipper; July 18th, 2008 at 01:25 PM. Reason: Your double post has been automatically merged.
  #171    
Old July 18th, 2008, 08:49 PM
Darthatron's Avatar
Darthatron
巨大なトロール。
Community Supporter Tier 2
 
Join Date: Jan 2006
Location: Melbourne, Australia
Age: 22
Gender: Male
Nature: Modest
Quote:
Originally Posted by JackTheRipper View Post
What do you mean "Change your Save Type to 128kb, from 64kb."??
On AdvanceMap? or in the game saves?
From my knowledge, i don't even think you CAN save the game on an emulator...can you?
This is all so confusing.
I just want to make my ROM but there's so many errors, bugs, glitches, problems, issues!!!!!!!!! GOD....

Ah.
I changed it and it got rid of the corruption message but my game still blinks different colors varying from red to green to brown to black whenever i step out of my house. And another problem is that i want to be able to edit the message about "you are about to embark on ..blehbleh.." and i want to be able to edit what Oak says in the beginning also. I can't find either of those two things....

Hello???
Can someone help me?!

I'm just going to delete my ROM.
I have to since no one on this careless board will help and if they will, i don't know where the frick to go.
This is a scripting thread. For ROM help ask in the "Simple Questions" thread. >_<
__________________
あなた は しきしゃ です
わたし は ばか です
  #172    
Old July 18th, 2008, 10:29 PM
Ooka's Avatar
Ooka
<3
Community Supporter
 
Join Date: Aug 2007
Location: Challenging The E4
Age: 21
Gender: Male
Nature: Relaxed
Send a message via Skype™ to Ooka
Code:
#dynamic 0x719B18

#org @1
message @2
boxset 6
applymovement 0xFF @creepy
waitmovement 0x0
end

#org @2
= This place is creepy,\nwe should leave....

#org @creepy
#raw 0x00 0x1D 0xFE
So, it compiles fine, however it freezes when I step on the script :/
Question is what am I doing wrong?

(I feel like a nOOb again, even though I've been hacking for a year or so :/)

Last edited by Ooka; July 18th, 2008 at 10:54 PM.
  #173    
Old July 18th, 2008, 11:14 PM
Tyrantrum's Avatar
Tyrantrum
none pizza with left beef
Community Supporter
 
Join Date: Oct 2007
Location: New Jersey
Age: 20
Gender: Male
Nature: Lonely
Send a message via Skype™ to Tyrantrum
In advance map, it has a script tile right?
In it, it has a: Unknown, var number, var value, and another unknown.
Type in these 2 only: the first unknown: 0003
And var number: 4050.
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
  #174    
Old July 18th, 2008, 11:21 PM
Ooka's Avatar
Ooka
<3
Community Supporter
 
Join Date: Aug 2007
Location: Challenging The E4
Age: 21
Gender: Male
Nature: Relaxed
Send a message via Skype™ to Ooka
Well, that helped a little, however now I have this error:

  #175    
Old July 18th, 2008, 11:25 PM
Tyrantrum's Avatar
Tyrantrum
none pizza with left beef
Community Supporter
 
Join Date: Oct 2007
Location: New Jersey
Age: 20
Gender: Male
Nature: Lonely
Send a message via Skype™ to Tyrantrum
Uh oh.
Well, I'm still in learning.
So, I'm sry, I thought that would help make it work.
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
Closed Thread
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 07:13 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.