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.


Advertise here

Closed Thread
Click here to go to the first staff post in this thread.  
Thread Tools
  #151    
Old January 1st, 2009, 08:31 AM
cooley's Avatar
cooley
///Keepin' it simple
 
Join Date: Feb 2007
Location: United States
Age: 19
Gender: Male
Nature: Impish
Send a message via Windows Live Messenger to cooley Send a message via Skype™ to cooley

Advertise here
Quote:
Originally Posted by Ninja Caterpie View Post
Actually, these names are dodgy. Special 0x113 sorta allows the camera to move and 114 stops it. People still move in their normal trajectories if you use 0x113. :\

Just like lock and lockall. Lock locks everyone and lockall locks you! :\
Small corrections
Special 0x113 locks the camera, so you can move it with commands, and so the player can move without the camera moving along with him/her. Special 0x114 releases the camera, so when the script is over, each step the player takes the camera will follow. Applymovement 0x7F will render useless after special 0x114 is activated

Lock locks the player, and lockall locks down all movement on the map.
__________________

  #152    
Old January 1st, 2009, 09:20 AM
dialga2103's Avatar
dialga2103
Beginning Trainer
 
Join Date: Nov 2008
Gender:
i dont get it.......
any way i think we ask things about script editing right?
any way.. does anyone know a d/p script editor
__________________






i cant think of anything to use as my signatur : (
  #153    
Old January 1st, 2009, 01:01 PM
пзо's Avatar
пзо
zzirRusty
 
Join Date: Dec 2008
Nature: Quiet
I never throught I'd be posting here again, but this script also, is the one not working..
I know theres no setflag, the script dont even start.
--
Spoiler:



#dynamic 0x800000
#org @begin
Checkflag 0x200
applymovement 7F @movecamera1
waitmovement 0x0
msgbox @wheresplayer 0x2
playsong 0x13B 0x0
applymovement 0x01 @thereyouare
applymovement 0x7F @movecamera2
waitmovement 0x01
applymovement 0xFF @theresrival
waitmovement 0x0
msgbox @hello 0x02
applymovement 0x01 @gone
waitmovement 0x0
fadesound
hidesprite 0x01
Release
goto @end

#org @movecamera1
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @wherespaler
= Wheres [player]? He said hen\would meet me here.

#org @thereyouare
#raw 0x65 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @movecamera2
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @theresrival
#raw 0x62 0x03 0xFE

#org @hello
= [Black_fr][player] what are you doing! You\nwere supposed to meet me here\lover an hour ago!\p[green_fr][player]: Sorry [rival]..\p[Black_fr][rival]: Hurry! I dont want to keep\nthe professor waiting.

#org @gone
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @end
release
end

--
msgbox 0x871CD68 MSG_KEEPOPEN '"ck."
Whats this? I change the script up and this replaces one of my text scripts.
XSE is a wirdo XD


RESOLVED
__________________
| Pokémon Obsidian | Pokémon Mystical Glacier |
Yeah, I said it, Pokémon Mystical Glacier..
Its comming back.. Better than ever.
Along side Pokémon Obsidian.

Last edited by пзо; January 1st, 2009 at 02:01 PM.
  #154    
Old January 1st, 2009, 01:33 PM
Hiche..'s Avatar
Hiche..
 
 
Join Date: Apr 2008
1- neo, the fixes are in Bold.

Spoiler:
#dynamic 0x800000

#org @begin
Checkflag 0x200
if 0x1 goto @end
special 0x113
applymovement 7F @movecamera1
waitmovement 0x0
special 0x114
msgbox @wheresplayer 0x2
playsong 0x13B 0x0
special 0x113
applymovement 0x01 @thereyouare
applymovement 0x7F @movecamera2
waitmovement 0x01
special 0x114
applymovement 0xFF @theresrival
waitmovement 0x0
msgbox @hello 0x02
applymovement 0x01 @gone
waitmovement 0x0
fadesound
hidesprite 0x01
setflag 0x200
Release
end

#org @movecamera1
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @wherespaler
= Wheres [player]? He said hen\would meet me here.

#org @thereyouare
#raw 0x65 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @movecamera2
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @theresrival
#raw 0x62 0x03 0xFE

#org @hello
= [Black_fr][player] what are you doing! You\nwere supposed to meet me here\lover an hour ago!\p[green_fr][player]: Sorry [rival]..\p[Black_fr][rival]: Hurry! I dont want to keep\nthe professor waiting.

#org @gone
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @end
release
end


special 0x113 locks the camera, and special 0x114 releases it.


2- MSG_KEEPOPEN is boxset 0x4.
  #155    
Old January 1st, 2009, 02:05 PM
пзо's Avatar
пзо
zzirRusty
 
Join Date: Dec 2008
Nature: Quiet
Quote:
Originally Posted by Hiche View Post
Spoiler:

1- neo, the fixes are in Bold.

Spoiler:
#dynamic 0x800000

#org @begin
Checkflag 0x200
if 0x1 goto @end
special 0x113
applymovement 7F @movecamera1
waitmovement 0x0
special 0x114
msgbox @wheresplayer 0x2
playsong 0x13B 0x0
special 0x113
applymovement 0x01 @thereyouare
applymovement 0x7F @movecamera2
waitmovement 0x01
special 0x114
applymovement 0xFF @theresrival
waitmovement 0x0
msgbox @hello 0x02
applymovement 0x01 @gone
waitmovement 0x0
fadesound
hidesprite 0x01
setflag 0x200
Release
end

#org @movecamera1
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @wherespaler
= Wheres [player]? He said hen\would meet me here.

#org @thereyouare
#raw 0x65 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @movecamera2
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @theresrival
#raw 0x62 0x03 0xFE

#org @hello
= [Black_fr][player] what are you doing! You\nwere supposed to meet me here\lover an hour ago!\p[green_fr][player]: Sorry [rival]..\p[Black_fr][rival]: Hurry! I dont want to keep\nthe professor waiting.

#org @gone
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @end
release
end


special 0x113 locks the camera, and special 0x114 releases it.


2- MSG_KEEPOPEN is boxset 0x4
.
Unresolved
The script still dont start.
Here it is again.. *Sigh*
#dynamic 0x800000
#org @begin
Checkflag 0x200
if 0x1 goto @end
special 0x113
applymovement 0x7F @movecamera1
waitmovement 0x0
special 0x114
msgbox @wheresplayer 0x2
sound 0x13B
special 0x113
applymovement 0x01 @thereyouare
applymovement 0x7F @movecamera2
waitmovement 0x01
special 0x114
applymovement 0xFF @theresrival
waitmovement 0x0
msgbox @hello 0x02
applymovement 0x01 @gone
waitmovement 0x0
sound 0x12C
hidesprite 0x01
setflag 0x200
Release
end

#org @movecamera1
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @wheresplayer
= Wheres [player]? He said hen\would meet me here.

#org @thereyouare
#raw 0x65 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @movecamera2
#raw 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0x11 0xFE

#org @theresrival
#raw 0x62 0x03 0xFE

#org @hello
= [Black_fr][player] what are you doing! You\nwere supposed to meet me here\lover an hour ago!\p[green_fr][player]: Sorry [rival]..\p[Black_fr][rival]: Hurry! I dont want to keep\nthe professor waiting.

#org @gone
#raw 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0x10 0xFE

#org @end
release
end
__________________
| Pokémon Obsidian | Pokémon Mystical Glacier |
Yeah, I said it, Pokémon Mystical Glacier..
Its comming back.. Better than ever.
Along side Pokémon Obsidian.
  #156    
Old January 1st, 2009, 02:44 PM
Hoshiko Aki's Avatar
Hoshiko Aki
Avatar rules
 
Join Date: Oct 2008
Hello,

Code:
'---------------
#org 0x2D510C
lock
checkflag 0x829
if 0x0 goto 0x88026EB
release
end

'---------------
#org 0x8026EB
lock
applymovement MOVE_PLAYER 0x8802701
waitmovement 0x0
msgbox 0x8802705 MSG_NORMAL '"[player] better take me pokemon wi..."
release
end


'---------
' Strings
'---------
#org 0x802705
= [player] better take me pokemon with me.\nIf I do not a wild pokémon maby\lattack me


'-----------
' Movements
'-----------
#org 0x802701
#raw 0x62 'Exclamation Mark (!)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements
this is a script that made the player not go to route 1 if you not had your pokemon in your party but if you do have the pokemon in your party than you can't go to route 1.

Whats the problem with this script?
  #157    
Old January 1st, 2009, 02:49 PM
michaelh
Script Ninja-in-training
 
Join Date: Jul 2006
Gender:
Nature: Quirky
Quote:
Originally Posted by Ichiro Kazuki View Post
Hello,

Code:
'---------------
#org 0x2D510C
lock
checkflag 0x829
if 0x0 goto 0x88026EB
release
end

'---------------
#org 0x8026EB
lock
applymovement MOVE_PLAYER 0x8802701
waitmovement 0x0
msgbox 0x8802705 MSG_NORMAL '"[player] better take me pokemon wi..."
release
end


'---------
' Strings
'---------
#org 0x802705
= [player] better take me pokemon with me.\nIf I do not a wild pokémon maby\lattack me


'-----------
' Movements
'-----------
#org 0x802701
#raw 0x62 'Exclamation Mark (!)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements
this is a script that made the player not go to route 1 if you not had your pokemon in your party but if you do have the pokemon in your party than you can't go to route 1.

Whats the problem with this script?
Flag 0x829 is Pokédex. The flag you want (Pokémon menu) is 0x828.
__________________
Mr. Meme is never gonna give you up
  #158    
Old January 1st, 2009, 04:43 PM
Ninja Caterpie's Avatar
Ninja Caterpie
Sitting by the back window
 
Join Date: Mar 2008
Location: Best City OCE
Age: 18
Gender: Male
Nature: Bold
Quote:
Originally Posted by cooley View Post
Lock locks the player, and lockall locks down all movement on the map.
But lockall, when I use it, still allows everyone to move. Does the Pokemon Center script use lockall? Because it does lock everyone. :\
__________________
Brony represent.
  #159    
Old January 2nd, 2009, 03:30 AM
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 19
Gender: Male
Nature: Modest
Quote:
Originally Posted by Ninja Caterpie
Quote:
Originally Posted by cooley
Lock locks the player, and lockall locks down all movement on the map.

But lockall, when I use it, still allows everyone to move. Does the Pokemon Center script use lockall? Because it does lock everyone. :\
Yeah the center uses lockall
__________________
Pokémon Stardrop
  #160    
Old January 2nd, 2009, 03:56 AM
AvengedFury's Avatar
AvengedFury
Hacker In Training
 
Join Date: Dec 2008
Location: Sydney, Australia
Gender:
Nature: Docile
Send a message via AIM to AvengedFury
I wanted to make a battle where after the hero defeats the npc, he will gain a pokemon. In this
case, I want the hero to receive a lvl 80 entei after defeating him. I dont know how I would go
about doing this so any help would be great


Game: Pokemon Ruby
Type: Person
Editor: XSE
Script:
Spoiler:
#dynamic 0x800000

#org @main
checkflag 0x1000
if B_True goto @end
msgbox @text 5
compare LASTRESULT B_Yes
if B_True goto @true
msgbox @no 6
end

#ORG @end
end

#org @true
msgbox @yes 6
wildbattle PKMN_ENTEI 80 0
end

#org @text
= I am Firaga, Master of the Fire\nElement.\lDo you want to face me?

#org @no
= You are right to fear my fiery\npower!

#org @yes
= Hahaha! Ready to be scorched?


  #161    
Old January 2nd, 2009, 04:04 AM
Ninja Caterpie's Avatar
Ninja Caterpie
Sitting by the back window
 
Join Date: Mar 2008
Location: Best City OCE
Age: 18
Gender: Male
Nature: Bold
Quote:
Originally Posted by Pokepal17 View Post
Yeah the center uses lockall
I just checked and, actually, no.

It doesn't.

Spoiler:
'---------------
#org 0x16A2CF
lock
faceplayer
call 0x81A6578
release
end

'---------------
#org 0x1A6578
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
preparemsg 0x81A5483 '"Welcome to our POKéMON CENTER!\pWo..."
waitmsg
multichoice 0x13 0x8 0x0 0x2
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81A65B8
compare 0x8000 0x1
if 0x1 goto 0x81A6663
compare 0x8000 0x7F
if 0x1 goto 0x81A6663
end

'---------------
#org 0x1A7AE0
release
end

'---------------
#org 0x1A65B8
cmdc3 0xF
preparemsg 0x81A54E1 '"Okay, I'll take your POKéMON for a..."
waitmsg
call 0x81A65CE
special 0x169
goto 0x81A65EC

'---------------
#org 0x1A6663
msgbox 0x81A5511 MSG_KEEPOPEN '"We hope to see you again!"
return

'---------------
#org 0x1A65CE
applymovement LASTTALKED 0x81A75E7
waitmovement 0x0
doanimation 0x19
checkanimation 0x19
applymovement LASTTALKED 0x81A75ED
waitmovement 0x0
special 0x0
return

'---------------
#org 0x1A65EC
special2 LASTRESULT 0x1B1
compare LASTRESULT 0x0
if 0x1 goto 0x81A661D
special2 LASTRESULT 0x183
copyvar 0x8008 LASTRESULT
compare 0x8008 0x0
if 0x1 goto 0x81A661D
compare 0x8008 0x1
if 0x1 goto 0x81A6636
end

'---------------
#org 0x1A661D
preparemsg 0x81A552B '"Thank you for waiting.\nWe've rest..."
waitmsg
applymovement LASTTALKED 0x81A666C
waitmovement 0x0
msgbox 0x81A5511 MSG_KEEPOPEN '"We hope to see you again!"
return

'---------------
#org 0x1A6636
checkflag 0x842
if 0x1 goto 0x81A661D
msgbox 0x81A552B MSG_KEEPOPEN '"Thank you for waiting.\nWe've rest..."
setflag 0x842
preparemsg 0x81BCCCA '"It appears as if [buffer1] is play..."
waitmsg
applymovement LASTTALKED 0x81A666C
waitmovement 0x0
msgbox 0x81A5511 MSG_KEEPOPEN '"We hope to see you again!"
return

STRINGS AND MOVEMENTS

Looks like a lock to me, doesn't it?
__________________
Brony represent.
  #162    
Old January 2nd, 2009, 06:45 AM
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 19
Gender: Male
Nature: Modest
Quote:
Originally Posted by Ninja Caterpie View Post
I just checked and, actually, no.

It doesn't.

Spoiler:
'---------------
#org 0x16A2CF
lock
faceplayer
call 0x81A6578
release
end

'---------------
#org 0x1A6578
special 0x187
compare LASTRESULT 0x2
if 0x1 goto 0x81A7AE0
preparemsg 0x81A5483 '"Welcome to our POKéMON CENTER!\pWo..."
waitmsg
multichoice 0x13 0x8 0x0 0x2
copyvar 0x8000 LASTRESULT
compare 0x8000 0x0
if 0x1 goto 0x81A65B8
compare 0x8000 0x1
if 0x1 goto 0x81A6663
compare 0x8000 0x7F
if 0x1 goto 0x81A6663
end

'---------------
#org 0x1A7AE0
release
end

'---------------
#org 0x1A65B8
cmdc3 0xF
preparemsg 0x81A54E1 '"Okay, I'll take your POKéMON for a..."
waitmsg
call 0x81A65CE
special 0x169
goto 0x81A65EC

'---------------
#org 0x1A6663
msgbox 0x81A5511 MSG_KEEPOPEN '"We hope to see you again!"
return

'---------------
#org 0x1A65CE
applymovement LASTTALKED 0x81A75E7
waitmovement 0x0
doanimation 0x19
checkanimation 0x19
applymovement LASTTALKED 0x81A75ED
waitmovement 0x0
special 0x0
return

'---------------
#org 0x1A65EC
special2 LASTRESULT 0x1B1
compare LASTRESULT 0x0
if 0x1 goto 0x81A661D
special2 LASTRESULT 0x183
copyvar 0x8008 LASTRESULT
compare 0x8008 0x0
if 0x1 goto 0x81A661D
compare 0x8008 0x1
if 0x1 goto 0x81A6636
end

'---------------
#org 0x1A661D
preparemsg 0x81A552B '"Thank you for waiting.\nWe've rest..."
waitmsg
applymovement LASTTALKED 0x81A666C
waitmovement 0x0
msgbox 0x81A5511 MSG_KEEPOPEN '"We hope to see you again!"
return

'---------------
#org 0x1A6636
checkflag 0x842
if 0x1 goto 0x81A661D
msgbox 0x81A552B MSG_KEEPOPEN '"Thank you for waiting.\nWe've rest..."
setflag 0x842
preparemsg 0x81BCCCA '"It appears as if [buffer1] is play..."
waitmsg
applymovement LASTTALKED 0x81A666C
waitmovement 0x0
msgbox 0x81A5511 MSG_KEEPOPEN '"We hope to see you again!"
return

STRINGS AND MOVEMENTS

Looks like a lock to me, doesn't it?
Hmm.
Which ROM did you check it on? I think one uses lock the other uses lockall. I could be wrong though.
__________________
Pokémon Stardrop
  #163    
Old January 2nd, 2009, 11:19 AM
diegoisawesome's Avatar
diegoisawesome
Not the Script Help Thread
Community Supporter
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 17
Gender: Male
Nature: Quirky
The problem was:
The trainer sprite!
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles

Last edited by diegoisawesome; January 3rd, 2009 at 06:55 AM.
  #164    
Old January 2nd, 2009, 11:40 AM
пзо's Avatar
пзо
zzirRusty
 
Join Date: Dec 2008
Nature: Quiet
This could be, The 0x0's after the trainer battle.
Other than that I cant see anything else.

I shall Keep looking. It hasto be somthing just after or before the
trainer battle. So Im 100% sure its that.
__________________
| Pokémon Obsidian | Pokémon Mystical Glacier |
Yeah, I said it, Pokémon Mystical Glacier..
Its comming back.. Better than ever.
Along side Pokémon Obsidian.
  #165    
Old January 2nd, 2009, 11:56 AM
diegoisawesome's Avatar
diegoisawesome
Not the Script Help Thread
Community Supporter
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 17
Gender: Male
Nature: Quirky
Quote:
Originally Posted by пзо View Post
This could be, The 0x0's after the trainer battle.
Other than that I cant see anything else.

I shall Keep looking. It hasto be somthing just after or before the
trainer battle. So Im 100% sure its that.
Fixed.
Read first post.
WOOT!
__________________


My other resources:
My Website
diegoisawesome's MEGA-HUGE XSE Scripting Tutorial
diegoisawesome's Miscellaneous Finds
The Ruins of Alph Puzzles

Last edited by diegoisawesome; January 3rd, 2009 at 06:55 AM.
  #166    
Old January 2nd, 2009, 12:01 PM
пзо's Avatar
пзо
zzirRusty
 
Join Date: Dec 2008
Nature: Quiet
Is'nt, Pet, or what Trainer editor your using, dont the digets have
4 numbers. Example.

0x001 maybe or I think its 0x0001.

Im highly unsure.
__________________
| Pokémon Obsidian | Pokémon Mystical Glacier |
Yeah, I said it, Pokémon Mystical Glacier..
Its comming back.. Better than ever.
Along side Pokémon Obsidian.
  #167    
Old January 2nd, 2009, 12:13 PM
Pokepal17's Avatar
Pokepal17
More cowbell~
 
Join Date: Oct 2008
Location: Steeltown
Age: 19
Gender: Male
Nature: Modest
@diegoisawesome
Quote:
originally posted
Game: Fire Red (BPRE)
Type: Level Script
Editor: XSE
Script:
Before Compiling:
Content hidden:
Click here to view.
#dynamic 0x26D9C3

#org @start
lockall
clearflag 0x200
textcolor 0x0
msgbox @heyyou 0x6
fadesong 0x0
applymovement 0xFF @lookmark
applymovement 0x7 @colbytoplayer
waitmovement 0x7
trainerbattle 0x0 0x011 0x03 @win @defeat
playsong 0x13A 0x0
msgbox @huh 0x6
applymovement 0x7 @lookaround
waitmovement 0x7
applymovement 0x7 @mark
pause 0x40
msgbox @there 0x6
applymovement 0x7 @topokedex
waitmovement 0x7
fanfare 0x11E
waitfanfare
applymovement 0x7 @backtome
waitmovement 0x7
msgbox @hehe 0x6
showmoney 0x0 0x0 0x0
pause 0x30
fanfare 0x11E
givemoney 0x3E8 0x0
updatemoney 0x0 0x0 0x0
msgbox @here 0x6
hidemoney 0x0 0x0
msgbox @seeya 0x6
playsong 0x13C 0x0
applymovement 0x7 @todoor
applymovement 0xFF @outofway
waitmovement 0x7
setdooropened 0x1F 0x1B
doorchange
applymovement 0x7 @intodoor
waitmovement 0x7
setdoorclosed 0x1F 0x1B
doorchange
fadedefault
setflag 0x200
setvar 0x7006 0x1
releaseall
end

#org @heyyou
= Hey!\pYou there!

#org @lookmark
#raw 0x62
#raw 0x03
#raw 0xFE

#org @colbytoplayer
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @something
= ???: I believe you have something\nof mine[.]

#org @win
= ???: WHAT?\nYou mean you don't have my\lPokéDex?

#org @defeat
= ???: Give it back now!\p[.]\nYou mean you don't have my\lPokéDex?

#org @huh
= ???: Where is it then?

#org @lookaround
#raw 0x1C
#raw 0x1B
#raw 0x30
#raw 0x1C
#raw 0x2E
#raw 0x1C
#raw 0x2F
#raw 0x1C
#raw 0x2D
#raw 0xFE

#org @mark
#raw 0x62
#raw 0xFE

#org @there
= There!

#org @topokedex
#raw 0x1D
#raw 0x1D
#raw 0x4E
#raw 0xFE

#org @backtome
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @hehe
= ???: Hehe[.]\pSorry for that confusion and all!\pHere's some money for your\ntroubles.

#org @here
= Here ya go!

#org @seeya
= ???: By the way, my name's [rival].\pYours?\p[.] [.] [.] [.] [.]\p[player], huh?\pI'll remember that!\pSee ya later, noob! I've got an\nimportant gym battle coming up!

#org @todoor
#raw 0x13
#raw 0x01
#raw 0xFE

#org @outofway
#raw 0x13
#raw 0x02
#raw 0xFE

#org @intodoor
#raw 0x11
#raw 0x60
#raw 0xFE

#org @end
releaseall
end





Decompiled: Content hidden:
Click here to view.
#org 0x26DD0D
lockall
clearflag 0x200
textcolor 0x0
msgbox 0x826DDEE MSG_NORMAL
showsprite 0x7
fadesong 0x0
applymovement MOVE_PLAYER 0x826DE00
applymovement 0x7 0x8274570
waitmovement 0x7
msgbox 0x826DE0C MSG_NORMAL
trainerbattle 0x0 0x011 0x0 0x826DE39 0x826DE6A
playsong 0x13A 0x0
msgbox 0x826DEA9 MSG_NORMAL
applymovement 0x7 0x826DEC2
waitmovement 0x7
applymovement 0x7 0x826DECD
pause 0x40
msgbox 0x826DED0 MSG_NORMAL
applymovement 0x7 0x826DED9
waitmovement 0x7
fanfare 0x11E
waitfanfare
applymovement 0x7 0x826DEDE
waitmovement 0x7
msgbox 0x826DEEC MSG_NORMAL
showmoney 0x0 0x0 0x0
pause 0x30
fanfare 0x11E
givemoney 0x3E8 0x0
updatemoney 0x0 0x0 0x0
msgbox 0x826DF40 MSG_NORMAL
hidemoney 0x0 0x0
msgbox 0x82744D0 MSG_NORMAL
playsong 0x13C 0x0
applymovement 0x7 0x827455F
applymovement MOVE_PLAYER 0x8274563
waitmovement 0x7
setdooropened 0x1F 0x1B
doorchange
applymovement 0x7 0x8274567
waitmovement 0x7
setdoorclosed 0x1F 0x1B
doorchange
fadedefault
setflag 0x200
setvar 0x7006 0x1
releaseall
end

#org 0x26DDEE
= Hey!\pYou there!

#org 0x26DE0C
= ???: I believe you have something\nof mine[.]

#org 0x26DE39
= ???: WHAT?\nYou mean you don't have my\lPokéDex?

#org 0x26DE6A
= ???: Give it back now!\p[.]\nYou mean you don't have my\lPokéDex?

#org 0x26DEA9
= ???: Where is it then?

#org 0x26DED0
= There!

#org 0x26DEEC
= ???: Hehe[.]\pSorry for that confusion and all!\pHere's some money for your\ntroubles.

#org 0x26DF40
= Here ya go!

#org 0x2744D0
= ???: By the way, my name's [rival].\pYours?\p[.] [.] [.] [.] [.]\p[player], huh?\pI'll remember that!\pSee ya later, noob! I've got an\nimportant gym battle coming up!

#org 0x26DE00
#raw 0x62
#raw 0x3
#raw 0xFE

#org 0x274570
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org 0x26DEC2
#raw 0x1C
#raw 0x1B
#raw 0x30
#raw 0x1C
#raw 0x2E
#raw 0x1C
#raw 0x2F
#raw 0x1C
#raw 0x2D
#raw 0xFE

#org 0x26DECD
#raw 0x62
#raw 0xFE

#org 0x26DED9
#raw 0x1D
#raw 0x1D
#raw 0x4E
#raw 0xFE

#org 0x26DEDE
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org 0x27455F
#raw 0x13
#raw 0x1
#raw 0xFE

#org 0x274563
#raw 0x13
#raw 0x2
#raw 0xFE

#org 0x274567
#raw 0x11
#raw 0x60
#raw 0xFE





A-Map Level Script Thing: (btw, it was fixed) Content hidden:
Click here to view.
#org 0x71AB98
#raw 0x2
#raw pointer 0x871AB9E
#raw 0x0

#org 0x71AB9E
#raw word 0x7006
#raw word 0x0
#raw pointer 0x826DD0D
#raw word 0x0

#org 0x26DD0D
lockall
clearflag 0x200
textcolor 0x0
msgbox 0x826DDEE MSG_NORMAL
showsprite 0x7
fadesong 0x0
applymovement MOVE_PLAYER 0x826DE00
applymovement 0x7 0x8274570
waitmovement 0x7
msgbox 0x826DE0C MSG_NORMAL
trainerbattle 0x0 0x011 0x0 0x826DE39 0x826DE6A
playsong 0x13A 0x0
msgbox 0x826DEA9 MSG_NORMAL
applymovement 0x7 0x826DEC2
waitmovement 0x7
applymovement 0x7 0x826DECD
pause 0x40
msgbox 0x826DED0 MSG_NORMAL
applymovement 0x7 0x826DED9
waitmovement 0x7
fanfare 0x11E
waitfanfare
applymovement 0x7 0x826DEDE
waitmovement 0x7
msgbox 0x826DEEC MSG_NORMAL
showmoney 0x0 0x0 0x0
pause 0x30
fanfare 0x11E
givemoney 0x3E8 0x0
updatemoney 0x0 0x0 0x0
msgbox 0x826DF40 MSG_NORMAL
hidemoney 0x0 0x0
msgbox 0x82744D0 MSG_NORMAL
playsong 0x13C 0x0
applymovement 0x7 0x827455F
applymovement MOVE_PLAYER 0x8274563
waitmovement 0x7
setdooropened 0x1F 0x1B
doorchange
applymovement 0x7 0x8274567
waitmovement 0x7
setdoorclosed 0x1F 0x1B
doorchange
fadedefault
setflag 0x200
setvar 0x7006 0x1
releaseall
end

#org 0x26DDEE
= Hey!\pYou there!

#org 0x26DE0C
= ???: I believe you have something\nof mine[.]

#org 0x26DE39
= ???: WHAT?\nYou mean you don't have my\lPokéDex?

#org 0x26DE6A
= ???: Give it back now!\p[.]\nYou mean you don't have my\lPokéDex?

#org 0x26DEA9
= ???: Where is it then?

#org 0x26DED0
= There!

#org 0x26DEEC
= ???: Hehe[.]\pSorry for that confusion and all!\pHere's some money for your\ntroubles.

#org 0x26DF40
= Here ya go!

#org 0x2744D0
= ???: By the way, my name's [rival].\pYours?\p[.] [.] [.] [.] [.]\p[player], huh?\pI'll remember that!\pSee ya later, noob! I've got an\nimportant gym battle coming up!

#org 0x26DE00
#raw 0x62
#raw 0x3
#raw 0xFE

#org 0x274570
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org 0x26DEC2
#raw 0x1C
#raw 0x1B
#raw 0x30
#raw 0x1C
#raw 0x2E
#raw 0x1C
#raw 0x2F
#raw 0x1C
#raw 0x2D
#raw 0xFE

#org 0x26DECD
#raw 0x62
#raw 0xFE

#org 0x26DED9
#raw 0x1D
#raw 0x1D
#raw 0x4E
#raw 0xFE

#org 0x26DEDE
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org 0x27455F
#raw 0x13
#raw 0x1
#raw 0xFE

#org 0x274563
#raw 0x13
#raw 0x2
#raw 0xFE

#org 0x274567
#raw 0x11
#raw 0x60
#raw 0xFE





Screenshots and/or Videos:
Content hidden:
Click here to view.






What it Should Do: The trainerbattle should start a battle with the Oak Talking thing.
What it Does: Check out the video.
Changes in script.
__________________
Pokémon Stardrop
  #168    
Old January 2nd, 2009, 02:11 PM
Ninja Caterpie's Avatar
Ninja Caterpie
Sitting by the back window
 
Join Date: Mar 2008
Location: Best City OCE
Age: 18
Gender: Male
Nature: Bold
Quote:
Originally Posted by Pokepal17 View Post
Hmm.
Which ROM did you check it on? I think one uses lock the other uses lockall. I could be wrong though.
It's on Fire Red BPRE. So there. I've only hacked FR, and lock in FR freezes everything on the map. :\ Lockall doesn't, as I put lockall in a level script and the people keep moving. Or looking around, as I set them to. :\
__________________
Brony represent.
  #169    
Old January 2nd, 2009, 02:42 PM
Ressai
Beginning Trainer
 
Join Date: Nov 2008
Game: FireRed NA
Type: Person/Trainer
Editor: XSE
Script:
Spoiler:

'---------------
#dynamic 0x8017AC
#org @start
trainerbattle 0x0 0x1F 0x0 @intro @defeat
special2 LASTRESULT 0x39
compare LASTRESULT 0x1
if 0x1 goto @seeker
msgbox @msg 0x2
end
'---------------
#org @seeker
trainerbattle 0x5 0x1F 0x0 @rematch @defeat
msgbox @msg 0x2
end
#org @intro
= My brother and I are \nlooking for challengers!
#org @defeat
= Eek!
#org @msg
= I look out for my brother. \pWe really care for each \nother.
#org @rematch
= Hii! Back for more?


I'm trying to script rematches into trainers I made. I opened a trainer script that was already in the rom and tried to do the same as it did but when I try to use the VS. Seeker it says "No trainers within range".
Do I need a new offset for the rematch script?
  #170    
Old January 2nd, 2009, 05:27 PM
ShakawBR
Beginning Trainer
 
Join Date: May 2008
Gender:
I want to make a script in emerald like this: I fight someone, and after I win the fight, he gives me a Eon Ticket/Old Sea Chart and at the same time enables the islands...

Please someone help me with this, I don't even know where I start...
  #171    
Old January 2nd, 2009, 06:46 PM
diegoisawesome's Avatar
diegoisawesome
Not the Script Help Thread
Community Supporter
 
Join Date: Dec 2007
Location: Goldenrod City, Johto
Age: 17
Gender: Male
Nature: Quirky
Quote:
Originally Posted by Pokepal17 View Post
@diegoisawesome


Changes in script.
FIXED.
Read first post.
YES!!!!!!!!!

Last edited by diegoisawesome; January 3rd, 2009 at 06:54 AM.
  #172    
Old January 2nd, 2009, 07:53 PM
Kalm
Hacker-In-Progress
 
Join Date: Jan 2009
Location: United States
Age: 24
Gender:
Nature: Calm
Game: Pokemon Fire Red
Type: Script (Walkon)
Editor: PoketScript(Rubikon)/Notepad

SCRIPT:
Spoiler:

#org $scrtpth2
checkflag 0x200
if 0x1 goto $pass
checkflag 0x828
if 0x1 goto $stop
applymovement 0x03 $exclam
pause 0x30
applymovement 0x03 $movechar
message $deny
boxset 6
applymovement 0xFF $mright
pausemove 0x0
applymovement 0xFF $mright
pause 0x10
applymovement 0x03 $mup
pausemove 0x0
applymovement 0x03 $mright
pausemove 0x0
applymovement 0x03 $fdown
pausemove 0x0
release
end

#org $stop
message $question
boxset 6
pause 0x10
applymovement 0x03 $exclam
pause 0x20
message $letpass
boxset 6
setflag 0x200
release
end

#org $pass
release
end

#org $mup
#raw 0x11
#raw 0xFE

#org $fdown
#raw 0x2D
#raw 0xFE

#org $mright
#raw 0x13
#raw 0xFE

#org $movechar
#raw 0x1F
#raw 0x1D
#raw 0x03
#raw 0xFE

#org $exclam
#raw 0x62
#raw 0xFE

#org $question
$question 1 =I am sorry but I still cannot\nlet you pass.

#org $letpass
$letpass 1 =Oh, you now have a Pokemon.\nI guess I won't have to worry\nabout letting you pass.\pPlease be careful though\nand watch your Pokemon's HP.

#org $deny
$deny 1 =You can't go out there\nwithout your own Pokemon.\pWild Pokemon might attack you!


The first half of the code works fine where it simply says you don't have your pokemon and cannot go out etc etc... But when the flag 0x828 is set (meaning the POKEMON menu becomes available via Fire Red's original scripts), I can walk right through the scripted tile and the only trainer I have placed on that map is screwed up, leading me to the red screen. Also, only the trainer was effected. My other characters on the map were not.

Script Parameters:

Unknown: 0003
Var Number: 4050
Var Value: 0000

Anyone know why this is happening?
  #173    
Old January 2nd, 2009, 09:24 PM
Liquid Shadow's Avatar
Liquid Shadow
xD
 
Join Date: Mar 2008
Gender:
Quote:
Originally Posted by Kalm View Post
Game: Pokemon Fire Red
Type: Script (Walkon)
Editor: PoketScript(Rubikon)/Notepad

SCRIPT:
Spoiler:

#org $scrtpth2
checkflag 0x200
if 0x1 goto $pass
checkflag 0x828
if 0x1 goto $stop
applymovement 0x03 $exclam
pause 0x30
applymovement 0x03 $movechar
pausemove0x0
message $deny
boxset 6
applymovement 0xFF $mright
pausemove 0x0
applymovement 0xFF $mright
pause 0x10
applymovement 0x03 $mup
pausemove 0x0
applymovement 0x03 $mright
pausemove 0x0
applymovement 0x03 $fdown
pausemove 0x0
release
end

#org $stop
message $question
boxset 6
pause 0x10
applymovement 0x03 $exclam
pause 0x20
message $letpass
boxset 6
setflag 0x200
release
end

#org $pass
release
end

#org $mup
#raw 0x11 0xFE

#org $fdown
#raw 0x2D 0xFE


#org $mright
#raw 0x13 0xFE


#org $movechar
#raw 0x1F 0x1D 0x03 0xFE

#org $exclam
#raw 0x62 0xFE

#org $question
$question 1 =I am sorry but I still cannot\nlet you pass.

#org $letpass
$letpass 1 =Oh, you now have a Pokemon.\nI guess I won't have to worry\nabout letting you pass.\pPlease be careful though\nand watch your Pokemon's HP.

#org $deny
$deny 1 =You can't go out there\nwithout your own Pokemon.\pWild Pokemon might attack you!


The first half of the code works fine where it simply says you don't have your pokemon and cannot go out etc etc... But when the flag 0x828 is set (meaning the POKEMON menu becomes available via Fire Red's original scripts), I can walk right through the scripted tile and the only trainer I have placed on that map is screwed up, leading me to the red screen. Also, only the trainer was effected. My other characters on the map were not.

Script Parameters:

Unknown: 0003
Var Number: 4050
Var Value: 0000

Anyone know why this is happening?
Ok, I've fixed the script to my best knowledge... You were missing a pausemove 0x0 in part of the script, and I rearranged the way your movements were written.. Because the way you had them written used to give me errors in Pokescript, even though they should work. Also, try adapting to XSE, it's much better and most of the time tells you what you're doing wrong in your script.. And it's much less buggy. Anyway, I hope the script works. Also, try using a different flag than the pokemon menu.. Maybe set/clear it in a previous part of the game, because I think used flags in the game can give you messed up errors... Because I've never run into a script where everything went red in the end lol.
__________________

4 truths of life
1. You cannot touch all your teeth with your tongue.
2. All idiots, after reading the first truth, will try it.
3. And discover that the first truth is a lie.
4. You're smiling now because you're an idiot.
  #174    
Old January 2nd, 2009, 10:35 PM
Kalm
Hacker-In-Progress
 
Join Date: Jan 2009
Location: United States
Age: 24
Gender:
Nature: Calm
Quote:
Originally Posted by NeoNemesis View Post
Ok, I've fixed the script to my best knowledge... You were missing a pausemove 0x0 in part of the script, and I rearranged the way your movements were written.. Because the way you had them written used to give me errors in Pokescript, even though they should work. Also, try adapting to XSE, it's much better and most of the time tells you what you're doing wrong in your script.. And it's much less buggy. Anyway, I hope the script works. Also, try using a different flag than the pokemon menu.. Maybe set/clear it in a previous part of the game, because I think used flags in the game can give you messed up errors... Because I've never run into a script where everything went red in the end lol.
Thanks for the help, but it still gives me the same problem...

I'm not sure if it is something wrong with the script, but with A-map maybe? This script did work a few hours ago, until I changed the pause time and the movements and re-compiled the script and entered in the new offset.

I had two events on one map with the same script as the one in my orginal post, one of them simply had 2 extra movements. I tested one script and it worked, and then tested the other and it did not.... odd?

If I can't get it to work, i'll just go with your advice and start fresh with XSE.

Last edited by Kalm; January 2nd, 2009 at 10:45 PM.
  #175    
Old January 3rd, 2009, 03:33 AM
tImE's Avatar
tImE
It's still me, 44tim44 ;)
 
Join Date: Mar 2007
Location: Somewhere in Scandinavia...
Age: 19
Nature: Relaxed
Game:Ruby_USA AXVE
Type:Script (Step-on)
Editor:XSE
Script:
Spoiler:
#dynamic 0x800000

#org @start
lock
checkflag 0x1012
if b_true goto 0x8800725
showsprite 0x1
msgbox @hey1 0x2
applymovement 0xFF @playermove1
waitmovement 0x0
playsong 0x19F 0x0
applymovement 0x1 @move1
waitmovement 0x0
msgbox @itsme 0x2
applymovement 0x1 @move2
waitmovement 0x0
sound 0x12
hidesprite 0x1
fadesong 0x167
setflag 0x1012
release
end

#org @hey1
= ???: HEY! [player]!

#org @itsme
= Sapphire: Hi, [player].\nYou sure are fast...\lPhew...\pYou remember me don't ya?\nIt's me Sapphire, your neighbour.\pAnyway, I heard from your father\nthat you'd left on a journey.\pSo I thought ["]Eh, what the heck."\nAnd I decided to come along with\lyou.\pSo... What are we waiting for?\lLet's go into the woods!

#org @playermove1
#raw 0x02 0x57 0xFE

#org @move1
#raw 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0x03 0xFE

#org @move2
#raw 0x08 0x0B 0xFE

After
"#org @move1
#raw 0x08 0x08 0x08 0x08 0x08 0x08 0x08 0x03 0xFE"
The player turns right for absolutly no reason at all.
I can't figure out what's wrong.

Screenshots and/or Videos: Attachment
Attached Images
File Type: png Ruby_USA.png‎ (9.3 KB, 20 views) (Save to Dropbox)
__________________
Closed Thread
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 12:54 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.