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.

Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #26    
Old August 23rd, 2009 (01:17 PM).
Fendaril
Novice Mario 64 hacker.
 
Join Date: Feb 2008
Foullump do you prefer pokescript over XSE or is that what you are use to using as a scripting language.
__________________
mario.......is back?
Reply With Quote
  #27    
Old August 24th, 2009 (09:03 AM). Edited August 24th, 2009 by huntley93.
huntley93
Beginning Trainer
 
Join Date: May 2009
Gender:
will the main body of the script work on xse or not. and have a request for next lesson. legendary battles like mewtwo and zapdos or is that the same as wild battles?
Reply With Quote
  #28    
Old August 24th, 2009 (04:22 PM). Edited August 24th, 2009 by Team Fail.
Team Fail's Avatar
Team Fail
See that, Aster?
Community Supporter
 
Join Date: May 2009
Age: 19
Gender: Male
Nature: Brave
Quote:
Originally Posted by foullump View Post
As far as I can see, you are compiling it wrong
Never mind that. I found the problem. You put "$talk 1= Hi." You're supposed to put a space between them, like this: "$talk 1 = Hi."
Thanks. Now I know what I've been doing wrong. I also want to know: How do you add a sound when you either:
A: talk to a person, or
B: Move with someone

I want to do that like at the beginning of the game when Prof. Oak moves the player to the lab with the "Follow Me" theme.
Reply With Quote
  #29    
Old August 31st, 2009 (03:25 PM).
foullump's Avatar
foullump
Rom Hacking Guru
 
Join Date: Mar 2007
Location: United States
Nature: Calm
Quote:
Originally Posted by pokemonruby2 View Post
Thanks. Now I know what I've been doing wrong. I also want to know: How do you add a sound when you either:
A: talk to a person, or
B: Move with someone

I want to do that like at the beginning of the game when Prof. Oak moves the player to the lab with the "Follow Me" theme.
That would be "playsound 0x0000" where 0000 represents the sound's value. Afterwards, use #raw 0x33 to prevent the game from having errors.
Reply With Quote
  #30    
Old September 1st, 2009 (04:33 PM).
Glitch.'s Avatar
Glitch.
maybe making a comeback
 
Join Date: Aug 2009
Location: canada
Age: 19
Gender: Male
Nature: Relaxed
Send a message via Windows Live Messenger to Glitch.
i use xse since it has less bugs and its what most people use
__________________
Reply With Quote
  #31    
Old September 1st, 2009 (08:29 PM).
ChikoritaMudkipz's Avatar
ChikoritaMudkipz
Beginning Trainer
 
Join Date: Jun 2009
Gender: Male
Hey I was wondering if lesson 8 could be on level scripts, or even combining previous scripts into a rival battle.
__________________
youtube channel: http://www.youtube.com/user/ChikoritaMudkipz
check out my shiny gold x run!
Reply With Quote
  #32    
Old September 5th, 2009 (12:55 PM).
jarcon
Beginning Trainer
 
Join Date: Aug 2009
Gender: Male
Foullump great tutorials, I've started scripting now and have made some really cool scripts already thanks to what I learned! Couldn't have done it without you. Keep them coming! If I have any requests I'll let you know.
Reply With Quote
  #33    
Old September 6th, 2009 (03:03 PM).
Denali's Avatar
Denali
C++ Programmer
 
Join Date: Aug 2009
Location: Michigan
Age: 22
Gender: Male
Nature: Lonely
To start off, amzing tutorials! I don't know what I'd do without you! This may sound stupid, but, I'm confused on how to use the "script" event on advance map. I thought you just make a script making your sprite move, then, when you step on the script tile your player moves and stuff. Am I right?

Here's the script I used:
Spoiler:

#org $nonopoppa
lock
faceplayer
message $halt
$halt 1 =Crap!
boxset 6
applymovement 1 $jiggy
$jiggy 1 ; #binary 0x62 0x01 0x08 0x12 0x44 0xFE
applymovement 0xFF $jiggy
release
end

I don't know if this is right, but, thanks for your time Foullump.
Reply With Quote
  #34    
Old September 7th, 2009 (08:46 AM).
foullump's Avatar
foullump
Rom Hacking Guru
 
Join Date: Mar 2007
Location: United States
Nature: Calm
Quote:
Originally Posted by Denali View Post
To start off, amzing tutorials! I don't know what I'd do without you! This may sound stupid, but, I'm confused on how to use the "script" event on advance map. I thought you just make a script making your sprite move, then, when you step on the script tile your player moves and stuff. Am I right?

Here's the script I used:
Spoiler:

#org $nonopoppa
lock
faceplayer
message $halt
$halt 1 =Crap!
boxset 6
applymovement 1 $jiggy
$jiggy 1 ; #binary 0x62 0x01 0x08 0x12 0x44 0xFE
applymovement 0xFF $jiggy
release
end

I don't know if this is right, but, thanks for your time Foullump.
If you're using a script box then you'll want to get rid of 'lock faceplayer' and maybe add a pause after your movements. Then in advance map, click the script box and on the right it will ask for var values. I always put 50 40.
__________________
Reply With Quote
  #35    
Old September 14th, 2009 (02:58 PM). Edited September 14th, 2009 by Denali.
Denali's Avatar
Denali
C++ Programmer
 
Join Date: Aug 2009
Location: Michigan
Age: 22
Gender: Male
Nature: Lonely
Hey Foullump, I tried your advice and removed the 'faceplayer and lock', but my script still doesn't work. Every time I step on the tile, the hero freezes and is unable to move...Maybe I just can't script...Anyways, here is the script I used the second time...
Spoiler:

#org $pimp
message $talk
$talk 1 =Crap!
boxset 6
applymovement 1 $mover
$mover 1 ; #binary 0x01 0x0A 0x04 0x0C 0xFE
applymovement 0xFF $mover
pausemove 0x0000
release
end

Oh, and I tried to do the var values thing, but I didn't do it right I guess. Or maybe I just didn't understand you.
Thanks foullump,
-MDS
Reply With Quote
  #36    
Old September 20th, 2009 (04:31 PM).
foullump's Avatar
foullump
Rom Hacking Guru
 
Join Date: Mar 2007
Location: United States
Nature: Calm
Quote:
Originally Posted by Denali View Post
Hey Foullump, I tried your advice and removed the 'faceplayer and lock', but my script still doesn't work. Every time I step on the tile, the hero freezes and is unable to move...Maybe I just can't script...Anyways, here is the script I used the second time...
Spoiler:

#org $pimp
message $talk
$talk 1 =Crap!
boxset 6
applymovement 1 $mover
$mover 1 ; #binary 0x01 0x0A 0x04 0x0C 0xFE
applymovement 0xFF $mover
pausemove 0x0000
release
end

Oh, and I tried to do the var values thing, but I didn't do it right I guess. Or maybe I just didn't understand you.
Thanks foullump,
-MDS
One thing you might want to try doing is putting a space before "crap!" It should look like this:
$talk 1 = Crap!

Now that might not do anything at all but as I recall scripts would always freak out if the smallest thing was wrong...
__________________
Reply With Quote
  #37    
Old September 26th, 2009 (10:57 AM).
VVB
Beginning Trainer
 
Join Date: Sep 2009
Age: 24
Gender: Male
Nature: Calm
I have a suggestion on what to include in lesson 8. How about making choices, other than just yes or no, like choosing one out of three starters?
Reply With Quote
  #38    
Old September 28th, 2009 (12:17 PM).
Denali's Avatar
Denali
C++ Programmer
 
Join Date: Aug 2009
Location: Michigan
Age: 22
Gender: Male
Nature: Lonely
I'm sorry foullump, I still can't fix the problem. And what did you mean by the 40 50 var values thing?
Reply With Quote
  #39    
Old October 4th, 2009 (01:55 AM).
huntley93
Beginning Trainer
 
Join Date: May 2009
Gender:
how do i make a trainer battle me again after he has battled me the first time. I have tried putting the script underneth the 1st one but couldn't compile it. Got an idea for lesson 8. could it be one like the enti,scuicine and riakou event in fire red and leaf grean?
Reply With Quote
  #40    
Old October 4th, 2009 (09:41 AM).
boo7100
Beginning Trainer
 
Join Date: Oct 2009
Gender: Male
I need some help with my wild battle script. the battle and the fadescreen and event work fine. the only thing is, when i capture or beat the pokemon, it doesnt go away. Here is my script. can someone tell me wat I did wrong?

#org $script
lock
faceplayer
cry 0xA1 250
#raw 0x33
pause 0x30
message $cry
$cry 1 = Gyooooga!
boxset 6
wildbattle 250 47 2
pause 0x70
fadescreen 1
removesprite 0x800F
setflag 0x1211
pause 0x10
fadescreen 0
release
end
Reply With Quote
  #41    
Old October 4th, 2009 (01:49 PM).
DawnRyder
I cannot believe I'm back -.-
 
Join Date: Aug 2009
Quote:
Originally Posted by boo7100 View Post
I need some help with my wild battle script. the battle and the fadescreen and event work fine. the only thing is, when i capture or beat the pokemon, it doesnt go away. Here is my script. can someone tell me wat I did wrong?

#org $script
lock
faceplayer
cry 0xA1 250
#raw 0x33
pause 0x30
message $cry
$cry 1 = Gyooooga!
boxset 6
wildbattle 250 47 2
pause 0x70
fadescreen 1
removesprite 0x800F
setflag 0x1211
pause 0x10
fadescreen 0
release
end
What you need to do is to set a person ID in AdvanceMap. Select the sprite, and just above the 'Open Script' button will be a box that says 'Person ID'
__________________
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this in your signature.

Sorry guys, but I'm leaving Pokécommunity. I just don't have time for it. As of right now you will no longer be able to contact me.
Reply With Quote
  #42    
Old October 5th, 2009 (04:18 AM).
Klofkac's Avatar
Klofkac
He's back!
 
Join Date: Jun 2009
Location: Sharpedo Bluff
Age: 18
Gender: Male
I have terrible problem with texts. I did all in lesson, but is is always bad.
Script code:
Code:
#org $script
lock
faceplayer
message $question
$question 1 = Hi, do you like\nthis game?
boxset 5
compare 0x800D 0x0001
if 0x01 goto $yes
message $no
$no 1 = Ok. Then...
boxset 6
release
end

#org $yes
message $yes1
$yes1 1 = That's great,\nI like you!
boxset 6
release
end
In-Game picture:
__________________

I AM BACK!
Reply With Quote
  #43    
Old October 5th, 2009 (02:34 PM).
Katie Skyye's Avatar
Katie Skyye
Rubberbandanagramaticalen dar
 
Join Date: Mar 2009
Gender: Female
Nature: Mild
Ergh...

I would rather use XSE since everyone says it's better, but I'd be willing to use Pokéscript for the purpose of learning this...

...but I am unable to find it. Is it possible to post a link to a download on this forum? If that's not allowed, sorry for asking, but I'm sort of stuck without that program.

So, I figure it would be easier for you to send a link than to make another tutorial about XSE, so I thought I'd ask. Thanks!

Also, you sound exactly like a kid in my class...it's very encouraging. ;D
Reply With Quote
  #44    
Old October 8th, 2009 (04:24 PM).
romanceisdead's Avatar
romanceisdead
Beginning Trainer
 
Join Date: Sep 2009
Gender: Male
Nature: Relaxed
i'm having trouble with an oak-like script.
the game just freezes when i reach the script.
__________________
Games I support:

Spoiler:




Reply With Quote
  #45    
Old October 9th, 2009 (03:38 PM).
RainDogg54's Avatar
RainDogg54
Crown of Love
 
Join Date: Oct 2009
Location: arkansas
Gender: Male
Nature: Calm
Thanks these videos have really have helped me with my hack! But I'm having trouble making a script that gives the player running shoes. Can someone teach me how? I tried giveitem 0x82F 0x01 but I don't think that's how your supposed to do it.. :\ I'm a newbie at scripting obviously
Reply With Quote
  #46    
Old October 11th, 2009 (07:50 PM).
saison's Avatar
saison
Black Knight of Dusk
 
Join Date: Nov 2008
Location: I'm there.
Age: 20
Gender: Male
Nature: Bold
Okay, so I'm doing a battle script and everything will work fine, the text before you fight, the battle, and the text once you win. Everything will work until I try to talk to the event again after the battle. It will do something different everytime, whether it be lock the player and have a palette screwup or having weird random text appear in the text box.
Code:
#org $script
lock
faceplayer
trainerbattle 0x00 0x01 $see $win
$see 1 = Can you defeat the creator?
$win 1 = Good thing these aren't my Pokemon!
message $after
$after 1 = We'll meet again.
boxset 6
release
end
I'd really appreciate if somebody could help troubleshoot my problem
__________________
~It wasn't fate. Just the turn of a card.~
~Pokemon White FC: 0948-1520-8911~
Reply With Quote
  #47    
Old October 13th, 2009 (12:41 AM).
AmazingCouchPotato's Avatar
AmazingCouchPotato
Beginning Trainer
 
Join Date: Oct 2009
Location: Pallet Town
Gender: Male
Nature: Modest
These videos are awesome they have helped me a lot, keep up the great work
__________________
RAWR


Help Me Hatch My Egg


Im A Beta Tester For Pokemon Mythic Legends
/Dance
Reply With Quote
  #48    
Old October 16th, 2009 (02:18 PM).
SiegHart's Avatar
SiegHart
Guardian of Time
 
Join Date: Aug 2009
Location: oklahoma
Age: 23
Gender: Male
Nature: Hasty
Send a message via AIM to SiegHart Send a message via Windows Live Messenger to SiegHart
hmm so im watching tutorial five, and i was wondering how i could make an event similar to the oak stopping you when you try to leave town, and then he talks to you... i want to walk out the front door of the house and have a character walk up to you and ask you to help find something, then once u find that item the character walks up to you again and takes the item, and tells you something else...i get all the scripting and movement parts, but how do i make a script activate as soon as i step on a certain tile?
__________________

Spoiler:




Warm my eggs please and ill return the favor
and of course friends are great to have so add me plzz

Click here to feed me a DigiTreat!

Click here to feed me a Rare Candy!

Reply With Quote
  #49    
Old October 16th, 2009 (03:50 PM).
saison's Avatar
saison
Black Knight of Dusk
 
Join Date: Nov 2008
Location: I'm there.
Age: 20
Gender: Male
Nature: Bold
Okay, I put in a script into the ROM that didn't even work (seeing if I could make a script from nothing, I missed some spacing, that's it) and then for some reason my battle script started to work after the battle o.O

Thanks for putting up these vids :D I'll make sure to reference 'em to people.
__________________
~It wasn't fate. Just the turn of a card.~
~Pokemon White FC: 0948-1520-8911~
Reply With Quote
  #50    
Old October 16th, 2009 (10:16 PM).
Klofkac's Avatar
Klofkac
He's back!
 
Join Date: Jun 2009
Location: Sharpedo Bluff
Age: 18
Gender: Male
Hey, lesson 6 is deleted! Why?
__________________

I AM BACK!
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
Minimum Characters Per Post: 25



All times are UTC -8. The time now is 03:34 AM.


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.