Go Back   The PokéCommunity Forums > ROM Hacking > ROM Hacking Hub
Reload this Page Script Help Thread (DO NOT REQUEST SCRIPTS)

Notices
For all updates, view the main page.

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
 
Thread Tools
  #8351    
Old June 3rd, 2013 (08:29 PM).
SpadeEdge16's Avatar
SpadeEdge16
 
Join Date: May 2012
Gender: Male
so its been a while since ive scripted and i cant seem to get the nickname command to work.
heres what happens. you get a pkmn, then it asks to nickname it, then if the player chooes yes, it takes them to the nickname screen, but after they input the name, they come back to where they were, but the event does not continue afterwards.
Spoiler:

#org @showpkmn
lock
showpokepic 0x115 0xA 0x3
cry 0x115 0x0
applymovement 0x1 @oakfaces
waitmovement 0x1
msgbox @oaksayspkmn 0x5
compare 0x800D 0x1
if 0x1 goto @getpkmn
hidepokepic
release
end

#org @getpkmn
hidepokepic
hidesprite 0x4
fanfare 0x10C
msgbox @recievetropfe 0x6
waitfanfare
givepokemon 0x115 0x5 0x0 0x0 0x0 0x0
setflag 0x157
msgbox @nickname 0x5
compare 0x800D 0x1
if 0x1 goto @name

applymovement 0xFF @walktooak
waitmovement 0xFF
applymovement 0x1 @look
waitmovement 0x1
msgbox @oak1 0x6
applymovement 0x1 @getdex
waitmovement 0x1
hidesprite 0x7
applymovement 0x1 @backdex
waitmovement 0x1
msgbox @oakgivedex 0x6
fanfare 0x10C
setflag 0x828
setflag 0x829
setflag 0x16F
msgbox @playerdex 0x6
msgbox @oakbye 0x6
release
end

#org @name
fadescreen 0x1
special 0x9E
waitstate
return
  #8352    
Old June 3rd, 2013 (08:34 PM). Edited June 3rd, 2013 by LocksmithArmy.
LocksmithArmy's Avatar
LocksmithArmy
Mew!
 
Join Date: Feb 2013
Age: 25
Gender: Male
Quote originally posted by SpadeEdge16:
so its been a while since ive scripted and i cant seem to get the nickname command to work.
heres what happens. you get a pkmn, then it asks to nickname it, then if the player chooes yes, it takes them to the nickname screen, but after they input the name, they come back to where they were, but the event does not continue afterwards.
Spoiler:

#org @showpkmn
lock
showpokepic 0x115 0xA 0x3
cry 0x115 0x0
applymovement 0x1 @oakfaces
waitmovement 0x1
msgbox @oaksayspkmn 0x5
compare 0x800D 0x1
if 0x1 goto @getpkmn
hidepokepic
release
end

#org @getpkmn
hidepokepic
hidesprite 0x4
fanfare 0x10C
msgbox @recievetropfe 0x6
waitfanfare
givepokemon 0x115 0x5 0x0 0x0 0x0 0x0
setflag 0x157
msgbox @nickname 0x5
compare 0x800D 0x1
if 0x1 goto @name

applymovement 0xFF @walktooak
waitmovement 0xFF
applymovement 0x1 @look
waitmovement 0x1
msgbox @oak1 0x6
applymovement 0x1 @getdex
waitmovement 0x1
hidesprite 0x7
applymovement 0x1 @backdex
waitmovement 0x1
msgbox @oakgivedex 0x6
fanfare 0x10C
setflag 0x828
setflag 0x829
setflag 0x16F
msgbox @playerdex 0x6
msgbox @oakbye 0x6
release
end

#org @name
fadescreen 0x1
special 0x9E
waitstate
return
you cannot use the command "return" when you are using "goto" or "jump"
if you intend to "return" from the command, you must use "call"

that should fix your issue:
msgbox @nickname 0x5
compare 0x800D 0x1
if 0x1 call @name


------------------------------------------------------------------------------------------
Quote originally posted by LocksmithArmy:
How can I check if the player has used FLASH?

I have a simple script idea

check if flashused
if no call random number generator
generate number 1-100
if number is under 5 start poke battle
if flash is used jump "release end"

that way no pokebattles will appear after the player uses flash... i just dont know how to check if flash is used...

really i only want 1 pokemon to be limited... all the other pokes wont care about flash... but thats not the point HOW DO I CHECK IF FLASH USED...

To elaborate a bit on my previous question... this is how my script looks now:
Spoiler:
#org @kabutogame
'-----------------------------------
checkattack FLASH
compare LASTRESULT 0x6
if != jump @releaseend ' Not Equal To

jump @noflash

#org @releaseend
'-----------------------------------
release
end

#org @noflash
'-----------------------------------
random 0x64
compare LASTRESULT 0x5
if > jump @releaseend ' Larger Than
compare LASTRESULT 0x0
if == jump @lv5 ' Equal To
compare LASTRESULT 0x1
if == jump @lv7 ' Equal To
compare LASTRESULT 0x2
if == jump @lv10 ' Equal To
compare LASTRESULT 0x3
if == jump @lv12 ' Equal To
compare LASTRESULT 0x4
if == jump @lv15 ' Equal To
battle KABUTO 20 SACREDASH
special BATTLE_PIXELLATE
waitspecial
end

#org @lv5
'-----------------------------------
battle KABUTO 5 NONE
special BATTLE_PIXELLATE
waitspecial
end

#org @lv7
'-----------------------------------
battle KABUTO 7 SACREDASH
special BATTLE_PIXELLATE
waitspecial
end

#org @lv10
'-----------------------------------
battle KABUTO 10 NONE
special BATTLE_PIXELLATE
waitspecial
end

#org @lv12
'-----------------------------------
battle KABUTO 12 SACREDASH
special BATTLE_PIXELLATE
waitspecial
end

#org @lv15
'-----------------------------------
battle KABUTO 15 NONE
special BATTLE_PIXELLATE
waitspecial
end



the red text is what I would like to replace with something that tells me if they have USED flash, rather than just having it on a team member (like checkattack)

maybe a copybyte or something like that... if anyone knows where the byte containing the info about if the map has been flashed is...
__________________
  #8353    
Old June 4th, 2013 (10:47 AM).
Teh Blazer's Avatar
Teh Blazer
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 19
Gender: Male
Nature: Relaxed
I was making a level script and for some reason every time I include the "hidesprite 0xFF" command, the script either doesn't work or glitches up beyond compare. I don't know why, but when I remove the "hidesprite 0xFF" command the script works perfectly, it's just that when I put it in (and I need it in) it suddenly decides not to work.

Spoiler:

#org 0x81A59F
lock
hidesprite 0xFF
applymovement 0x1 0x881A7AE
waitmovement 0x0
msgbox 0x881A627 MSG_NORMAL '"This is my son, in whom I am well\..."
goto 0x881A5BB
__________________
Coming soon...
  #8354    
Old June 4th, 2013 (05:22 PM).
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by Teh Blazer:
I was making a level script and for some reason every time I include the "hidesprite 0xFF" command, the script either doesn't work or glitches up beyond compare. I don't know why, but when I remove the "hidesprite 0xFF" command the script works perfectly, it's just that when I put it in (and I need it in) it suddenly decides not to work.

Spoiler:

#org 0x81A59F
lock
hidesprite 0xFF
applymovement 0x1 0x881A7AE
waitmovement 0x0
msgbox 0x881A627 MSG_NORMAL '"This is my son, in whom I am well\..."
goto 0x881A5BB
There is a hidesprite command built into the applymovement script. So, instead, use this:

Code:
#org 0x81A59F
lock
applymovement 0xFF @move1
waitmovement 0x0
applymovement 0x1 0x881A7AE
waitmovement 0x0
msgbox 0x881A627 MSG_NORMAL '"This is my son, in whom I am well\..."
goto 0x881A5BB

#org @move1
#raw 0x60 'hide_sprite
#raw 0xFE
Please note that this will not compile as is. This is just an example to show how to use #raw 0x60 to hide sprites.
__________________

Paired with Simba
  #8355    
Old June 5th, 2013 (05:09 PM).
Extremeromhacker's Avatar
Extremeromhacker
I need ideas
 
Join Date: Jun 2013
Gender: Male
Nature: Naughty
I need help figuring out what is wrong with my script, It works exactly the way I want it until the very end it just freezes...

My Script *Check The Bottom*

#org $script
jingle
applymovement 0xFF $!
$! 1 ; #binary 0x62 0xFE
pausemove 0
special 0x113
applymovement 0x7F $screengo
$screengo 1 ; #binary 0x11 0x11 0x12 0x12 0x12 0x12 0x12 0xFE
pausemove 0
applymovement 0x7F $screengo1
$screengo1 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0xFE
pausemove 0
playsound 0x13B
nop
applymovement 3 $jump
$jump 1 ; #binary 0x54 0xFE
pausemove 0
message $gary
$gary 1 = \c\h01\h02\v\h06: PIDGEY use TACKLE!
boxset 6
cry 0xA1 16
nop
nop
message $pidgey
$pidgey 1 = Pi pidge!
boxset 6
applymovement 4 $tackle
$tackle 1 ; #binary 0x62 0x54 0x16 0x49 0x49 0x02 0xFE
pausemove 0
message $ya
$ya 1 = \c\h01\h02\v\h06: Ya! You got em'!
boxset 6
cry 0xA1 21
nop
nop
message $spearow
$spearow 1 = Spea spear!
boxset 6
applymovement 5 $peck
$peck 1 ; #binary 0x55 0x17 0x12 0x12 0x03 0xFE
pausemove 0
message $gary1
$gary1 1 = \c\h01\h02\v\h06: Once more PIDGEY!
boxset 6
cry 0xA1 16
nop
nop
message $pidgey
boxset 6
applymovement 4 $tackle
pausemove 0
removesprite 5
message $gary2
$gary2 1 = \c\h01\h02\v\h06: Great job PIDGEY, return!
boxset 6
applymovement 4 $return
$return 1 ; #binary 0x13 0xFE
pausemove 0
removesprite 4
applymovement 3 $who
$who 1 ; #binary 0x62 0x03 0xFE
pausemove 0
applymovement 0x7F $screencome
$screencome 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE
pausemove 0
applymovement 0x7F $screencome1
$screencome1 1 ; #binary 0x13 0x10 0x10 0xFE
pausemove 0
special 0x114
applymovement 3 $move
$move 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x10 0xFE
pausemove 0
message $hey
$hey 1 = \c\h01\h02\v\h06: Hi, I'm \v\h06 OAK!\nMy gramps talked alot about you,\pso I waited around here to see if\nyou were the real deal.\pLet's battle!
boxset 6
trainerbattle 0x09 0x01 $win $lose
$win 1 = You are good!
$lose 1 = \hb0Was my gramps wrong?\hb0
message $speak
$speak 1 = \c\h01\h02\v\h06: That was a great battle!\nI hope to meet you on the road\pagain.
boxset 6
applymovement 3 $leave
$leave 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0xFE
pausemove 0
removesprite 3
fadesound 0x116
nop *My script freezes right after the music goes back to normal*
applymovement 0xFF $movement
$movement 1 ; #binary 0x63 0x02 0xFE
pausemove 0
setflag 0x1203
setvar 0x6002 0x0001
release
end
__________________
Looking for ideas..
  #8356    
Old June 8th, 2013 (09:00 PM).
totodile493's Avatar
totodile493
Person
 
Join Date: Apr 2011
Gender: Male
Nature: Quiet
Spoiler:
Quote originally posted by Extremeromhacker:
I need help figuring out what is wrong with my script, It works exactly the way I want it until the very end it just freezes...

My Script *Check The Bottom*

#org $script
jingle
applymovement 0xFF $!
$! 1 ; #binary 0x62 0xFE
pausemove 0
special 0x113
applymovement 0x7F $screengo
$screengo 1 ; #binary 0x11 0x11 0x12 0x12 0x12 0x12 0x12 0xFE
pausemove 0
applymovement 0x7F $screengo1
$screengo1 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0xFE
pausemove 0
playsound 0x13B
nop
applymovement 3 $jump
$jump 1 ; #binary 0x54 0xFE
pausemove 0
message $gary
$gary 1 = \c\h01\h02\v\h06: PIDGEY use TACKLE!
boxset 6
cry 0xA1 16
nop
nop
message $pidgey
$pidgey 1 = Pi pidge!
boxset 6
applymovement 4 $tackle
$tackle 1 ; #binary 0x62 0x54 0x16 0x49 0x49 0x02 0xFE
pausemove 0
message $ya
$ya 1 = \c\h01\h02\v\h06: Ya! You got em'!
boxset 6
cry 0xA1 21
nop
nop
message $spearow
$spearow 1 = Spea spear!
boxset 6
applymovement 5 $peck
$peck 1 ; #binary 0x55 0x17 0x12 0x12 0x03 0xFE
pausemove 0
message $gary1
$gary1 1 = \c\h01\h02\v\h06: Once more PIDGEY!
boxset 6
cry 0xA1 16
nop
nop
message $pidgey
boxset 6
applymovement 4 $tackle
pausemove 0
removesprite 5
message $gary2
$gary2 1 = \c\h01\h02\v\h06: Great job PIDGEY, return!
boxset 6
applymovement 4 $return
$return 1 ; #binary 0x13 0xFE
pausemove 0
removesprite 4
applymovement 3 $who
$who 1 ; #binary 0x62 0x03 0xFE
pausemove 0
applymovement 0x7F $screencome
$screencome 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0xFE
pausemove 0
applymovement 0x7F $screencome1
$screencome1 1 ; #binary 0x13 0x10 0x10 0xFE
pausemove 0
special 0x114
applymovement 3 $move
$move 1 ; #binary 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x13 0x10 0xFE
pausemove 0
message $hey
$hey 1 = \c\h01\h02\v\h06: Hi, I'm \v\h06 OAK!\nMy gramps talked alot about you,\pso I waited around here to see if\nyou were the real deal.\pLet's battle!
boxset 6
trainerbattle 0x09 0x01 $win $lose
$win 1 = You are good!
$lose 1 = \hb0Was my gramps wrong?\hb0
message $speak
$speak 1 = \c\h01\h02\v\h06: That was a great battle!\nI hope to meet you on the road\pagain.
boxset 6
applymovement 3 $leave
$leave 1 ; #binary 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0x12 0xFE
pausemove 0
removesprite 3
fadesound 0x116
nop *My script freezes right after the music goes back to normal*
applymovement 0xFF $movement
$movement 1 ; #binary 0x63 0x02 0xFE
pausemove 0
setflag 0x1203
setvar 0x6002 0x0001
release
end


I'm no expert, but near the end with the fadesound, did you try putting "waitfanfare" or "waitstate" or whatever it was?
  #8357    
Old June 8th, 2013 (09:13 PM).
kearnseyboy6's Avatar
kearnseyboy6
Aussie's Toughest Mudder
 
Join Date: Dec 2008
This is my map script,

#dynamic 0x800000

#org @main
checkflag 0x821
if 0x1 goto @clear
setflag 0x250
end

#org @clear
clearflag 0x250
end

How ever the sprites with 250 as ID don't disappear when the badge isn't obtained.

I used [03] On entering map/ not on menu close.

I have tried [02] validates values ... etc with a unused variable.

I have no idea why the script isn't working?
__________________
HOLIDAYING CURRENTLY!!
  #8358    
Old June 9th, 2013 (03:43 AM).
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by kearnseyboy6:
This is my map script,

#dynamic 0x800000

#org @main
checkflag 0x821
if 0x1 goto @clear
setflag 0x250
end

#org @clear
clearflag 0x250
end

How ever the sprites with 250 as ID don't disappear when the badge isn't obtained.

I used [03] On entering map/ not on menu close.

I have tried [02] validates values ... etc with a unused variable.

I have no idea why the script isn't working?
Have you tried entering and exiting the room?
__________________

Paired with Simba
  #8359    
Old June 9th, 2013 (05:52 AM).
kablam
Unhatched Egg
 
Join Date: May 2013
Gender: Male
setwildbattle 0x90 0x32 0x0

^ Taken directly from Articuno's Fire Red Battle

I know this seems very simple but can someone just breakdown that command for me please.
  #8360    
Old June 9th, 2013 (06:53 AM).
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by kablam:
setwildbattle 0x90 0x32 0x0

^ Taken directly from Articuno's Fire Red Battle

I know this seems very simple but can someone just breakdown that command for me please.
Go into XSE and hit F1. You will find a breakdown of every command.
__________________

Paired with Simba
  #8361    
Old June 10th, 2013 (02:10 AM).
totodile493's Avatar
totodile493
Person
 
Join Date: Apr 2011
Gender: Male
Nature: Quiet
Spoiler:

#dynamic 0x800300
#org @start
checkflag 0x901
if 0x0 goto @go
checkflag 0x900
if 0x1 goto @srs
trainerbattle 0x0 0x1 0x0 @see @defeat
msgbox @loser 0x6
setflag 0x900
end

#org @go
= Move along, sir.
end

#org @srs
= (He doesn't look too good...)
end

#org @see
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org @defeat
= Agh! My poor old heart!

#org @loser
= Seriously! Get an ambulance,\nplease!


So what I want to happen is, if flag 901 isn't activated (it becomes activated elsewhere), the script continues execution from @go. If it is, a trainer battle ensues. After the battle is done, flag 900 is set and if he is talked to again, script continues execution from @srs.
What happens instead is, for some odd reason, the script compiles into this:

Spoiler:

'---------------
#org 0x800300
checkflag 0x901
if 0x0 goto 0x880032D
checkflag 0x900
if 0x1 goto 0x8800340
trainerbattle 0x0 0x1 0x0 0x8800360 0x88003BA
msgbox 0x88003D4 MSG_NORMAL '"Seriously! Get an ambulance,\nplea..."
setflag 0x900
end

'---------------
#org 0x80032D
textcolor 0xE3
'---------------
#org 0x800340
trainerbattle 0xC2 0xD9 0xE3D8 0xB4E2E7D9 0xE3E000E8

'---------
' Strings
'---------
#org 0x800360
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org 0x8003BA
= Agh! My poor old heart!

#org 0x8003D4
= Seriously! Get an ambulance,\nplease!


As you can see, @go is gone and turns into that uselessness. What happens in the game is, when I click on the guy, all that happens is the "ding" select sound and nothing else. I'm not even locked to him.
  #8362    
Old June 10th, 2013 (02:47 AM).
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by totodile493:
Spoiler:

#dynamic 0x800300
#org @start
checkflag 0x901
if 0x0 goto @go
checkflag 0x900
if 0x1 goto @srs
trainerbattle 0x0 0x1 0x0 @see @defeat
msgbox @loser 0x6
setflag 0x900
end

#org @go
= Move along, sir.
end

#org @srs
= (He doesn't look too good...)
end

#org @see
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org @defeat
= Agh! My poor old heart!

#org @loser
= Seriously! Get an ambulance,\nplease!


So what I want to happen is, if flag 901 isn't activated (it becomes activated elsewhere), the script continues execution from @go. If it is, a trainer battle ensues. After the battle is done, flag 900 is set and if he is talked to again, script continues execution from @srs.
What happens instead is, for some odd reason, the script compiles into this:

Spoiler:

'---------------
#org 0x800300
checkflag 0x901
if 0x0 goto 0x880032D
checkflag 0x900
if 0x1 goto 0x8800340
trainerbattle 0x0 0x1 0x0 0x8800360 0x88003BA
msgbox 0x88003D4 MSG_NORMAL '"Seriously! Get an ambulance,\nplea..."
setflag 0x900
end

'---------------
#org 0x80032D
textcolor 0xE3
'---------------
#org 0x800340
trainerbattle 0xC2 0xD9 0xE3D8 0xB4E2E7D9 0xE3E000E8

'---------
' Strings
'---------
#org 0x800360
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org 0x8003BA
= Agh! My poor old heart!

#org 0x8003D4
= Seriously! Get an ambulance,\nplease!


As you can see, @go is gone and turns into that uselessness. What happens in the game is, when I click on the guy, all that happens is the "ding" select sound and nothing else. I'm not even locked to him.
First of all, unless you used Jambo's flag hack, no flags over 900. (If you did use it, that info is necessary to share with your script) The problem is the "end" after @srs and @go. Here is a fix:

Code:
#dynamic 0x800300
#org @start
checkflag 0x901
if 0x0 goto @go
checkflag 0x900
if 0x1 goto @srs
trainerbattle 0x0 0x1 0x0 @see @defeat
msgbox @loser 0x6
setflag 0x900
end

#org @go
= Move along, sir.

#org @srs
= (He doesn't look too good...)

#org @see
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org @defeat
= Agh! My poor old heart!

#org @loser
= Seriously! Get an ambulance,\nplease!
__________________

Paired with Simba
  #8363    
Old June 10th, 2013 (09:31 AM).
totodile493's Avatar
totodile493
Person
 
Join Date: Apr 2011
Gender: Male
Nature: Quiet
Quote originally posted by karatekid552:
First of all, unless you used Jambo's flag hack, no flags over 900. (If you did use it, that info is necessary to share with your script) The problem is the "end" after @srs and @go. Here is a fix:

Code:
#dynamic 0x800300
#org @start
checkflag 0x901
if 0x0 goto @go
checkflag 0x900
if 0x1 goto @srs
trainerbattle 0x0 0x1 0x0 @see @defeat
msgbox @loser 0x6
setflag 0x900
end

#org @go
= Move along, sir.

#org @srs
= (He doesn't look too good...)

#org @see
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org @defeat
= Agh! My poor old heart!

#org @loser
= Seriously! Get an ambulance,\nplease!
You got most of it to work, but it compiles into this:
Spoiler:

'---------------
#org 0x800300
checkflag 0x8C4
if 0x0 goto 0x880032D
checkflag 0x8C3
if 0x1 goto 0x8800340
trainerbattle 0x0 0x1 0x0 0x8800360 0x88003BA
msgbox 0x88003D4 MSG_NORMAL '"Seriously! Get an ambulance,\nplea..."
setflag 0x8C3
end

'---------------
#org 0x80032D
textcolor 0xE3
'---------------
#org 0x800340
trainerbattle 0xC2 0xD9 0xE3D8 0xB4E2E7D9 0xE3E000E8

'---------
' Strings
'---------
#org 0x800360
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org 0x8003BA
= Agh! My poor old heart!

#org 0x8003D4
= Seriously! Get an ambulance,\nplease!

so if I click on him before flag 8C4 is set, all that happens is the "ding" click sound. :\
I'm beginning to think this isn't really user error.
  #8364    
Old June 10th, 2013 (01:01 PM).
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by totodile493:
You got most of it to work, but it compiles into this:
Spoiler:

'---------------
#org 0x800300
checkflag 0x8C4
if 0x0 goto 0x880032D
checkflag 0x8C3
if 0x1 goto 0x8800340
trainerbattle 0x0 0x1 0x0 0x8800360 0x88003BA
msgbox 0x88003D4 MSG_NORMAL '"Seriously! Get an ambulance,\nplea..."
setflag 0x8C3
end

'---------------
#org 0x80032D
textcolor 0xE3
'---------------
#org 0x800340
trainerbattle 0xC2 0xD9 0xE3D8 0xB4E2E7D9 0xE3E000E8

'---------
' Strings
'---------
#org 0x800360
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org 0x8003BA
= Agh! My poor old heart!

#org 0x8003D4
= Seriously! Get an ambulance,\nplease!

so if I click on him before flag 8C4 is set, all that happens is the "ding" click sound. :\
I'm beginning to think this isn't really user error.
Oh my god, I had just gotten up and I didn't read your script properly. This is definitely user error. You are trying to display text without a command. Here:

Code:
#dynamic 0x800300
#org @start
checkflag 0x901
if 0x0 goto @go
checkflag 0x900
if 0x1 goto @srs
trainerbattle 0x0 0x1 0x0 @see @defeat
msgbox @loser 0x6
setflag 0x900
end

#org @go
msgbox @gotext 0x2
End

#org @gotext
= Move along, sir.

#org @srs
msgbox @srstext 0x2
End

#org @srstext
= (He doesn't look too good...)

#org @see
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org @defeat
= Agh! My poor old heart!

#org @loser
= Seriously! Get an ambulance,\nplease!
Look up the msgbox command.
__________________

Paired with Simba
  #8365    
Old June 12th, 2013 (11:49 AM).
totodile493's Avatar
totodile493
Person
 
Join Date: Apr 2011
Gender: Male
Nature: Quiet
Spoiler:
Quote originally posted by karatekid552:
Oh my god, I had just gotten up and I didn't read your script properly. This is definitely user error. You are trying to display text without a command. Here:

Code:
#dynamic 0x800300
#org @start
checkflag 0x901
if 0x0 goto @go
checkflag 0x900
if 0x1 goto @srs
trainerbattle 0x0 0x1 0x0 @see @defeat
msgbox @loser 0x6
setflag 0x900
end

#org @go
msgbox @gotext 0x2
End

#org @gotext
= Move along, sir.

#org @srs
msgbox @srstext 0x2
End

#org @srstext
= (He doesn't look too good...)

#org @see
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org @defeat
= Agh! My poor old heart!

#org @loser
= Seriously! Get an ambulance,\nplease!
Look up the msgbox command.


I mean I did do that, and after I compiled it into the game, I re-opened the script offset to find it changed. I re-did it anyway using what you did, and this is what it compiled into yet again:

Spoiler:

'---------------
#org 0x800300
checkflag 0x8C4
if 0x0 goto 0x880032D
checkflag 0x8C3
if 0x1 goto 0x8800340
trainerbattle 0x0 0x1 0x0 0x8800360 0x88003BA
msgbox 0x88003D4 MSG_NORMAL '"Seriously! Get an ambulance,\nplea..."
setflag 0x8C3
end

'---------------
#org 0x80032D
textcolor 0xE3
'---------------
#org 0x800340
trainerbattle 0xC2 0xD9 0xE3D8 0xB4E2E7D9 0xE3E000E8

'---------
' Strings
'---------
#org 0x800360
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org 0x8003BA
= Agh! My poor old heart!

#org 0x8003D4
= Seriously! Get an ambulance,\nplease!
  #8366    
Old June 12th, 2013 (01:49 PM).
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by totodile493:
Spoiler:



I mean I did do that, and after I compiled it into the game, I re-opened the script offset to find it changed. I re-did it anyway using what you did, and this is what it compiled into yet again:

Spoiler:

'---------------
#org 0x800300
checkflag 0x8C4
if 0x0 goto 0x880032D
checkflag 0x8C3
if 0x1 goto 0x8800340
trainerbattle 0x0 0x1 0x0 0x8800360 0x88003BA
msgbox 0x88003D4 MSG_NORMAL '"Seriously! Get an ambulance,\nplea..."
setflag 0x8C3
end

'---------------
#org 0x80032D
textcolor 0xE3
'---------------
#org 0x800340
trainerbattle 0xC2 0xD9 0xE3D8 0xB4E2E7D9 0xE3E000E8

'---------
' Strings
'---------
#org 0x800360
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org 0x8003BA
= Agh! My poor old heart!

#org 0x8003D4
= Seriously! Get an ambulance,\nplease!
Well, I just copied and pasted what I sent you, and after compiling, it looks like this:

Spoiler:
'---------------
#org 0x800300
checkflag 0x901
if 0x0 goto 0x880032D
checkflag 0x900
if 0x1 goto 0x880034A
trainerbattle 0x0 0x1 0x0 0x8800374 0x88003CE
msgbox 0x88003E8 MSG_NORMAL '"Seriously! Get an ambulance,\nplea..."
setflag 0x900
end

'---------------
#org 0x80032D
msgbox 0x8800337 MSG_FACE '"Move along, sir."
end

'---------------
#org 0x80034A
msgbox 0x8800354 MSG_FACE '"(He doesn't look too good...)"
end


'---------
' Strings
'---------
#org 0x800374
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org 0x8003CE
= Agh! My poor old heart!

#org 0x8003E8
= Seriously! Get an ambulance,\nplease!

#org 0x800337
= Move along, sir.

#org 0x800354
= (He doesn't look too good...)


So, I think you aren't doing something right. Try to compile this again, and make sure to change the offset in A-Map:

Code:
#dynamic 0x800300
#org @start
checkflag 0x901
if 0x0 goto @go
checkflag 0x900
if 0x1 goto @srs
trainerbattle 0x0 0x1 0x0 @see @defeat
msgbox @loser 0x6
setflag 0x900
end

#org @go
msgbox @gotext 0x2
End

#org @gotext
= Move along, sir.

#org @srs
msgbox @srstext 0x2
End

#org @srstext
= (He doesn't look too good...)

#org @see
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org @defeat
= Agh! My poor old heart!

#org @loser
= Seriously! Get an ambulance,\nplease!
__________________

Paired with Simba
  #8367    
Old June 12th, 2013 (07:03 PM).
totodile493's Avatar
totodile493
Person
 
Join Date: Apr 2011
Gender: Male
Nature: Quiet
Spoiler:

Quote originally posted by karatekid552:
Well, I just copied and pasted what I sent you, and after compiling, it looks like this:

Spoiler:
'---------------
#org 0x800300
checkflag 0x901
if 0x0 goto 0x880032D
checkflag 0x900
if 0x1 goto 0x880034A
trainerbattle 0x0 0x1 0x0 0x8800374 0x88003CE
msgbox 0x88003E8 MSG_NORMAL '"Seriously! Get an ambulance,\nplea..."
setflag 0x900
end

'---------------
#org 0x80032D
msgbox 0x8800337 MSG_FACE '"Move along, sir."
end

'---------------
#org 0x80034A
msgbox 0x8800354 MSG_FACE '"(He doesn't look too good...)"
end


'---------
' Strings
'---------
#org 0x800374
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org 0x8003CE
= Agh! My poor old heart!

#org 0x8003E8
= Seriously! Get an ambulance,\nplease!

#org 0x800337
= Move along, sir.

#org 0x800354
= (He doesn't look too good...)


So, I think you aren't doing something right. Try to compile this again, and make sure to change the offset in A-Map:

Code:
#dynamic 0x800300
#org @start
checkflag 0x901
if 0x0 goto @go
checkflag 0x900
if 0x1 goto @srs
trainerbattle 0x0 0x1 0x0 @see @defeat
msgbox @loser 0x6
setflag 0x900
end

#org @go
msgbox @gotext 0x2
End

#org @gotext
= Move along, sir.

#org @srs
msgbox @srstext 0x2
End

#org @srstext
= (He doesn't look too good...)

#org @see
= I didn't lose my legs in 'Nam\nso illegal filth like you can\lfreeload off of MY country!

#org @defeat
= Agh! My poor old heart!

#org @loser
= Seriously! Get an ambulance,\nplease!


That... that actually compiled perfectly. WTF?

Anyway, would you happen to know of any way to make it so a trainer doesn't approach you unless a flag is set? Currently, the guy doesn't approach you no matter what.
  #8368    
Old June 13th, 2013 (02:46 AM).
karatekid552's Avatar
karatekid552
What happens if I push it?....
 
Join Date: Nov 2012
Location: Do you really want to know? Really?
Gender: Male
Nature: Bold
Send a message via AIM to karatekid552 Send a message via Windows Live Messenger to karatekid552 Send a message via Skype™ to karatekid552
Quote originally posted by totodile493:

That... that actually compiled perfectly. WTF?
I think you compiled it, then looked at the old offset by mistake, and didn't realize it. I have done that many timed.

Quote originally posted by totodile493:
Anyway, would you happen to know of any way to make it so a trainer doesn't approach you unless a flag is set? Currently, the guy doesn't approach you no matter what.
Checkflag 0xXXX
If 0x1 goto @trainer_walk_forward_and_battle

Done. Put that at the begining of the script. This will not work unless it is in a script tile or map script. It can't be attached to a regular OW.
__________________

Paired with Simba
  #8369    
Old June 13th, 2013 (09:41 AM).
Crocky's Avatar
Crocky
SuperScarlet!
 
Join Date: Feb 2009
This script is for FireRed. For some reason it works, but it doesn't set the flag so it doesn't repeat and the characters all re appear after you take one step. I can't figure out why this is happening.
I also used advancemap and put the Var Number as 1945, unknown as 3.
For the characters I put person ID as 1945.

Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x1945
if 0x1 goto @end
hidesprite 0x5
playsong 0x11B 0x0
applymovement 0x4 @move
waitmovement 0x0
msgbox @1 0x6
applymovement 0x6 @move2
waitmovement 0x0
msgbox @2 0x6
applymovement 0x4 @move3
waitmovement 0x0
msgbox @3 0x6
applymovement 0x4 @move4
waitmovement 0x0
msgbox @4 0x6
trainerbattle 0x1 0x051 0x0 @before @after @later
end

#org @later
setflag 0x1945
playsong 0x11B 0x0
applymovement 0x4 @move5
waitmovement 0x0
msgbox @5 0x6
playsong 0x109 0x0
msgbox @6 0x6
applymovement 0x1 @move6
waitmovement 0x0
msgbox @7 0x6
msgbox @8 0x6
applymovement 0x3 @move7
waitmovement 0x0
hidesprite 0x3
applymovement 0x4 @move15
showsprite 0x5
applymovement 0x5 @move14
waitmovement 0x0
msgbox @9 0x6
msgbox @10 0x6
applymovement 0x4 @move8
waitmovement 0x0
hidesprite 0x4
applymovement 0x5 @move9
waitmovement 0x0
msgbox @11 0x6
applymovement 0x5 @move10
waitmovement 0x0
hidesprite 0x5
applymovement 0x6 @move11
waitmovement 0x0
msgbox @12 0x6
applymovement 0x7 @move12
waitmovement 0x0
msgbox @13 0x6
applymovement 0x7 @move13
waitmovement 0x0
msgbox @14 0x6
fadescreen 0x1
fadescreen 0x0
hidesprite 0x6
hidesprite 0x7
fadesong 0x0
setflag 0x827
release
end

#org @end
release
end

#org @1
= [blue_fr]???: Its simple.\pHand over the deed to the\nfarm and no one gets hurt.

#org @2
= [blue_fr]Man: No!\pThis is me and my Wife's\nplace.\pAin't no hooligan like yourself\ngoing to get your filthy\lpaws on the deed!

#org @3
= [blue_fr]???: Alrighty then...\pI will use force!

#org @4
= [blue_fr]???: Whats this?\pSome kid wants to interfere?\p....\p...\pSo you say your from the Dragon\nClan?\pThen you are my enemy!

#org @before
= [blue_fr]???: Who am I you ask?\pI am a member of Team Rocket!\pI challenge you to\na battle!\pWhen I win, you scram!

#org @after
= What in tarnation?\pWhat are you?

#org @5
= [blue_fr]Rocket: It doesn't matter\nthat I lost!\pGramps, give up your\nfarm!

#org @6
= [blue_fr]???:Thats enough of that,\nRocket!

#org @7
= [blue_fr]Rocket: Huh?

#org @8
= [red_fr]Woman: Look at that rock!

#org @9
= [blue_fr]As a member of the Dragon\nClan, and a member\lof the international police..\pI place you under arrest!

#org @10
= [blue_fr]Rocket: Ermm!\pCya!

#org @11
= [blue_fr]DragonClan Agent: Nice\nwork [player]!\pI must give chase to the\nRocket!\pI'll tell Lance what\nhappened here!

#org @12
= [blue_fr]Man: Hmm.\pI don't understand what just\nhappened, but your a hero!

#org @13
= [red_fr]Woman: Come Husband.\pWe will go back to our house.

#org @14
= [red_fr]Kid, thanks for saving our\nkeester!\pCome visit anytime, and\nfeel free to explore the ranch!

#org @move
#raw 0x23
#raw 0xFE

#org @move2
#raw 0x24
#raw 0xFE

#org @move3
#raw 0x23
#raw 0xFE

#org @move4
#raw 0x62
#raw 0x13
#raw 0x13
#raw 0xFE

#org @move5
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0xFE

#org @move6
#raw 0x62
#raw 0x2
#raw 0x3
#raw 0x1
#raw 0x0
#raw 0xFE

#org @move7
#raw 0x52
#raw 0x52
#raw 0x54
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0xFE

#org @move8
#raw 0x62
#raw 0x10
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0xFE

#org @move9
#raw 0x3
#raw 0xFE

#org @move10
#raw 0x10
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0xFE

#org @move11
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0xFE

#org @move12
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x1
#raw 0xFE

#org @move13
#raw 0x3
#raw 0xFE

#org @move14
#raw 0x2
#raw 0x12
#raw 0x12
#raw 0xFE

#org @move15
#raw 0x3
#raw 0xFE
__________________
How to Breed Perfect Pokemon in Omega Ruby and Alpha Sapphire!
How to EV Train in Omega Ruby and Alpha Sapphire!
  #8370    
Old June 13th, 2013 (11:06 AM).
Spherical Ice's Avatar
Spherical Ice
 
Join Date: Nov 2007
Location: UK
Send a message via Skype™ to Spherical Ice
Unless you've applied Jambo51's extended flag hack, use the flags listed in karatekid's tutorial in the tutorials section instead.
__________________
  #8371    
Old June 20th, 2013 (03:06 PM).
Savage messiah
Unhatched Egg
 
Join Date: Jun 2013
Gender: Male
Can Somebody Please Help With My Script, It Keeps Doing Something Weird, Every Time I Compile It Then Re open It It Says Something Completely Different, Its supposed To Have An NPC Walk Up, Look Up, Wait, Walk Right, Look Up, Wait, Walk Left, Walk Down Look Up And Speak To Other NPC's I Cant Figure Out Whats Wrong But It Keeps Screwing Up In Multiple Ways Please Help And Thank You!

'---------------
#org 0x6B7FD8

#dynamic 0x6B7FD8

checkflag 0x1000
if 0x1 call @next
compare PLAYERFACING 0x1
if 0x1 goto 0x8123456
closeonkeypress
setflag 0x60
compare PLAYERFACING 0x3
if 0x1 call 0x81A38C3
compare PLAYERFACING 0x4
if 0x1 call 0x81A38C3
compare PLAYERFACING 0x2
if 0x1 call 0x81A38C3
msgbox 0x81A35C5 MSG_KEEPOPEN '"In honor for what you two have\nDo..."
release
end

#org @123456
msgbox @msg 0x2
release
end

#org @1A38C3
applymovement LASTTALKED 0x123654
msgbox @msg2 0x2
release
end

#org @next
faceplayer
msgbox @msg3 0x2
release
end

'-----------
'Strings
'-----------
#org @msg
= MOVE!

#org @msg2
= In honor for what you two have\nDone...I present you\pThe Badge Of Heroism!\pYou two have done the kingdom\nA great favore and I shall personally\pSee to it that you two are promoted\ntoo the highest ranking knights\p.... I thank you for everything!

#org @msg3
= Don't you dare even speak to me!\nThis wouldn't have happened\pif it weren't for you.\I hope your satisfied!

'-----------
' Movements
'-----------
#org @123654
#raw 0x5 'Step Up (Slow)
#raw 0x1 'Face Up
#raw 0x14 'Delay5
#raw 0x1 'Face Up
#raw 0x14 'Delay5
#raw 0x7 'Step Right (Slow)
#raw 0x1 'Face Up
#raw 0x14 'Delay5
#raw 0x1 'Face Up
#raw 0x1 'Face Up
#raw 0x6 'Step Left (Slow)
#raw 0x4 'Step Down (Slow)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
  #8372    
Old June 20th, 2013 (03:55 PM).
GoGoJJTech's Avatar
GoGoJJTech
http://GoGoJJTech.com (WIP!)
Community Supporter
 
Join Date: Nov 2012
Location: Earth
Age: 16
Gender: Male
Nature: Quiet
Quote originally posted by Savage messiah:
'---------------
#org 0x6B7FD8

#dynamic 0x6B7FD8

checkflag 0x1000 use a different flag
if 0x1 call @next
compare PLAYERFACING 0x1
if 0x1 goto @123456
closeonkeypress
setflag 0x60
compare PLAYERFACING 0x3
if 0x1 call @1A38C3
compare PLAYERFACING 0x4
if 0x1 call @1A38C3
compare PLAYERFACING 0x2
if 0x1 call @1A38C3
msgbox @1A35C5 MSG_KEEPOPEN '"In honor for what you two have\nDo..."
release
end

#org @123456
msgbox @msg 0x2
release
end

#org @1A38C3
applymovement LASTTALKED 0x123654
msgbox @msg2 0x2
release
end

#org @next
faceplayer
msgbox @msg3 0x2
release
end

'-----------
'Strings
'-----------
#org @msg
= MOVE!

#org @msg2
= In honor for what you two have\nDone...I present you\pThe Badge Of Heroism!\pYou two have done the kingdom\nA great favore and I shall personally\pSee to it that you two are promoted\ntoo the highest ranking knights\p.... I thank you for everything!

#org @msg3
= Don't you dare even speak to me!\nThis wouldn't have happened\pif it weren't for you.\I hope your satisfied!

'-----------
' Movements
'-----------
#org @123654
#raw 0x5 'Step Up (Slow)
#raw 0x1 'Face Up
#raw 0x14 'Delay5
#raw 0x1 'Face Up
#raw 0x14 'Delay5
#raw 0x7 'Step Right (Slow)
#raw 0x1 'Face Up
#raw 0x14 'Delay5
#raw 0x1 'Face Up
#raw 0x1 'Face Up
#raw 0x6 'Step Left (Slow)
#raw 0x4 'Step Down (Slow)
#raw 0x1 'Face Up
#raw 0xFE 'End of Movements
The problem is that you called offset 123456 which does not contain your script! That's data already used by Gamefreak. You could corrupt something important by overwriting data used by Gamefreak. Offsets 720000 and forward are not, except for the EC0000's.
__________________
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
The SoulSilver Music Patch - The Black Music Patch - Mega-Huge Sappy Tutorial
Romhack.me Profile - Pokecommunity Profile - Pokemonhackersonline Profile - Youtube Channel

Join us in the romhacking chat
Pokémon Platinum Red and Blue
  #8373    
Old June 20th, 2013 (04:16 PM). Edited June 20th, 2013 by pokefreake.
pokefreake's Avatar
pokefreake
 
Join Date: Nov 2012
Gender: Male
Whenever I try to add scripts to Leaf Green they wont save. How exactly do you add scripts to the game using pksv? I understand how to make them and how to edit the ones that are already in the game, but not how to add them. What do I do after I add the person in advance map and make the script?
  #8374    
Old June 20th, 2013 (05:41 PM).
GoGoJJTech's Avatar
GoGoJJTech
http://GoGoJJTech.com (WIP!)
Community Supporter
 
Join Date: Nov 2012
Location: Earth
Age: 16
Gender: Male
Nature: Quiet
Use XSE and A FR ROM. Nobody will play your hack if it's LG. Plus EVERYTHING on here is for FR, not LG. That's a start.
__________________
I believe in Jesus Christ my Savior. If you do too, and aren't scared to admit it, then copy and paste this into your signature.
The SoulSilver Music Patch - The Black Music Patch - Mega-Huge Sappy Tutorial
Romhack.me Profile - Pokecommunity Profile - Pokemonhackersonline Profile - Youtube Channel

Join us in the romhacking chat
Pokémon Platinum Red and Blue
  #8375    
Old June 20th, 2013 (07:05 PM).
pokefreake's Avatar
pokefreake
 
Join Date: Nov 2012
Gender: Male
Ok I got xse and a fr rom, but what do I do after I compile the script?
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

Forum Jump


All times are UTC -8. The time now is 09:16 AM.