The PokéCommunity Forums  

Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub
Sign Up Rules/FAQ Live Battle Blogs Mark Forums Read

Notices

ROM Hacking Hub General discussions about ROM Hacking and Emulation. Not sure where to start? This is the place for you.
Posting links to ROMs is illegal and is not tolerated anywhere on the forum.
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
  #5251    
Old February 9th, 2011, 11:01 PM
fizzmaister's Avatar
fizzmaister
Beginning Trainer
 
Join Date: Jan 2008
Quote:
Originally Posted by Tropical Sunlight View Post
I have, but there were a lot of calls to different offsets. Is that it?
Take a look at the scientist that revives fossils in the Cinnabar lab. That mess of code should have everything that you need.
  #5252    
Old February 9th, 2011, 11:08 PM
spidermight340
Advanced Trainer
 
Join Date: Aug 2009
Age: 22
Gender: Male
Nature: Relaxed
what is the script so you need to talk to a certain person to proceed
__________________
Check out My Custom Pokemon Maps at : spidermight.webs.com/
  #5253    
Old February 9th, 2011, 11:24 PM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by spidermight340 View Post
what is the script so you need to talk to a certain person to proceed
you need to use the setflag and checkflag commands.
how? tutorials are made for you in the Tutorials section.
__________________
  #5254    
Old February 10th, 2011, 01:50 AM
Magic's Avatar
Magic
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Can anyone see why the text in this level script would not show? I've just started hacking again and it's thrown me off.

The script is implemented properly, it does start, move the sprites, then finish but no messages are shown.


From A-Map:
Spoiler:
'-----------------------
#org 0x800000
lock
setvar 0x7000 0x1
applymovement MOVE_PLAYER 0x8800033
waitmovement 0x0
msgbox 0x880003B '"Hero, before you continue your\njou..."
applymovement 0x1 0x8800038
waitmovement 0x0
applymovement 0x2 0x8800038
waitmovement 0x0
msgbox 0x8800087 '"Approach the Pokémon which most ref..."
release
end


'-----------
' Movements
'-----------
#org 0x800033
#raw 2 'Face Left
#raw 3 'Face Right
#raw 0 'Face Down
#raw FE 'End of Movements

#org 0x800038
#raw 10 'Step Down (Normal)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x80003B
= Hero, before you continue your\njourney you must pick your loyal\lpartner.

#org 0x800087
= Approach the Pokémon which most reflects you.


Original:
Spoiler:

#org @start
lock
setvar 0x7000 0x1
applymovement 0xFF @Move1
waitmovement 0x0
msgbox @Talk1 0x6
applymovement 0x1 @Move2
waitmovement 0x0
applymovement 0x2 @Move2
waitmovement 0x0
msgbox @Talk2 0x6
release
end

#org @Move1
#raw 0x2 0x3 0x0 0xFE

#org @Move2
#raw 0x10 0xFE

#org @Talk1
= Hero, before you continue your\njourney you must pick your loyal\lpartner.

#org @Talk2
= Approach the Pokémon which most reflects you.
  #5255    
Old February 10th, 2011, 09:19 AM
Nerketur's Avatar
Nerketur
PokéScripter
 
Join Date: Nov 2010
Gender: Male
Nature: Quirky
Quote:
Originally Posted by SwiftSign View Post
Can anyone see why the text in this level script would not show? I've just started hacking again and it's thrown me off.

The script is implemented properly, it does start, move the sprites, then finish but no messages are shown.


From A-Map:
Spoiler:
'-----------------------
#org 0x800000
lock
setvar 0x7000 0x1
applymovement MOVE_PLAYER 0x8800033
waitmovement 0x0
msgbox 0x880003B //Missing type parameter '"Hero, before you continue your\njou..."
applymovement 0x1 0x8800038
waitmovement 0x0
applymovement 0x2 0x8800038
waitmovement 0x0
msgbox 0x8800087 //Missing type parameter '"Approach the Pokémon which most ref..."
release
end


'-----------
' Movements
'-----------
#org 0x800033
#raw 2 'Face Left
#raw 3 'Face Right
#raw 0 'Face Down
#raw FE 'End of Movements

#org 0x800038
#raw 10 'Step Down (Normal)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x80003B
= Hero, before you continue your\njourney you must pick your loyal\lpartner.

#org 0x800087
= Approach the Pokémon which most reflects you.


Original:
Spoiler:

#org @start
lock
setvar 0x7000 0x1
applymovement 0xFF @Move1
waitmovement 0x0
msgbox @Talk1 0x6 // HAS type parameter.
applymovement 0x1 @Move2
waitmovement 0x0
applymovement 0x2 @Move2
waitmovement 0x0
msgbox @Talk2 0x6 // HAS type parameter
release
end

#org @Move1
#raw 0x2 0x3 0x0 0xFE

#org @Move2
#raw 0x10 0xFE

#org @Talk1
= Hero, before you continue your\njourney you must pick your loyal\lpartner.

#org @Talk2
= Approach the Pokémon which most reflects you.
The original is fine, Compiled version is NOT. Try compiling it, then replacing the script offset in Advance Map with the script offset that you get when you compile in XSE. Or, if you want to save space, at the very top of the script put "#removeall <oldoffset>" So, in your case, it would be "#removeall 0x800000" This works, because "removeall" basically COMPLETELY deletes (All movements, scripts, strings, and items involved) the script that was previously at that offset. (Assuming it has an "end" at the end of it.) Of course, this only works if you're using XSE, and it's only guaranteed to work if you're using the latest version of XSE.
__________________
Want my help in PokéScripting? PM me =)
I use XSE v1.1.1 (HackMew = awesome) and Advance Map 1.92.
Thanks to Diego and HackMew for their tutorials, helping me learn how to script!

Hacks I support 100% (MUST SEE!):


Very well made hacks:

My work:
Figuring out scripting in PMD
Entire script map of LeafGreen
PMDSE (Pokémon Mystery Dungeon Script Editor)
  #5256    
Old February 10th, 2011, 09:52 AM
Magic's Avatar
Magic
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Quote:
Originally Posted by Nerketur View Post


The original is fine, Compiled version is NOT. Try compiling it, then replacing the script offset in Advance Map with the script offset that you get when you compile in XSE. Or, if you want to save space, at the very top of the script put "#removeall <oldoffset>" So, in your case, it would be "#removeall 0x800000" This works, because "removeall" basically COMPLETELY deletes (All movements, scripts, strings, and items involved) the script that was previously at that offset. (Assuming it has an "end" at the end of it.) Of course, this only works if you're using XSE, and it's only guaranteed to work if you're using the latest version of XSE.
Actually, that script offset is right, as clicking 'open script' makes it show the version before converting to the level script, which I did correctly.

Turns out the version of XSE I have rejects 'msgbox' and will only show 'message' commands instead. Problem solved.
  #5257    
Old February 10th, 2011, 10:07 AM
Nerketur's Avatar
Nerketur
PokéScripter
 
Join Date: Nov 2010
Gender: Male
Nature: Quirky
Quote:
Originally Posted by Skara View Post
AAAAAAAAAAAHHHHHH I WANT TO SCREAM!!!!

I made this script, and since it doesn't want to do anything I assume this isn't correct?
Spoiler:

#org @start
lock
faceplayer
msgbox @text ' Hm? oh, hey. Sorry, I closed my lab down.
msgbox @text ' You can still have a POKéMON though, here.
checkflag 0x0029
if 0x1 jump :end
setflag FR_POKEMON
countpokemon
compare LASTRESULT 6
if == jump @noroom
addpokemon CATERPIE 0x5 ORANBERRY 0 0 0
setflag 0x0029
storepokemon 0 CATERPIE
message @get-msg
fanfare 0x101
showmsg
waitfanfare
waitbutton
:end
release
end

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

#org @text
= Hm? oh, hey. Sorry, I closed my lab down.
= You can still have a POKéMON though, here.
#org @get-msg
= You got a \v\h02!
= And here's your POKéDEX...
setflag 0x829
= I'm Carp by the way, Professor Arty Carp /PWell, I'm out.
disappear


I need help like, now. My hack can't progress otherwise.
Quote:
Originally Posted by Skara View Post
No tutorial, just PKSV generated.
If that was from PKSV, then PKSV sucks. Hardcore. There are so many errors, it would not compile in XSE unbless you did this (Changed to be a bit more efficient):

Code:
#include stdpoke.rbh
#include stditem.rbh

#org @start
lock
faceplayer
msgbox @text MSG_NORMAL ' Hm? oh, hey. Sorry, I closed my lab down.
checkflag 0x0828
if 0x1 goto @end
countpokemon
compare LASTRESULT 6
if B_== goto @noroom
addpokemon PKMN_CATERPIE 0x5 ITEM_ORANBERRY 0 0 0
setflag 0x828
hidesprite <Person event number of Professor> 
storepokemon 0 PKMN_CATERPIE // Not sure about this command
msgbox @getmsg MSG_KEEPOPEN
fanfare 0x101
waitfanfare
closeonkeypress
release
end

#org @end
release
end

#org @noroom
msgbox @noroommsg MSG_KEEPOPEN //Where is this message?
release
end

#org @text
= Hm? oh, hey. Sorry, I closed my lab down./pYou can still have a POKéMON though, here.

#org @getmsg
= You got a \v\h02!/pAnd here's your POKéDEX.../pI'm Carp by the way, Professor Arty Carp/pWell, I'm out.

#org @noroommsg
= You don't have room for this!
Then, set the professor person ID to 0x828, and he/she will disappear for good after the event.

Now, if you want the shortest possible script? You don't need to check when you get your first pokemon, and checking if it's run is pointless if they disappear. So the script becomes

Code:
#include stdpoke.rbh
#include stditem.rbh

#org @start
lock
faceplayer
msgbox @text MSG_NORMAL ' Hm? oh, hey. Sorry, I closed my lab down.
addpokemon PKMN_CATERPIE 0x5 ITEM_ORANBERRY 0 0 0
setflag 0x828
hidesprite <Person event number of Professor> 
storepokemon 0 PKMN_CATERPIE // Not sure about this command
msgbox @getmsg MSG_KEEPOPEN
fanfare 0x101
waitfanfare
closeonkeypress
release
end

#org @end
release
end

#org @text
= Hm? oh, hey. Sorry, I closed my lab down./pYou can still have a POKéMON though, here.

#org @getmsg
= You got a \v\h02!/pAnd here's your POKéDEX.../pI'm Carp by the way, Professor Arty Carp/pWell, I'm out.
All the RED is changed areas. If it doesn't do what you want, then you fix the rest =) I hope I helped. Next time, learn XSE before trying to do anything. xD
__________________
Want my help in PokéScripting? PM me =)
I use XSE v1.1.1 (HackMew = awesome) and Advance Map 1.92.
Thanks to Diego and HackMew for their tutorials, helping me learn how to script!

Hacks I support 100% (MUST SEE!):


Very well made hacks:

My work:
Figuring out scripting in PMD
Entire script map of LeafGreen
PMDSE (Pokémon Mystery Dungeon Script Editor)
  #5258    
Old February 11th, 2011, 04:59 PM
Koute
Beginning Trainer
 
Join Date: Feb 2011
Gender: Male
ok every time i try to put in a script to a event it never works, like i wanted to add another event to pallet town which i changed name to Birchwood Town it has a park and there was a boy that is gonna complain but thats not it when i open rom and go to that boy and talk to it the rom freezes HALP!
  #5259    
Old February 12th, 2011, 05:16 AM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by Koute View Post
ok every time i try to put in a script to a event it never works, like i wanted to add another event to pallet town which i changed name to Birchwood Town it has a park and there was a boy that is gonna complain but thats not it when i open rom and go to that boy and talk to it the rom freezes HALP!
It would be helpful if you included your script in your post.
__________________
  #5260    
Old February 12th, 2011, 05:38 AM
Koute
Beginning Trainer
 
Join Date: Feb 2011
Gender: Male
ok ill show my script its on XSE so....
Code:
'-----------------------
#org 0x900000
faceplayer
faceplayer
msgbox 0x899001C '"Whiney Boy: My mom won't let me go ..."
callstd 0x6
release
end


'---------
' Strings
'---------
#org 0x99001C
= Whiney Boy: My mom won't let me go to the park!
  #5261    
Old February 12th, 2011, 07:39 AM
metapod23's Avatar
metapod23
Hardened Trainer
 
Join Date: Mar 2009
Gender: Male
Nature: Timid
Quote:
Originally Posted by djvbb12 View Post
The setvar stuff is the result of me using part of someone elses script and my lack of understanding. I'd rather not destroy the Daycare...What I want to do seems simple enough and I feel like I shouldn't have to re-write part of the game just to remove two pokemon from the game.
I just wanted to say that I (finally) understand how to do this with HackMew's routine

I added it to my previous tutorial for releasing Pokemon with the daycare script:

http://www.pokecommunity.com/showthr...?p=5599198#asm

^ It's a much better way to release Pokemon you have no intention of having returned to you. I hadn't realized that special 0x9f stores the Pokemon's slot # in your party in the correct variable for HackMew's routine to work

(Thanks to JPAN's study on the special commands for helping me with this )
__________________
  #5262    
Old February 12th, 2011, 02:17 PM
DrFuji's Avatar
DrFuji
repeat repeat repeat
Community Supporter
 
Join Date: Sep 2009
Location: Upside-downia
Age: 21
Gender: Male
Nature: Jolly
Quote:
Originally Posted by Koute View Post
ok ill show my script its on XSE so....
Code:
'-----------------------
#org 0x900000
faceplayer
faceplayer
msgbox 0x899001C '"Whiney Boy: My mom won't let me go ..."
callstd 0x6
release
end
 
 
'---------
' Strings
'---------
#org 0x99001C
= Whiney Boy: My mom won't let me go to the park!
I'd suggest that you reread XSE's guide and this tutorial because there are a few problems in the way you constructed this script. Try this instead:

Code:
#org 0x800000
lock
faceplayer
msgbox @talk 0x6
release
end
 
#org @talk
= Whiney Boy: My mom won't let me\ngo to the park!
Changes in red.
  #5263    
Old February 12th, 2011, 05:15 PM
Koute
Beginning Trainer
 
Join Date: Feb 2011
Gender: Male
ok but uh like i said the rom freezes
  #5264    
Old February 13th, 2011, 03:05 AM
masterquestmq's Avatar
masterquestmq
Enthusiastic Rom Hacker
 
Join Date: Nov 2010
Gender: Male
2 questions I've checked many tutorials but some of them are rather different to each other.

1) When making a giveitem script do we always need have to set a flag so the player wont be given the same item again if he/she talks to the person?

2)msgbox 0x5

#dynamic 0x800000

#org @start
msgbox @question 0x5
end

#org @questoin
= Will you go?

In the scipt above how do i continue it, for example when the player says yes the person will then say thank you. do we need to do the command like this: if 0x0 goto @thankyou etc?


appreciate the clarification
  #5265    
Old February 13th, 2011, 05:04 AM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by masterquestmq View Post
2 questions I've checked many tutorials but some of them are rather different to each other.

1) When making a giveitem script do we always need have to set a flag so the player wont be given the same item again if he/she talks to the person?

2)msgbox 0x5

#dynamic 0x800000

#org @start
msgbox @question 0x5
end

#org @questoin
= Will you go?

In the scipt above how do i continue it, for example when the player says yes the person will then say thank you. do we need to do the command like this: if 0x0 goto @thankyou etc?


appreciate the clarification
1. yes.
2. msgbox 0x5 is a command wherein it checks the PLAYER's response to the Yes/No options. An example...
Code:
#dynamic 0x800000

#org @start
faceplayer
msgbox @1 0x5
compare lastresult 0x1
if 0x1 goto @yes
goto @no
end

#org @1
= Will you go?

#org @yes
message @2 0x6
release
end

#org @no
release
end

#org @2
= Thank you!
The msgbox 0x5 will ask the PLAYER a question. This will also automatically tell the ROM to pop-up the Yes/No options.
The compare lastresult are commands to tell the ROM if the PLAYER selected yes/0x1 or no/0x0...
The if 0x1 goto @yes will confirm if the PLAYER's input was a yes, and if it is, then it'll proceed to the @yes address. If not, then it'll move to the next line of the script.
__________________
  #5266    
Old February 13th, 2011, 05:43 PM
pizzaz007's Avatar
pizzaz007
Why not?
 
Join Date: Dec 2010
Location: Meh-ville
Gender: Male
Nature: Relaxed
I really don't get all this #define stuff, or call, or @blah, because i've learned to just Write it down on notepad. like, i dont know why, but i think it is a lot easier to do it that way, than to use XSE, or whatever. Like here, here is a script that I quickly put together for my game.


Game: Pokemon W.I.P (fire red)
Editor: Notepad (lol)
Script:


Spoiler:
#org $pokedex
locK
faceplayer
checkflag 0x1249
if 0x01 goto $snatch
checkflag 0x1250
if 0x01 goto $tosh
checkflag 0x1251
if 0x01 goto $gain
checkflag 0x1252
if 0x01 goto $sim
checkflag 0x1253
if 0x01 goto $finally
checkflag 0x1254
if 0x01 goto $end
checkflag 0x1255
if 0x01 goto $end1
checkflag 0x1256
if 0x01 goto $end2
checkflag 0x1257
if 0x01 goto $end3
checkflag 0x1258
if 0x01 goto $thefrigginend
checkflag 0x1259
if 0x01 goto $foullump
message $foru
$foru 1 = To: \v\h01\lFrom: ...\l\v\h01: (I can't make out the\nrest...)
boxset 6
message $lulz
$lulz 1 = \v\h01: What is this?\nA package?\nFor me\nWhat's in it...?
boxset 6
fanfare 0x13E
message $pwnd
$pwnd 1 = \v\h01: It's a...\lPokédex and a POKéMON!
boxset 4
waitfanfare
pause 0x30
setflag 0x828
setflag 0x829
setflag 0x1249
release
end
#org $snatch
checkflag 0x1250
if 0x01 goto $tosh
message $pus
$pus 1 = \v\h01: There's more stuff in here?\lShoes?\nWhy are there shoes?
boxset 6
waitfanfare
pause 0x30
setflag 0x82F
setflag 0x1250
release
end
#org $tosh
checkflag 0x1251
if 0x01 goto $gain
message $nope
$nope 1 = Nothing else in here...
boxset 6
setflag 0x1251
release
end
#org $gain
checkflag 0x1252
if 0x01 goto $sim
message $nope1
$nope1 1 = Nothing else in here...
boxset 6
setflag 0x1252
release
end
#org $sim
checkflag 0x1253
if 0x01 goto $finally
message $nope2
$nope2 1 = Nothing else in here...
boxset 6
setflag 0x1253
release
end
#org $finally
checkflag 0x1254
if 0x01 goto $end
message $nope3
$nope3 1 = Nothing else in here...
boxset 6
setflag 0x1254
release
end
#org $end
checkflag 0x1255
if 0x01 goto $end1
message $done1234
$done1234 1 = \v\h01: Oh. There IS something\nelse in here...\lA POKéBAll and other materials...
boxset 6
giveitem 0x1D 0x05
giveitem 0x168 0x01
giveitem 0xDD 0x10
giveitem 0x6E 0x05
giveitem 0x03 0x05
giveitem 0x02 0x05
giveitem 0x04 0x05
setflag 0x1255
release
end
#org $end1
checkflag 0x1256
if 0x01 goto $end2
message $♥♥♥
$♥♥♥ 1 = Nothing else in here.\lPromise.
boxset 6
setflag 0x1256
release
end
#org $end2
checkflag 0x1257
if 0x01 goto $end3
message $*************
$************* 1 = Nothing else in here.\lPromise.
boxset 6
setflag 0x1257
#org $end3
checkflag 0x1258
if 0x01 goto $thefrigginend
message $fag1
$fag1 1 = Nothing else in here.\lPromise.
boxset 6
setflag 0x1258
release
end
#org $thefrigginend
checkflag 0x1259
if 0x01 goto $foullump
message $fag2
$fag2 1 = OH! There is one more\nthing in here...
boxset 6
givepokemon 283 05 0x8B
message $birth
$birth 1 = \v\h01 recieved a MUDKIP! :D
setflag 0x1259
release
end
#org $foullump
message $tehballz
$tehballz 1 = There is nothing more\lSeriously. A MUDKIP was Jesus'\neaster egg.\nScrew off kid.
boxset 6
release
end


I know, it seems humongus, but i find it easier than using a script editor like XSE. And if anyone didn't know what all that meant, it's basically a give pokedex and pokemon script, running shoes, and a mudkip. Does anyone else use this method? If not, them im going to need to learn how to use XSE...

quick edit: Every time it says 'end' There should be a space there, but on here, i guess they're not shown.
__________________
Ohai! :3

I code in XSE, and Python, primarily.

If you ever want someone to talk to, just drop me a line!

Last edited by pizzaz007; February 13th, 2011 at 05:57 PM. Reason: left out some info
  #5267    
Old February 13th, 2011, 07:00 PM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by pizzaz007 View Post
...
So, why are you posting this again?
Is there a problem with your script? Are you asking someone to rewrite it to XSE format? Or were you just asking if someone else is using this scripting format?
__________________
  #5268    
Old February 13th, 2011, 07:18 PM
pizzaz007's Avatar
pizzaz007
Why not?
 
Join Date: Dec 2010
Location: Meh-ville
Gender: Male
Nature: Relaxed
Well, what i was trying to say was just: How do you use XSE mostly. I included something that i typed up using notepad and pokescript, compiled, and put into my game. But you are all using commands like #define, #dynamic, msgbox, and i'm getting confused because i only use the notepad. So how do you use, say, XSE, or any script editor for that reason.
__________________
Ohai! :3

I code in XSE, and Python, primarily.

If you ever want someone to talk to, just drop me a line!
  #5269    
Old February 13th, 2011, 09:44 PM
Demonicross's Avatar
Demonicross
Beginning Trainer
 
Join Date: Feb 2011
Gender: Male
Using Fire Red
editor Notepad to Pokescript
Trigger script
Spoiler:
#org $Getpkmn
Lockall
Checkflag 0x1204
If b_true goto $skip
Message $hey
Boxset 6
Applymovement 0xFF $move
$move 1 ; #binary 0x1F 0x1F 0x1F 0x1F 0x1F 0x1F 0x1D 0x1F 0xFE
Pausemove 0x0000
Message $hey2
Boxset 6
Applymovement 0xFF $move1
$move1 1 ; #binary 0x0E 0x0E 0x0E 0x0E 0x0E 0x0D 0x02 0xFE
Message $hey3
boxset 6
Pausemove 0x0000
#raw 0x53 0x55 0x01
Message $Get
boxset 6
Applymovement 0xFF $move2
$move2 1 ; #binary 0x03 0x0F 0x0F 0xFE
Applymovement 0x01 $move3
$move3 1 ; #binary 0x0F 0x0F 0x0F 0xFE
pausemove 0x0000
Message $Pkmn
boxset 6
Applymovement 0x01 $move4
$move4 1 ; #binary 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0x20 0xFE
Pausemove 0x0000
#raw 0x53 0xEE 0x02
Setflag 0x1204
Releaseall
end

#org $skip
Releaseall
end

#org $hey
$hey 1 = Hey \v\h01 \p Over here I found something

#org $hey2
$hey2 1 = There is a pokemon over \nthere \p I think it is hurt

#org $hey3
$hey3 1 = Be careful \v\h01

#org $Get
$Get 1 = \c\h01\h04You picked up \nthe Kabuto

#org $Pkmn
$Pkmn 1 = That was really brave \pIt must be really hurt \p Lets take it to \nProf. Oak \p I will go on ahead


Here is what it shows in Pokescript after i've Compiled what i typed in notepad
Spoiler:

#org 0x880107B
'-----------------------------------
takefurniture 0x636F
releaseall
cleartrainerflag 0x6C6C
comparefarbytetofarbyte 0x612042B 0x80114301
jumpstd 0xF

In game Y/N box comes up and Freezes
______________________
Edit: Wrote script into XSE But it Freezes upon standing on trigger
Spoiler:
'---------------
#org 0x71ADB4
lock
checkflag 0x4B4
if 0x1 goto 0x871B219
msgbox 0x871AE1B MSG_NORMAL '"Hey [player] \p Over here I found ..."
applymovement MOVE_PLAYER 0x871AE43
waitmovement 0xFF
msgbox 0x871B064 MSG_NORMAL '"There is a pokemon over \nthere \p..."
applymovement MOVE_PLAYER 0x871B09A
msgbox 0x871B0A2 MSG_NORMAL '"Be careful [player]"
waitmovement 0xFF
hidesprite 0x4B5
setflag 0x1205
msgbox 0x871B188 MSG_NORMAL '"[red_fr]You picked up \nthe Kabuto"
applymovement MOVE_PLAYER 0x871B1A7
applymovement 0x1 0x871B1AB
waitmovement 0xFF
msgbox 0x871B1AF MSG_NORMAL '"That was really brave \pIt must be..."
applymovement 0x1 0x871B211
waitmovement 0x1
updatecoins 0xD9 0xED Not sure where this came from
nop This was to be a hide script
'---------------Both ends disappeared
#org 0x71B219
return


'---------
' Strings
'---------
#org 0x71AE1B
= Hey [player] \p Over here I found something

#org 0x71B064
= There is a pokemon over \nthere \p I think it is hurt

#org 0x71B0A2
= Be careful [player]

#org 0x71B188
= [red_fr]You picked up \nthe Kabuto

#org 0x71B1AF
= That was really brave \pIt must be really hurt \p Lets take it to \nProf. Oak \p I will go on ahead


'-----------
' Movements
'-----------
#org 0x71AE43
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1F 'Step Left (Fast)
#raw 0xFE 'End of Movements

#org 0x71B09A
#raw 0xE 'Step Left (Slow)
#raw 0xE 'Step Left (Slow)
#raw 0xE 'Step Left (Slow)
#raw 0xD 'Step Up (Slow)
#raw 0xE 'Step Left (Slow)
#raw 0xE 'Step Left (Slow)
#raw 0xFE 'End of Movements

#org 0x71B1A7
#raw 0xB 'Step Right (Very Slow)
#raw 0xB 'Step Right (Very Slow)
#raw 0xFE 'End of Movements

#org 0x71B1AB
#raw 0x12 'Step Left (Normal)
#raw 0x12 'Step Left (Normal)
#raw 0xFE 'End of Movements

#org 0x71B211
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0xFE 'End of Movements

Last edited by Demonicross; February 14th, 2011 at 06:03 PM. Reason: New info
  #5270    
Old February 15th, 2011, 10:16 PM
eishiba
Beginning Trainer
 
Join Date: Aug 2010
Gender: Male
Why is it when I use this as a text script, the character saying it says nothing to me?
#org $text
lock
faceplayer
message $gls
$gls 1 = Hi! I'm Jason.
boxset 6
release
end
  #5271    
Old February 16th, 2011, 12:38 AM
Satoshi Ookami's Avatar
Satoshi Ookami
Memento Mori
Community Supporter
 
Join Date: Jul 2008
Location: Abyss of Time, Great Seal
Age: 21
Gender: Male
Nature: Calm
Quote:
Originally Posted by eishiba View Post
Why is it when I use this as a text script, the character saying it says nothing to me?
#org $text
lock
faceplayer
message $gls
$gls 1 = Hi! I'm Jason.
boxset 6
release
end
If I were you I'd start using XSE instead of Pokescript
Pokescript is very buggy.
__________________
ROM hacking FAQ - Read before asking how to play a hack. | Previous Sign 2 | Previous Sign

Anime List | PSN Trophy List
  #5272    
Old February 16th, 2011, 08:49 AM
eishiba
Beginning Trainer
 
Join Date: Aug 2010
Gender: Male
Quote:
Originally Posted by Ash493 View Post
If I were you I'd start using XSE instead of Pokescript
Pokescript is very buggy.
I have tried that to. I always get an error when I go batch compiler.


Spoiler:

lock
faceplayer
msgbox @talk 0x6
release
end

#org @talk
= (text u wanna insert)


This one in xse after trying to go to batch compiler tells me Erroe 13 type mismatch in my file on line 2. Missing #define or paramenter.


Spoiler:
#dynamic 0x800000
#org $text
lock
faceplayer
message $gls
$gls 1 = Hi! I'm Jason.
boxset 6
release
end


Using this one makes it tell me No #org directives were found.
  #5273    
Old February 16th, 2011, 09:07 AM
TheDarkShark
Metal Headed Hacker
 
Join Date: May 2010
Location: Germany
Gender: Male
Nature: Calm
XSE won't understand the $s. You'll have to use @, also, it won't accept the text right under the msgbox command. Try using this instead:

Code:
#dynamic 0x800000
#org @text
lock
faceplayer
msgbox $gls 0x6
release
end

#org @gls
= Hi! I'm Jason.
You really should read a tutorial about XSE scripting.
  #5274    
Old February 17th, 2011, 08:28 AM
eishiba
Beginning Trainer
 
Join Date: Aug 2010
Gender: Male
Quote:
Originally Posted by TheDarkShark View Post
XSE won't understand the $s. You'll have to use @, also, it won't accept the text right under the msgbox command. Try using this instead:

Code:
#dynamic 0x800000
#org @text
lock
faceplayer
msgbox $gls 0x6
release
end

#org @gls
= Hi! I'm Jason.
You really should read a tutorial about XSE scripting.
I had to change the $gls to @gls since now I know you can't use $. Ive looked at a few videos on youtube and they all used $ and it worked for them. But I still don't get anything. I compiled that very script, then burned it to the rom, and pasted the offset into a new person event and the person is there but they don't say anything.
  #5275    
Old February 17th, 2011, 08:44 AM
Regeneration's Avatar
Regeneration
meow
Community Supporter
 
Join Date: Nov 2010
Location: Somewhere I Belong
Age: 19
Gender: Male
Nature: Calm
Send a message via Skype™ to Regeneration
Quote:
Originally Posted by eishiba View Post
I had to change the $gls to @gls since now I know you can't use $. Ive looked at a few videos on youtube and they all used $ and it worked for them. But I still don't get anything. I compiled that very script, then burned it to the rom, and pasted the offset into a new person event and the person is there but they don't say anything.
Maybe the person in the video was using Pokescript, since it uses the $ sign. In XSE and PKSV, you'll have to use the @ sign.
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 04:38 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.