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.


Advertise here

Reply
 
Thread Tools
  #101    
Old June 6th, 2010, 01:54 AM
Beechlgz
Advanced Trainer
 
Join Date: May 2010

Advertise here
Quote:
Originally Posted by TheChroniclesofLance View Post
that doesn't work.

all that happens when I do that is a bunch of #raw x0FF
This happens to me too when I was using the wrong one (@offset1 <-> 0xEB0B21 (0x0 bytes) instead of @start <-> 0x740090 (0xB bytes)), but it still doesn't work if I use the start one and I'm pretty sure I'm following the instructions exactly.

I create the script, looks like this (because it's my first try just for practice):

Code:
#dynamic 0x740000
#org @start
lock
faceplayer
message @offset1
callstd MSG_NORMAL
release
end

#org @offset1
=Last year they started building\n\la PokeCentre here, but they ran\n\lout of money.\nSo we made it a garden!\n Isn't it great?
I hit compile and I get this come up: @start <-> 0x740090 (0xB bytes)
@offset1 <-> 0xEB0B21 (0x0 bytes)

In Advance Map I insert the script offset 0x740090 into the "script offset" field for the person I want to say it. When I click "Open Script, it comes out like this:

Code:
#org 0x8740090
'-----------------------------------
lock
faceplayer
message 0x8EB0B21 ' 
callstd MSG_LOCK ' Built-in lock command
release
end


#org 0x8EB0B21
=
And obviously fails to work in the game.

Where am I going wrong?

EDIT: Now it comes up with this:

Code:
#org 0x87400A8
'-----------------------------------
lock
faceplayer
message 0x87400B3 ' Last year they start...
callstd MSG_LOCK ' Built-in lock command
release
end


#org 0x87400B3
= Last year they started building\n\la PokeCentre here, but they ran\n\lout of money.\nSo we made it a garden!\n Isn't it great?
And the character will not speak. I don't know what I did to cause the change, but I guess it's one step in the right direction. Still, upon testing, the speech window opens but no text is displayed.

Also, variables. Yeah, I can see how to read them. But what actually are they? What do they do?

Last edited by Beechlgz; June 6th, 2010 at 04:32 AM.
Reply With Quote
  #102    
Old June 6th, 2010, 05:07 AM
Alignment's Avatar
Alignment
Revered with the stars
 
Join Date: Mar 2010
Gender: Male
Nature: Lonely
Quote:
Originally Posted by Beechlgz View Post
This happens to me too when I was using the wrong one (@offset1 <-> 0xEB0B21 (0x0 bytes) instead of @start <-> 0x740090 (0xB bytes)), but it still doesn't work if I use the start one and I'm pretty sure I'm following the instructions exactly.

I create the script, looks like this (because it's my first try just for practice):

Code:
#dynamic 0x740000
#org @start
lock
faceplayer
message @offset1
callstd MSG_NORMAL
release
end

#org @offset1
=Last year they started building\n\la PokeCentre here, but they ran\n\lout of money.\nSo we made it a garden!\n Isn't it great?
I hit compile and I get this come up: @start <-> 0x740090 (0xB bytes)
@offset1 <-> 0xEB0B21 (0x0 bytes)

In Advance Map I insert the script offset 0x740090 into the "script offset" field for the person I want to say it. When I click "Open Script, it comes out like this:

Code:
#org 0x8740090
'-----------------------------------
lock
faceplayer
message 0x8EB0B21 ' 
callstd MSG_LOCK ' Built-in lock command
release
end


#org 0x8EB0B21
=
And obviously fails to work in the game.

Where am I going wrong?

EDIT: Now it comes up with this:

Code:
#org 0x87400A8
'-----------------------------------
lock
faceplayer
message 0x87400B3 ' Last year they start...
callstd MSG_LOCK ' Built-in lock command
release
end


#org 0x87400B3
= Last year they started building\n\la PokeCentre here, but they ran\n\lout of money.\nSo we made it a garden!\n Isn't it great?
And the character will not speak. I don't know what I did to cause the change, but I guess it's one step in the right direction. Still, upon testing, the speech window opens but no text is displayed.

Also, variables. Yeah, I can see how to read them. But what actually are they? What do they do?

#dynamic 0x740000
#org @start
lock
faceplayer
message @text
callstd MSG_NORMAL
release
end

#org @text
= Last year they started building\na Pok\eCentre here, but they ran\lout of money.\pSo we made it a garden!\nIsn't it great?

Try this & open your ROM via PKSV first...
Reply With Quote
  #103    
Old June 6th, 2010, 07:06 AM
TheChroniclesofLance's Avatar
TheChroniclesofLance
Beginning Trainer
 
Join Date: Apr 2010
Gender: Male
how would one do a mailman script. a person walks up to you.

something like "The mailman gave you a letter"

then he walks off, you read it. and then it releases you?
__________________
http://www.pokecommunity.com/showthread.php?t=220574
My Main Hack: Pokemon: World Tour



Reply With Quote
  #104    
Old June 6th, 2010, 08:29 AM
cormac
Beginning Trainer
 
Join Date: Jul 2007
Nature: Adamant
Whats wrong with the script below.
If I pick yes or no in the message box, it still goes to " @given " when
I would only want to go there on a yes. Any help is helpful
thanks in advance.

Problem part below (not all of the script)

dyn 0x740000
#org @start
lock
faceplayer
msgbox @text
callstd MSG_YESNO
if 0x1 jump @given
jump @sad1
Reply With Quote
  #105    
Old June 6th, 2010, 10:54 AM
Alignment's Avatar
Alignment
Revered with the stars
 
Join Date: Mar 2010
Gender: Male
Nature: Lonely
Quote:
Originally Posted by cormac View Post
Whats wrong with the script below.
If I pick yes or no in the message box, it still goes to " @given " when
I would only want to go there on a yes. Any help is helpful
thanks in advance.

Problem part below (not all of the script)

dyn 0x740000
#org @start
lock
faceplayer
msgbox @text
callstd MSG_YESNO
if 0x1 jump @given
jump @sad1
you don't need the second jump. Try:

#dyn 0x740000
#org @start
lock
faceplayer
msgbox @text
callstd MSG_YESNO
compare LASTRESULT YES
if == jump @given
(now continue the script from @sad1)

REMEMBER:
@text - is a pointer to the question
@given is what is said if yes was the answer to the question
what ever is after @given occurs if the player answers no to the question @text

This has become a script help thread all of a sudden
Reply With Quote
  #106    
Old June 12th, 2010, 07:29 PM
snyderc's Avatar
snyderc
Beginning Trainer
 
Join Date: May 2010
Gender: Male
ok so how would i make a script in which someone exits a building walks over to me and has me follow them inside (like professor oaks in fire-red/leaf-green) im making a game but i need a professor to escort me inside to give the starter pokemon
Reply With Quote
  #107    
Old June 13th, 2010, 05:49 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
from now on, please ask questions regarding help with scripts in the script help request thread. thank you.
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #108    
Old June 25th, 2010, 10:43 PM
pokehax18
Beginning Trainer
 
Join Date: Jun 2010
Gender: Male
ive been messing with pksv for awhile and im able to do everything except messages (text keeps overlapping even with /n) and movement (not sure how to put it into the script) can anyone help me?
Reply With Quote
  #109    
Old June 26th, 2010, 11:28 AM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
yup.
don't use /n, use\n trust me, it will work much better.
also, i believe XSE and PKSV both have a text converter, i reccomend using that (or perhaps the script gen inside pksv's menu -.- wow the laziness amazes me...)
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #110    
Old June 27th, 2010, 03:17 PM
DCrawford33
Beginning Trainer
 
Join Date: Jun 2010
Gender: Male
Nature: Brave
This is a good tutorial, but could you explain the multiplechoice command for me?
Reply With Quote
  #111    
Old June 27th, 2010, 06:30 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
nope, as i don't really get it myself (except for with jpans engine)
i recommend searching that tutorial allowing you to edit the multi-choice boxes though
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #112    
Old June 27th, 2010, 07:30 PM
Alignment's Avatar
Alignment
Revered with the stars
 
Join Date: Mar 2010
Gender: Male
Nature: Lonely
Quote:
Originally Posted by Full Metal View Post
nope, as i don't really get it myself (except for with jpans engine)
i recommend searching that tutorial allowing you to edit the multi-choice boxes though
I've seen a tutorial for that by Manipulation somewhere else, it requires hex editing. Jpan's patch is the way to go in my opinon.
Reply With Quote
  #113    
Old June 28th, 2010, 07:23 AM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
haha, but that is the lazy way of doing things
what if somebody wanted to do it on say, a game besides firered?
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #114    
Old July 28th, 2010, 09:39 AM
minime010's Avatar
minime010
|...I have returned...|
 
Join Date: May 2010
Location: Somewhere over the Rainbow, Way up high
Gender: Male
Nature: Gentle
could you add battle scripts?
Reply With Quote
  #115    
Old August 7th, 2010, 03:33 PM
ger345's Avatar
ger345
Im just like that.
 
Join Date: Jul 2010
Location: In your brain!
Gender: Male
Nature: Quiet
Could you explain how to find the whole scripts offset, im having trouble. Heres my script. In my game its how you get your two starters! (I need an offset that works with advance map!)
#dyn 0x740000
#org @start
lock
faceplayer
msgbox @text ' Hi!
callstd MSG_NORMAL
release
end

#org @text
= Hi!
#dyn 0x740000
#org @start
lock
checkflag 0x250
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon CATERPIE 5 = 5 NONE 0 0 0
setflag 0x250
storepokemon 0 CATERPIE
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end

#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end

#org @noroom-msg
= You don't have enough room in your party.

#org @get-msg
= You got a \v\h02!


#dyn 0x740000
#org @begin
trainerbattle 0x0 0x059 0x0 @intro @defeat
msgbox @afterwards
callstd msg_normal
end
#org @intro
= I will crush you!!! Go! Butterfree and Beedrill!

#org @defeat
= You crushed me[.]

#org @afterwards
= Hmm. Very nice! I see my caterpie is really strong! Trade him to me for this Beedrill? My Beedrill is level 10 No? You just want him? Ok.... Bye Bye Beedrill.
#dyn 0x740000
#org @start
lock
checkflag 0x250
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon BEEDRILL 10 = 10 NONE 0 0 0
setflag 0x250
storepokemon 0 BEEDRILL
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end

#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end

#org @noroom-msg
= You don't have enough room in your party.

#org @get-msg
= You got a \v\h02!
#dyn 0x740000
#org @
lockall
message @healmsg
showmsg
waitbutton
fadescreen 1
closemsg
special 0
fadescreen 0
msgbox @bettermsg
callstd MSG_NORMAL
releaseall
end

#org @healmsg
= Your POKéMON look tired[.]\nYou should give them some of my special medicine!.

#org @bettermsg
= There. All better now!
__________________
Any one seen an HGSS Starter editor? Dose it exist, probably not. Any one know how to make an editing program? I dont. If you do and want to teach me, pm or vm me about it!
Ongoing challenges:
Ultimate Monotype Challenge: Dragon Type Johto:0/8 Kanto 0/8 Hoenn 0/8 Sinnoh 0/8
Unova 0/8


73% of teenagers would cry if they saw Justin Bieber standing on top of a skyscraper about to jump. If you are the 27% sitting there with popcorn and 3D glasses, screaming b"DO A BACKFLIP!" copy this as your signature!!!
What pokemon games have I finished you ask? Well. Let me start at the beging, and make it aws simple as possible: All of them. Not one of the regular seires has escape the new and everything in between, even all of the Mystery Dungeon games.
Rainbow

All the simple things in life:
Smiling suns, Evil Duxs, and line.
Reply With Quote
  #116    
Old August 7th, 2010, 05:41 PM
Alignment's Avatar
Alignment
Revered with the stars
 
Join Date: Mar 2010
Gender: Male
Nature: Lonely
Quote:
Originally Posted by ger345 View Post
Could you explain how to find the whole scripts offset, im having trouble. Heres my script. In my game its how you get your two starters! (I need an offset that works with advance map!)
#dyn 0x740000
#org @start
lock
faceplayer
msgbox @text ' Hi!
callstd MSG_NORMAL
release
end

#org @text
= Hi!
#dyn 0x740000
#org @start
lock
checkflag 0x250
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon CATERPIE 5 = 5 NONE 0 0 0
setflag 0x250
storepokemon 0 CATERPIE
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end

#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end

#org @noroom-msg
= You don't have enough room in your party.

#org @get-msg
= You got a \v\h02!


#dyn 0x740000
#org @begin
trainerbattle 0x0 0x059 0x0 @intro @defeat
msgbox @afterwards
callstd msg_normal
end
#org @intro
= I will crush you!!! Go! Butterfree and Beedrill!

#org @defeat
= You crushed me[.]

#org @afterwards
= Hmm. Very nice! I see my caterpie is really strong! Trade him to me for this Beedrill? My Beedrill is level 10 No? You just want him? Ok.... Bye Bye Beedrill.
#dyn 0x740000
#org @start
lock
checkflag 0x250
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon BEEDRILL 10 = 10 NONE 0 0 0
setflag 0x250
storepokemon 0 BEEDRILL
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end

#org @noroom
msgbox @noroom-msg
callstd MSG_NOCLOSE
release
end

#org @noroom-msg
= You don't have enough room in your party.

#org @get-msg
= You got a \v\h02!
#dyn 0x740000
#org @
lockall
message @healmsg
showmsg
waitbutton
fadescreen 1
closemsg
special 0
fadescreen 0
msgbox @bettermsg
callstd MSG_NORMAL
releaseall
end

#org @healmsg
= Your POKéMON look tired[.]\nYou should give them some of my special medicine!.

#org @bettermsg
= There. All better now!

You must compile them. Even if I compiled it here and gave you the codes it would differ depending on the ROM and the scripting program has to actually implant the scripts themselves. I suggest looking at someone compiling a script on youtube, it's not an easy matter to explain in words (people often get confused).
Reply With Quote
  #117    
Old March 1st, 2011, 05:56 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
I've been told there are a few bugs in my scripts. I haven't updated the first post yet, I'll do that on the weekend. [css makes it take forever, and I feel the need to heavily edit CSS every time I edit a post. ... :\ ]
anyways
original:
Spoiler:

unsigned int size;//C++ code, sorry, forgot to push ctrl+c....
#dynamic 0x740000
#org @main
lock
faceplayer
checkflag 0x200
if 0x1 jump @haveit
message @want
callstd MSG_YESNO
if 0x1 jump @pushedyes
jump @pushedno

#org @haveit
message @howsit
callstd MSG_NORMAL
release
end

#org @pushedyes
setflag 0x200
giveegg PICHU
message @herego
callstd MSG_NORMAL
release
end

#org @pushedno
message @dontwant
callstd MSG_NORMAL
release
end

#org @want
= Hey, do you want this Pichu egg?

#org @howsit
= Here you go!\nPlease raise it well.

#org @dontwant
= Oh, ok. Maybe someone else will take it.

And Fixed:
Spoiler:

#dynamic 0x740000
#org @main
lock
faceplayer
checkflag 0x200
if 0x1 jump @haveit
message @want
callstd MSG_YESNO
if true jump @pushedyes
jump @pushedno

#org @haveit
message @howsit
callstd MSG_NORMAL
release
end

#org @pushedyes
setflag 0x200
giveegg PICHU
message @herego
callstd MSG_NORMAL
release
end

#org @pushedno
message @dontwant
callstd MSG_NORMAL
release
end

#org @want
= Hey, do you want this Pichu egg?
#org @herego
= Here you go!\nPlease raise it well.
#org @howsit
= How's the PIICHU I gave you?
#org @dontwant
= Oh, ok. Maybe someone else will take it.

@Sora's Nobody- Um, well I looked in my variable lesson, I don't see a message for YES/NO in there anywhere.
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #118    
Old March 18th, 2011, 10:44 PM
sora19
Beginning Trainer
 
Join Date: Mar 2011
Gender: Male
Hi I'm new to this whole rom hacking thing but i got down how to edit sprites and maps just wanna know about scripting few questions

1. Does PKSV have a way to show me the entire script for fire red and if not how can i do that

2. How do I asign a script to a new character that I put int/add a new main character to the game such as if I choose to be male female is also in the game as a rival/ally?
Reply With Quote
  #119    
Old April 24th, 2011, 08:40 PM
The Void's Avatar
The Void
Comforter, philosopher, and lifelong mate
 
Join Date: May 2010
Location: Aboard the ship of Theseus
Gender: Male
Nature: Calm
I made a script for Brendan in a cave in Pokemon FireRed. According to him he was there because of a rare Pokemon. He then engages the player in a Pokemon battle. After the player defeats him, Brendan says a few stuff about how strong the player is then an earthquake occurs. He then says that it must be coming from downstairs and walks towards a ladder leading downstairs.

____________________________________________________
#dynamic 0x74000
#org @start
lockall
checkflag 0x200
if true jump :end
applymovement 0x1 @movement
applymovement 0x1 @movement2
trainerbattle 0x0 0x1AA 0x0 @intro @defeat
msgbox @afterbattle ' You have amazed me b...
callstd MSG_LOCK ' Built-in lock command
lockall
setvar 0x8004 0x3
setvar 0x8005 14
setvar 0x8006 14
setvar 0x8007 3
special 0x136
waitspecial
releaseall
lock
faceplayer
msgbox @text ' What was that?
callstd MSG_NORMAL
release
applymovement 0x1 @movement3
applymovement 0x1 @movement4
end

#org @intro
= Hey!\nYou're ALBRAVE, right? \pI've heard so much about you! \pI've heard of your triumph over\nthe ELITE FOUR in KANTO! \pOh, I forgot to introduce myself.\pI am BRENDAN, the\nHOENN LEAGUE CHAMPION. \pI have come here because\nI have heard that a rare species\lof POK\eMON has come\nhere. \pBut before I battle it,\nI want to see your strength\nin a POK\eMON BATTLE! \pCome on!

#org @defeat
= Wow! You're strong!

#org @afterbattle
= You have amazed me beyond\nwords! \pI guess I'm not worthy\nof the rare POK\eMON that dwells here. \pBut you are! \nGo on! \pI must take flight! \pSee you around soon!

#org @text
= What was that? \pAn earthquake!\nIt must be coming from below!\lLet's check it out!

#org @movement
M look_down say_! end

#org @movement2
M walk_down walk_down

#org @movement3
M say_!!

#org @movement4
M walk_right walk_right walk_right walk_right end

_____________________________________________

I was able to compile this and get the offset but for some reason when I tested it on the game, the game just hangs... Can you tell me why? Please do tell me what's wrong with my script. I've just began scripting and I don't know much yet...
Reply With Quote
  #120    
Old April 26th, 2011, 04:57 AM
markis
Beginning Trainer
 
Join Date: Apr 2011
Gender: Male
Hi, i'm new here. I have 3 questions. First, wtf that FR_BADGE_1 and RS_BADGE_1. And others like what? What whey do and how to use with examples? Second, can you tell more about MSG_FIND MSG_NORMAL and others? What whey do and how to use? With examples. And third, how to make person event follow player script? Like in pkmn yellow. Looking forward to your answer.

Hi, i'm new here. I have 3 questions. First, wtf that FR_BADGE_1 and RS_BADGE_1. And others like what? What whey do and how to use with examples? Second, can you tell more about MSG_FIND MSG_NORMAL and others? What whey do and how to use? With examples. And third, how to make person event follow player script? Like in pkmn yellow. Looking forward to your answer.

Last edited by markis; April 26th, 2011 at 05:09 AM. Reason: Your double post has been automatically merged.
Reply With Quote
  #121    
Old May 7th, 2011, 03:50 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
@dragon456 - Well, for starters you have redundant lockall dealies. ( why release, then immediately lock ? ) and secondly, you're missing your :end label specifier, and a setflag statement from what I can see.
@markis - um.... what?
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #122    
Old May 15th, 2011, 03:40 AM
zachlim98's Avatar
zachlim98
Half-way mark Scripter
 
Join Date: Aug 2010
Gender: Male
Cool, really useful tutorial! Thanks a lot!
__________________
In a Pokemon Battle, what's Important is NOT who's RIGHT, but who's LEFT!
Proof(Video): http://www.youtube.com/watch?v=RsU8bZhDuMI
Proof(Photo): http://img191.imageshack.us/g/bus1t.png/
Reply With Quote
  #123    
Old May 15th, 2011, 04:19 PM
Full Metal's Avatar
Full Metal
C(++) Developer.
Community Supporter
 
Join Date: Jan 2008
Location: In my mind.
Age: 19
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to Full Metal
You bet, I'm glad you find it useful.
__________________

★ full metal.

I like to push it,
and push it,
until my luck is over.
Reply With Quote
  #124    
Old May 30th, 2011, 10:57 PM
Roboto-kun's Avatar
Roboto-kun
is an Ace Trainer.
 
Join Date: Apr 2011
Gender: Male
Nature: Jolly
Quote:
Originally Posted by Alignment View Post
You must compile them. Even if I compiled it here and gave you the codes it would differ depending on the ROM and the scripting program has to actually implant the scripts themselves. I suggest looking at someone compiling a script on youtube, it's not an easy matter to explain in words (people often get confused).
Just click the compile button. Omg. It's so easy. o.o

Quote:
Originally Posted by markis View Post
Hi, i'm new here. I have 3 questions. First, wtf that FR_BADGE_1 and RS_BADGE_1. And others like what? What whey do and how to use with examples? Second, can you tell more about MSG_FIND MSG_NORMAL and others? What whey do and how to use? With examples. And third, how to make person event follow player script? Like in pkmn yellow. Looking forward to your answer.

Hi, i'm new here. I have 3 questions. First, wtf that FR_BADGE_1 and RS_BADGE_1. And others like what? What whey do and how to use with examples? Second, can you tell more about MSG_FIND MSG_NORMAL and others? What whey do and how to use? With examples. And third, how to make person event follow player script? Like in pkmn yellow. Looking forward to your answer.
Answers:
1. FR_BADGE_1 is a command that gives you the 1st badge. FR_BADGE_2 is the second and so on. RS_BADGE_1 will erase your badge. How to use FR_BADGE_1:

#dyn 0x740000
$org @main
lock
faceplayer
setflag FR_BADGE_1
release
end

That's about it.

2. MSG_NORMAL is a normal message. MSG_NORMAL is a message like "Player found the rare candy!". MSG_NOCLOSE is a non-closing message, much like MSG_NORMAL. However, the only difference between the two is MSG_NOCLOSE doesn't close even when the next command appears. To close it, use closemsg. MSG_OBTAIN are messages like "Player obtained item!". MSG_YESNO are used for yes and no messages. I think there're more, but figure them out by yourself. ;D

How to use MSG_NORMAL:
#dyn 0x740000
#org @start
lock
faceplayer
message @talk
callstd MSG_NORMAL
release
end

#org @talk
= Hello.

How to use MSG_NOCLOSE:
#dyn 0x740000
#org @start
lock
faceplayer
message @talk
callstd MSG_NOCLOSE
release - BTW, a command like release can also close MSG_NOCLOSE
end

#org @talk
= Hello.

How to use MSG_FIND/OBTAIN:
#dyn 0x740000
#org @start
lock
faceplayer
copyvar 0x8000 POTION (or something like that)
callstd MSG_FIND < MSG_OBTAIN is used like that as well.
release
end

How to use MSG_YESNO:
#dyn 0x740000
#org @start
lock
faceplayer
message @talk
callstd MSG_YESNO
compare LASTRESULT YES
if == jump @yes
compare LASTRESULT NO
if == jump @no
release
end

#org @talk
= Are you a girl?

#org @yes
= Oh! Ok.

#org @no
= Oh...

3. It is quite impossible to make a Pokemon follow you. I've seen videos, however, you cannot tell if they're real.

Hope I helped you!

Multiple choice function?
__________________


l l

Last edited by Roboto-kun; May 30th, 2011 at 11:35 PM. Reason: Your double post has been automatically merged.
Reply With Quote
  #125    
Old June 4th, 2011, 10:42 AM
Ghost2d
Beginning Trainer
 
Join Date: Jun 2011
Gender: Male
I want to learn to make a script, where the pokedex is givin to me, maybe with a message attached.
Reply With Quote
Reply
Quick Reply

Sponsored Links


Advertise here
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 02:44 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.