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
 
Thread Tools
  #51    
Old June 17th, 2008, 07:48 PM
~Teh Panda~'s Avatar
~Teh Panda~
Sea of Dreams - Redux
 
Join Date: Aug 2007
Quote:
Originally Posted by Eeveon View Post
Hey, I finally made a yes/no script now.
Haven't been trying to script in a while.
What would a give item script look like?
A basic one would look like this, just incorporate a givepokemon event into the script where you want it to be.

Code:
#dynamic 0x800000

#org @givepokemon
lock
faceplayer
Message @give
boxset 6
givepokemon 1 5 0 0 0 0
release
end

@org @give
= Here is a Bulbasaur
__________________




Mystic still in work to let you know...
  #52    
Old June 17th, 2008, 08:08 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 said give ITEM..........................

~EDIT~
Wouldn't the running shoes be a special?
How would I make a script to give a player the running shoes, and then not give the player the running shoes again?
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
  #53    
Old June 18th, 2008, 05:56 AM
Coral
IceCharizard's brother
 
Join Date: Jun 2008
Location: Grass Valley
Gender:
Nature: Jolly
My XSE won't recognize @org!
  #54    
Old June 18th, 2008, 06:04 AM
adiktus's Avatar
adiktus
Basic Scripter
 
Join Date: May 2008
Gender:
Nature: Hardy
It's #org, not @org. # is for offsets..
__________________
*´¨) Love life! Get paid!! Get laid!!!!
¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
(¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
  #55    
Old June 18th, 2008, 10:28 AM
~Teh Panda~'s Avatar
~Teh Panda~
Sea of Dreams - Redux
 
Join Date: Aug 2007
Quote:
Originally Posted by Eeveon View Post
Um, I said give ITEM..........................

~EDIT~
Wouldn't the running shoes be a special?
How would I make a script to give a player the running shoes, and then not give the player the running shoes again?
What game are you editing? Ruby, Firered, specials differ in each game

They are flags

Firered:
Code:
setflag 0x82F
Ruby:
Code:
setflag 0x860
__________________




Mystic still in work to let you know...
  #56    
Old June 18th, 2008, 10:32 AM
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
Sry it's Fire Red.
What would a script look like that gives the player running shoes, and when u obtain them, u talk to the same person again and they don't give them to u again?
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
  #57    
Old June 18th, 2008, 10:33 AM
~Teh Panda~'s Avatar
~Teh Panda~
Sea of Dreams - Redux
 
Join Date: Aug 2007
Quote:
Originally Posted by Eeveon View Post
Sry it's Fire Red.
What would a script look like that gives the player running shoes, and when u obtain them, u talk to the same person again and they don't give them to u again?
Well that would be a simple setflag and check it, you would set the running shoes flag and check for it. I put the flags up on the last post to
__________________




Mystic still in work to let you know...
  #58    
Old June 18th, 2008, 10:47 AM
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
Quote:
Originally Posted by hockeypanda32 View Post
Well that would be a simple setflag and check it, you would set the running shoes flag and check for it. I put the flags up on the last post to
Well, unfortunately, I don't really understand flags....
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
  #59    
Old June 18th, 2008, 03:19 PM
adiktus's Avatar
adiktus
Basic Scripter
 
Join Date: May 2008
Gender:
Nature: Hardy
Flags are simple. You use a flag originally unset. When you check the flag the first time (unset, value is 0) you go to the give running shoes script.. in that script, you set the flag (value is 1). Next time you talk to the person, the flag is checked, but because its now set, another script is called..

While we're talking about flags and specials, I've a question..
Lets say in emerald, you receive the national dex.. its special 0x16f.. Does flag 0x16f get set when you receive the dex?
__________________
*´¨) Love life! Get paid!! Get laid!!!!
¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
(¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
  #60    
Old June 18th, 2008, 03:44 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
OH, so u put the same flag as the special?
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
  #61    
Old June 18th, 2008, 03:48 PM
adiktus's Avatar
adiktus
Basic Scripter
 
Join Date: May 2008
Gender:
Nature: Hardy
I'm not sure. That's why I'm asking if checkflag 0x16f also means checking if you've got the national dex. However, for running shoes, its a flag.. not a special.. so you just check the flag for the running shoes.
__________________
*´¨) Love life! Get paid!! Get laid!!!!
¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
(¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
  #62    
Old June 18th, 2008, 03:52 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
Well, I'm still a little confused and need an example script.
I'm fairly new to scripting since XSE is the only scripting tool that works on my computer.
__________________




(x) Tumblr
(y) Gallery
Previously Eeveon
  #63    
Old June 18th, 2008, 07:40 PM
adiktus's Avatar
adiktus
Basic Scripter
 
Join Date: May 2008
Gender:
Nature: Hardy
@eeveon

#org @start
checkflag 0x82f
if 1 goto @done
setflag 0x82f
message @received
boxset 6
end

#org @done
message @oh
boxset 6
end

#org @received
= You received running shoes.

#org @oh
= Oh, you already have a pair.
__________________
*´¨) Love life! Get paid!! Get laid!!!!
¸.´¸.*´¨) ¸.*¨) I'm the DiStOrTeD one
(¸.´ (¸.` * ..:¨¨**¤°¨¨°...............
  #64    
Old June 18th, 2008, 09:09 PM
~Teh Panda~'s Avatar
~Teh Panda~
Sea of Dreams - Redux
 
Join Date: Aug 2007
Quote:
Originally Posted by adiktus View Post
@eeveon

#org @start
checkflag 0x82f
if 1 goto @done
setflag 0x82f
message @received
boxset 6
end

#org @done
message @oh
boxset 6
end

#org @received
= You received running shoes.

#org @oh
= Oh, you already have a pair.
thanks for showing the example mate, I am too tired to now XD
__________________




Mystic still in work to let you know...
  #65    
Old June 19th, 2008, 03:55 AM
Coral
IceCharizard's brother
 
Join Date: Jun 2008
Location: Grass Valley
Gender:
Nature: Jolly
Hm.
I tried to use this script:

Code:
#dynamic 0x800000

#org @givepokemon
lock
faceplayer
Message @Char
boxset 6
givepokemon 4 5 0 0 0 0
release
end

#org @Char
= I'd better take my CHARMANDER with me!
It works perfectly, but it doesn't make a sound and when I press START, there's no POKEMON (just BAG, [player], OPTIONS, SAVE, EXIT)

Is there a special command to do this?
  #66    
Old June 19th, 2008, 04:55 AM
Tropical Sunlight's Avatar
Tropical Sunlight
The Faltine
 
Join Date: Mar 2008
Location: Slovenia
Age: 18
Gender: Male
Send a message via Windows Live Messenger to Tropical Sunlight
Hey it's 0x828

Try it like this:

Quote:
#dynamic 0x800000

#org @givepokemon
lock
faceplayer
Message @Char
boxset 6
givepokemon 4 5 0 0 0 0
fanfare 0x13E
setflag 0x828
release
end

#org @Char
= I'd better take my CHARMANDER with me!
But then it doesn't disappear. Strange (or am I just a noob?)
__________________

Last edited by Tropical Sunlight; June 19th, 2008 at 05:06 AM.
  #67    
Old June 19th, 2008, 06:03 AM
chaotic_soma's Avatar
chaotic_soma
Chaotic little devil anyone?
 
Join Date: Feb 2008
Location: Under your bed!!
Gender:
Nature: Quirky
okay for both the charizards try this i just tested it and it works:

#dynamic 0x2DD2BE

#org @givepokemon
checkflag 0x206
if b_true goto @recieved
lock
faceplayer
Message @give
boxset 6
setflag 0x206
givepokemon 1 5 0 0 0 0
fanfare 0x13E
release
end

#org @give
= Here is a Bulbasaur

#org @recieved
lock
faceplayer
message @cheap
boxset 6
release end

#org @cheap
= don't be cheap!

enjoy :3
__________________
When i said said "guh!?" i really meant to say "GRAAAAA!!!"

Last edited by chaotic_soma; June 19th, 2008 at 06:13 AM.
  #68    
Old June 19th, 2008, 06:18 AM
Tropical Sunlight's Avatar
Tropical Sunlight
The Faltine
 
Join Date: Mar 2008
Location: Slovenia
Age: 18
Gender: Male
Send a message via Windows Live Messenger to Tropical Sunlight
I don't understand...

252525252525
__________________
  #69    
Old June 19th, 2008, 06:33 AM
chaotic_soma's Avatar
chaotic_soma
Chaotic little devil anyone?
 
Join Date: Feb 2008
Location: Under your bed!!
Gender:
Nature: Quirky
Quote:
Originally Posted by IceCharizard View Post
I don't understand...

252525252525
What don't you get? What were you aiming for?
__________________
When i said said "guh!?" i really meant to say "GRAAAAA!!!"
  #70    
Old June 19th, 2008, 01:14 PM
~Teh Panda~'s Avatar
~Teh Panda~
Sea of Dreams - Redux
 
Join Date: Aug 2007
Beta 1 should be out soon enough like a week or two after my beta testers get it ready and bug reports flow in.... Than beta 1 than I hopefully continue this tut!
__________________




Mystic still in work to let you know...
  #71    
Old June 20th, 2008, 05:25 AM
chaotic_soma's Avatar
chaotic_soma
Chaotic little devil anyone?
 
Join Date: Feb 2008
Location: Under your bed!!
Gender:
Nature: Quirky
Hey i know that this is the wrong this is the wrong spot to ask this but i can't for the life of me find where i am supposed to put this i need a simple "don't go into the grass till you have a pokemon" script. obviously for XSE i never learnt it before so yeah help
__________________
When i said said "guh!?" i really meant to say "GRAAAAA!!!"
  #72    
Old June 20th, 2008, 05:55 AM
Charliezard's Avatar
Charliezard
A wild shroomish appeared!
 
Join Date: May 2007
Location: Australia
Age: 22
Gender: Male
Ummm, I'm tired lol an yeh...maybe try something like

Code:
#Dynamic 0x80000

#ORG @GrassMaybe

lock
checkflag 0x828
if 0x0 goto @NoEntry
release
end

#ORG @NoEntry
~Talking Script~
~Movement script~
0x828 is the pokemon menu flag so yeh. Sorry, that's all I really know lol, I'm having problems with the movement myself. I got help from Hackmew, made the changes and well he said it worked for him -_- Just me lol. I'll be best to try when I'm not tired lol
  #73    
Old June 20th, 2008, 06:11 AM
chaotic_soma's Avatar
chaotic_soma
Chaotic little devil anyone?
 
Join Date: Feb 2008
Location: Under your bed!!
Gender:
Nature: Quirky
Quote:
Originally Posted by Onvoloper View Post
Ummm, I'm tired lol an yeh...maybe try something like

Code:
#Dynamic 0x80000

#ORG @GrassMaybe

lock
checkflag 0x828
if 0x0 goto @NoEntry
release
end

#ORG @NoEntry
~Talking Script~
~Movement script~
0x828 is the pokemon menu flag so yeh. Sorry, that's all I really know lol, I'm having problems with the movement myself. I got help from Hackmew, made the changes and well he said it worked for him Just me lol. I'll be best to try when I'm not tired lol
Hey thanks *freaks out* I never learned movement either!!!
so hmm maybe i should talk to Hackmew...
__________________
When i said said "guh!?" i really meant to say "GRAAAAA!!!"
  #74    
Old June 20th, 2008, 06:20 AM
Master_Track's Avatar
Master_Track
ROM Reaverz Scripter
 
Join Date: Mar 2008
Location: Austria
Age: 21
Gender:
Nature: Brave
Send a message via Windows Live Messenger to Master_Track
movements are easy.
a basic don't go out script would look like this:

#dynamic 0x[offset]

#org @begin
checkflag 0x828
if B_true goto @done
lock
message @stop
boxset 0x6
applymovement 0xFF @1
waitmovement 0
release
end

#org @done
release
end

#org @stop
= I shouldn't go out without\na pokemon!

#org @1
#binary 0x10 0xFE

This will make you go done 1 tile.
Movement lists can be found in thethethethe's pokescript tutorial for both FR/BG and R/S/E.
__________________

*Busy with school*

  #75    
Old June 20th, 2008, 06:26 AM
chaotic_soma's Avatar
chaotic_soma
Chaotic little devil anyone?
 
Join Date: Feb 2008
Location: Under your bed!!
Gender:
Nature: Quirky
Quote:
Originally Posted by Master_Track View Post
movements are easy.
a basic don't go out script would look like this:

#dynamic 0x[offset]

#org @begin
checkflag 0x828
if B_true goto @done
lock
message @stop
boxset 0x6
applymovement 0xFF @1
waitmovement 0
release
end

#org @done
release
end

#org @stop
= I shouldn't go out without\na pokemon!

#org @1
#binary 0x10 0xFE

This will make you go done 1 tile.
Movement lists can be found in thethethethe's pokescript tutorial for both FR/BG and R/S/E.

hey omg thank you so much! *crash tackles master_track* you are my new friend!!!
__________________
When i said said "guh!?" i really meant to say "GRAAAAA!!!"
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 09:56 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.