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
  #6951    
Old June 8th, 2012, 12:30 PM
vanillagfx's Avatar
vanillagfx
Togepi
 
Join Date: May 2012
Gender: Male
Okay got it to work I'll bookmark this If I have any other problems with flags.
__________________

Youtube Channel.

Last edited by vanillagfx; June 8th, 2012 at 01:26 PM.
  #6952    
Old June 10th, 2012, 05:00 PM
dcjboi's Avatar
dcjboi
With Quiet Courage
 
Join Date: Dec 2010
Location: In between Heaven and Earth
Nature: Timid
Send a message via Skype™ to dcjboi
I'm having major trouble with this script. I want It to give an option to pick up the pokemon and the thing is the message wont show it just gives the pokemon
Code:
'-----------------------
#org 0x800000
checkflag 0x228
if 0x0 goto 0x8800061
msgbox 0x880006A '"It's an injured Pokemon.\n Should I..."
checkflag 0x228
if 0x0 goto 0x8800023
msgbox 0x88000A0 '"That's okay.\pI'm sure someone else..."
release
end

'-----------------------
#org 0x800061
msgbox 0x88000D4 '"blackkfrrYou received a Charmander!"
release
end

'-----------------------
#org 0x800023
givepokemon 0xC5 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x88000D4 '"blackkfrrYou received a Charmander!"
waitfanfare
closeonkeypress
setflag 0x828
msgbox 0x88000FA '"blackkfrrWould you like to give a\n..."
checkflag 0x228
if 0x0 call 0x880005A
msgbox 0x8800137 '"I should take it to a/n Pokemon Cen..."
setflag 0x228
release
end

'-----------------------
#org 0x80005A
call 0x81A74EB
return

'-----------------------
#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
return

'---------
#org 0x80006A
= It's an injured Pokemon.\n Should I take It with me?

#org 0x8000A0
= That's okay.\pI'm sure someone else will\ntake it.

#org 0x8000D4
= blackkfrrYou received a Charmander!

#org 0x8000FA
= blackkfrrWould you like to give a\nnickname to Charmander?

#org 0x800137
= I should take it to a/n Pokemon Center.
__________________

  #6953    
Old June 10th, 2012, 05:25 PM
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 15
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
@dcjboi

Here I edited your script i highlighted the parts that i edited....

Quote:
#dynamic 0x800000

#org @start
lock
msgbox 0x880006A 0x5 '"It's an injured Pokemon.\n Should I..."
compare 0x800D 0x1
if 0x1 goto 0x800023
compare 0x800D 0x0
if 0x1 goto 0x800061

end

#org 0x800061
msgbox 0x88000A0 0x6 '"That's okay.\pI'm sure someone else..."
release
end

#org 0x800023
givepokemon 0xC5 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x88000D4 0x6
waitfanfare
closeonkeypress
setflag 0x828
msgbox 0x88000FA 0x5
compare 0x800D 0x1
if 0x1 goto 0x80005A
compare 0x800D 0x0
if 0x1 goto @continue
release

end

#org @continue
msgbox 0x8800137 0x6 '"I should take it to a/n Pokemon Cen..."
hidesprite 0x(Person Event no.)
setflag 0x228
release
end

#org 0x80005A
call 0x81A74EB
return

#org 0x1A74EB
fadescreen 0x1
special 0x9E
waitstate
goto @continue

#org 0x80006A
= It's an injured Pokemon.\n Should I take It with me?

#org 0x8000A0
= That's okay.\pI'm sure someone else will\ntake it.

#org 0x8000D4
= [black_fr]You received a Charmander!

#org 0x8000FA
= [black_fr]Would you like to give a\nnickname to Charmander?

#org 0x800137
= I should take it to a/n Pokemon Center.
You didn't put any msgbox codes in it that's why it didn't worked....

msgbox codes

0x2 - Normal msgbox that automatically has faceplayer
0x3 - Signpost msgbox
0x4 - Normal msgbox
0x5 - Yes\No msgbox
0x6 - Normal msgbox


hidesprite 0x(Person event. no.) - hides the sprite

Try putting this script on a POKE BALL with a flag of 228 and input it's person event no. in the hidesprite..... :D

Hope this helps.. :D
__________________
  #6954    
Old June 11th, 2012, 06:43 PM
Renegade's Avatar
Renegade
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
I'm having a strange problem with this script. Everything works, except for the "warp" command at the end. When it "warps" me, the screen fades to black and then nothing happens. (Like the game freezes on a black screen and doesn't go to map 3.46) Help please?

Code:
#dynamic 0x800120

#org @start
lock
textcolor 0x0
message @t1 4
closeonkeypress
applymovement 0xFF @m2
waitmovement 0x0
applymovement 4 @m1
waitmovement 0x0
applymovement 0xFF @m3
waitmovement 0x0
message @t2 6
applymovement 4 @m4
applymovement 0xFF @m5
waitmovement 0x0
message @t3 6
applymovement 5 @m6
applymovement 6 @m6
waitmovement 0x0
playsong 0x112 0x0
setweather 0x3
doweather
applymovement 5 @m7
applymovement 6 @m7
message @t4 6
message @t5 6
applymovement 5 @m8
applymovement 6 @m8
waitmovement 0x0
message @t6 6
applymovement 5 @m9
applymovement 6 @m9
message @t7 4
waitmovement 0x0
fadescreen 0x1
hidesprite 0x04
setflag 0x1203
hidesprite 0x05
setflag 0x1204
hidesprite 0x06
setflag 0x1205
fadescreen 0x0
warp 0x3 0x46 0xFF 0x0C 0x0C
setvar 0x6004 0x0001
release
end

#org @t1
= ???: Hey! \v\h01!

#org @m1
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1E
#raw 0xFE

#org @m2
#raw 0x3
#raw 0xFE

#org @m3
#raw 0x0
#raw 0xFE

#org @t2
= \v\h06: I was wondering when\nyou would wake up.\pI want to head over to Professor\nOak's place and ask if I can have my\lPokèmon yet. We can go together!\pCome on!

#org @m4
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x62
#raw 0xFE

#org @m5
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x62
#raw 0x11
#raw 0x13
#raw 0xFE

#org @t3
= \v\h06: Who are those people...?

#org @m6
#raw 0x62
#raw 0x2
#raw 0xFE

#org @m7
#raw 0x12
#raw 0x12
#raw 0xFE

#org @t4
= Man: Hm? What do you kids want?\pAre you eavesdropping on us?

#org @t5
= \v\h06: No. I mean, uhh...

#org @m8
#raw 0x23
#raw 0xFE

#org @t6
= Man: Enough! Take them away,\nGrunt!

#org @m9
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @t7
= \v\h06: Wait!
  #6955    
Old June 11th, 2012, 06:51 PM
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 15
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
Quote:
Originally Posted by CrystalStatic View Post
I'm having a strange problem with this script. Everything works, except for the "warp" command at the end. When it "warps" me, the screen fades to black and then nothing happens. (Like the game freezes on a black screen and doesn't go to map 3.46) Help please?

Code:
#dynamic 0x800120

#org @start
lock
textcolor 0x0
message @t1 4
closeonkeypress
applymovement 0xFF @m2
waitmovement 0x0
applymovement 4 @m1
waitmovement 0x0
applymovement 0xFF @m3
waitmovement 0x0
message @t2 6
applymovement 4 @m4
applymovement 0xFF @m5
waitmovement 0x0
message @t3 6
applymovement 5 @m6
applymovement 6 @m6
waitmovement 0x0
playsong 0x112 0x0
setweather 0x3
doweather
applymovement 5 @m7
applymovement 6 @m7
message @t4 6
message @t5 6
applymovement 5 @m8
applymovement 6 @m8
waitmovement 0x0
message @t6 6
applymovement 5 @m9
applymovement 6 @m9
message @t7 4
waitmovement 0x0
fadescreen 0x1
hidesprite 0x04
setflag 0x1203
hidesprite 0x05
setflag 0x1204
hidesprite 0x06
setflag 0x1205
fadescreen 0x0
warp 0x3 0x46 0xFF 0x0C 0x0C
setvar 0x6004 0x0001
release
end

#org @t1
= ???: Hey! \v\h01!

#org @m1
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1E
#raw 0xFE

#org @m2
#raw 0x3
#raw 0xFE

#org @m3
#raw 0x0
#raw 0xFE

#org @t2
= \v\h06: I was wondering when\nyou would wake up.\pI want to head over to Professor\nOak's place and ask if I can have my\lPokèmon yet. We can go together!\pCome on!

#org @m4
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x62
#raw 0xFE

#org @m5
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x13
#raw 0x62
#raw 0x11
#raw 0x13
#raw 0xFE

#org @t3
= \v\h06: Who are those people...?

#org @m6
#raw 0x62
#raw 0x2
#raw 0xFE

#org @m7
#raw 0x12
#raw 0x12
#raw 0xFE

#org @t4
= Man: Hm? What do you kids want?\pAre you eavesdropping on us?

#org @t5
= \v\h06: No. I mean, uhh...

#org @m8
#raw 0x23
#raw 0xFE

#org @t6
= Man: Enough! Take them away,\nGrunt!

#org @m9
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @t7
= \v\h06: Wait!
Like i told you in thethethe;s tut just they're on HEX!
That means it should be 0x2E!

So your warp code will be warp 0x3 0x2E 0xFF 0x0C 0x0C!

Hex is like this

1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
10
11
12
13
14
15
16
17
18
19
1A
1B
.........And so on.... you use XSE so just use the converter there...
__________________
  #6956    
Old June 11th, 2012, 07:00 PM
Renegade's Avatar
Renegade
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
Quote:
Originally Posted by tajaros View Post
Like i told you in thethethe;s tut just they're on HEX!
That means it should be 0x2E!

So your warp code will be warp 0x3 0x2E 0xFF 0x0C 0x0C!

Hex is like this

1
2
3
4
5
6
7
8
9
A
B
C
D
E
F
10
11
12
13
14
15
16
17
18
19
1A
1B
.........And so on.... you use XSE so just use the converter there...
Oh, lol. Forgot :/ Thanks though!

Last edited by Renegade; June 11th, 2012 at 09:31 PM. Reason: Your double post has been automatically merged.
  #6957    
Old June 12th, 2012, 11:45 AM
vladi1q1's Avatar
vladi1q1
Mapper 7/10
 
Join Date: Sep 2007
Location: Bulgaria
Gender:
Nature: Adamant
Send a message via Windows Live Messenger to vladi1q1 Send a message via Skype™ to vladi1q1
Game: Pokemon Ruby
Program: XSE
Problem: I put it as a [S] tile in Advanced-Map but when I enter in game and step on it the game freezes.
Code:
Code:
'-----------------------
#org 0x6B1840
lockall
msgbox 0x86B1862 '"Lady: You shouldn't go in the\nfore..."
callstd 0x4
closeonkeypress
applymovement MOVE_PLAYER 0x86B189F
waitmovement 0x0
releaseall
end


'-----------
' Movements
'-----------
#org 0x6B189F
#raw 8 'Step Down (Normal)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x6B1862
= Lady: You shouldn't go in the\nforest yet.
__________________
  #6958    
Old June 12th, 2012, 12:50 PM
Renegade's Avatar
Renegade
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
Quote:
Originally Posted by vladi1q1 View Post
Game: Pokemon Ruby
Program: XSE
Problem: I put it as a [S] tile in Advanced-Map but when I enter in game and step on it the game freezes.
Code:
Code:
'-----------------------
#org 0x6B1840
lockall
msgbox 0x86B1862 '"Lady: You shouldn't go in the\nfore..."
callstd 0x4
closeonkeypress
applymovement MOVE_PLAYER 0x86B189F
waitmovement 0x0
releaseall
end

'-----------
' Movements
'-----------
#org 0x6B189F
#raw 8 'Step Down (Normal)
#raw FE 'End of Movements


'---------
' Strings
'---------
#org 0x6B1862
= Lady: You shouldn't go in the\nforest yet.
There is an absence of a "setvar" command at the end of the script. If you don't know about this, there are several tutorials on vars in the tutorials section.
  #6959    
Old June 12th, 2012, 12:53 PM
zova
Beginning Trainer
 
Join Date: Jun 2012
Gender: Male
Honestly, Im confused, I make a new event, now how Do i add my own script to that event? I need all steps please

Its Fire Red btw
  #6960    
Old June 12th, 2012, 01:42 PM
Renegade's Avatar
Renegade
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
Quote:
Originally Posted by zova View Post
Honestly, Im confused, I make a new event, now how Do i add my own script to that event? I need all steps please

Its Fire Red btw
So you don't know about scripting at all? I suggest you practice and start with the basics in the tutorials section or something...
  #6961    
Old June 12th, 2012, 01:46 PM
zova
Beginning Trainer
 
Join Date: Jun 2012
Gender: Male
Ive read the tutorial twice through, and Im still a little confused, how would I go abput making a new script? I know what to write, just not how to assign it to a new event
  #6962    
Old June 12th, 2012, 02:14 PM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
Community Supporter
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by zova View Post
Ive read the tutorial twice through, and Im still a little confused, how would I go abput making a new script? I know what to write, just not how to assign it to a new event
If you're asking about how to put your new script in your ROM hack, then I have a tutorial about that here ---> http://www.pokecommunity.com/showthread.php?t=185188
__________________
  #6963    
Old June 12th, 2012, 03:44 PM
fozzy's Avatar
fozzy
Beginning Trainer
 
Join Date: Jun 2012
Location: dublin
Age: 21
Gender: Male
Nature: Relaxed
Send a message via Skype™ to fozzy
hey im new to script writing and ive been having problems, the first script i wrote was a basic one and that seemed to work fine, but then i wrote a yes/no script and problems arose.... whenever i pressed compile it said: unknown keyword 'lock' at line 4

can anyone help a noob out??
  #6964    
Old June 12th, 2012, 03:59 PM
Renegade's Avatar
Renegade
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
Quote:
Originally Posted by fozzy View Post
hey im new to script writing and ive been having problems, the first script i wrote was a basic one and that seemed to work fine, but then i wrote a yes/no script and problems arose.... whenever i pressed compile it said: unknown keyword 'lock' at line 4

can anyone help a noob out??
Can you provide the coding you did?
  #6965    
Old June 13th, 2012, 01:43 AM
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 15
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
Quote:
Originally Posted by fozzy View Post
hey im new to script writing and ive been having problems, the first script i wrote was a basic one and that seemed to work fine, but then i wrote a yes/no script and problems arose.... whenever i pressed compile it said: unknown keyword 'lock' at line 4

can anyone help a noob out??
We can't help you accurately if you don't post your script...

Try retyping the script over again you might have misspelled a command or something here's some that might happen to your script...

#dynamic 0x800000

#org @script
[]lock <--- You might have type something wrong

If that's not your problem try double checking your script for commands errors...
__________________
  #6966    
Old June 13th, 2012, 04:59 AM
fozzy's Avatar
fozzy
Beginning Trainer
 
Join Date: Jun 2012
Location: dublin
Age: 21
Gender: Male
Nature: Relaxed
Send a message via Skype™ to fozzy
#dynamic 0x800000

#org @start
lock
faceplayer
message @tutorial
boxset 5
compare LASTRESULT 1
if b_true goto @yes
compare LASTRESULT 0
if b_true goto @no
release
end

#org @tutorial
= Yes or no?

#org @yes
message @pressyes
boxset 6
release
end

#org @no
message @pressno
boxset 6
release
end

that was the script i used, then i tried a basic script again and the same problem arose again, even though i used the same script as before (that worked before too) here it is

#dynamic 0x2DD100

#org @start
lock
faceplayer
msgbox @script 0x6
release
end

#org @script
= Hey!\nYou are welcome to PALLET TOWN
  #6967    
Old June 13th, 2012, 05:31 AM
ADLFM14's Avatar
ADLFM14
Legendary Spriter
 
Join Date: May 2012
Location: EGYPT
Gender: Male
Nature: Bold
i just wanted to ask if there is a command in any script which fades screen and replace an OW Sprite with another and thnx you are always my leader in rom hacking.
__________________
My Tutorials:
Hacking Ruby Title Screen Completely Step By Step
How To Insert An OW Sprite In NSE Classic Step By Step.
Hacks I'm Currently Making


Join My Hacking Team(D.A.T.S)




My deviantART


  #6968    
Old June 13th, 2012, 03:17 PM
Renegade's Avatar
Renegade
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
Quote:
Originally Posted by ADLFM14 View Post
i just wanted to ask if there is a command in any script which fades screen and replace an OW Sprite with another and thnx you are always my leader in rom hacking.
You could, while the screen is faded, do a "hidesprite" command on the sprite you want to remove then a "showsprite" command on another person. Then when the screen fades into the normal view it will look like a character transformed or something.
  #6969    
Old June 13th, 2012, 11:54 PM
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 15
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
Quote:
Originally Posted by fozzy View Post
#dynamic 0x800000

#org @start
lock
faceplayer
message @tutorial
boxset 5
compare LASTRESULT 1
if b_true goto @yes
compare LASTRESULT 0
if b_true goto @no
release
end

#org @tutorial
= Yes or no?

#org @yes
message @pressyes
boxset 6
release
end

#org @no
message @pressno
boxset 6
release
end

that was the script i used, then i tried a basic script again and the same problem arose again, even though i used the same script as before (that worked before too) here it is

#dynamic 0x2DD100

#org @start
lock
faceplayer
msgbox @script 0x6
release
end

#org @script
= Hey!\nYou are welcome to PALLET TOWN
Of course it wouldn't work instead of using LASTRESULT try using 0x800D but if your using an older version of XSE try downloading the latest one in HACKMEW's toolbox...

LASTRESULT doesn't work for the latest version of XSE anymore...

and also in XSE we don't use b_true or b_false anymore...

b_true = 0x1
b_false = 0x0

So it would be compare 0x800D 0x1 and compare 0x800D 0x0
NOTE: XSE practically focuses in using hex..

Oh and about your msgbox XSE doesn't read boxset 0x6 anymore try using msgbox @pointer 0x6 and that also goes for boxset 5

try using hex on all your values.. :D
__________________

Last edited by tajaros; June 14th, 2012 at 12:04 AM.
  #6970    
Old June 14th, 2012, 01:03 PM
Renegade's Avatar
Renegade
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
This script was working fine until something weird happened. I made another script on a completely different map after this one, and then compiled it. Then, this script started to bug up for... really no reason... The warp at the end of the script isn't working. The whole thing works but when it warps me it goes to a black screen then freezes.

Code:
#dynamic 0x800140

#org @start
lock
faceplayer
checkflag 0x1211
if 0x01 goto @moveon
checkflag 0x1212
if 0x01 goto @moveon
checkflag 0x1213
if 0x01 goto @moveon
textcolor 0x0
message @t1 6
release
end

#org @moveon
textcolor 0x0
message @t2 6
applymovement 0xFF @m1
waitmovement 0x0
checkflag 0x1208
if 0x01 goto @charmander
checkflag 0x1209
if 0x01 goto @squirtle
checkflag 0x1210
if 0x01 goto @bulbasaur
end

#org @charmander
applymovement 6 @m2
waitmovement 0x0
hidesprite 0x04
setflag 0x1214
applymovement 6 @m5
waitmovement 0x0
message @t3 6
goto @fight

#org @squirtle
applymovement 6 @m3
waitmovement 0x0
hidesprite 0x05
setflag 0x1215
applymovement 6 @m6
waitmovement 0x0
message @t4 6
goto @fight

#org @bulbasaur
applymovement 6 @m4
waitmovement 0x0
hidesprite 0x03
setflag 0x1216
applymovement 6 @m7
waitmovement 0x0
message @t5 6
goto @fight

#org @fight
applymovement 6 @m8
applymovement 0xFF @m9
waitmovement 0x0
applymovement 9 @m10
message @t6 4
closeonkeypress
applymovement 6 @m11
applymovement 0xFF @m11
applymovement 9 @m12
waitmovement 0x0
message @t7 6
applymovement 6 @m13
applymovement 0xFF @m14
waitmovement 0x0
message @t8 6
applymovement 6 @m15
applymovement 0xFF @m15
applymovement 9 @m16
waitmovement 0x0
trainerbattle 0x09 0x01 0x0 @win @lose
message @later 6
applymovement 9 @m17
waitmovement 0x0
applymovement 9 @m18
waitmovement 0x0
hidesprite 0x09
setflag 0x1217
applymovement 0xFF @m14
applymovement 6 @m13
waitmovement 0x0
message @t9 6
applymovement 6 @m19
waitmovement 0x0
hidesprite 0x06
setflag 0x1218
applymovement 0xFF @m20
waitmovement 0x0
warp 0x4 0x3 0xFF 0x6 0x6
release
end

#org @m19
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @m20
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @t9
= \v\h01, that was awesome!\nNow let's get out of here\lbefore another creepy creep finds\lus.

#org @m18
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1E
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @m17
#raw 0x34
#raw 0xFE

#org @later
= Scientist: Err... I can't win.\nFine, leave then!

#org @win
= Ack, I can't stop you...

#org @lose
= Wow, you're really bad...

#org @m15
#raw 0x3
#raw 0xFE

#org @m16
#raw 0x1F
#raw 0xFE

#org @t8
= \v\h06: Come on, \v\h01.\pYou can do this!

#org @m13
#raw 0x1
#raw 0xFE

#org @m14
#raw 0x0
#raw 0xFE

#org @t7
= Scientist: You're not going\nanywhere!\p\v\h06: What? Fine, \v\h01\nwill destroy you, then!

#org @m12
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x1F
#raw 0xFE

#org @m11
#raw 0x3
#raw 0x62
#raw 0xFE

#org @t6
= ???: HAULT!

#org @m10
#raw 0x2
#raw 0x62
#raw 0xFE

#org @m8
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0xFE

#org @m9
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0xFE

#org @t3
= \v\h06: I chose a Charmander!\nNow let's get out of here.

#org @t4
= \v\h06: I chose a Squirtle!\nNow let's get out of here.

#org @t5
= \v\h06: I chose a Bulbasaur!\nNow let's get out of here.

#org @m5
#raw 0x12
#raw 0xFE

#org @m6
#raw 0x12
#raw 0x12
#raw 0xFE

#org @m7
#raw 0x2
#raw 0xFE

#org @m4
#raw 0x11
#raw 0xFE

#org @m3
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x1
#raw 0xFE

#org @m2
#raw 0x11
#raw 0x13
#raw 0x1
#raw 0xFE

#org @t1
= \v\h06: Go ahead and choose\na Pokèmon, \v\h01.

#org @t2
= Haha, nice choice \v\h01!\nNow it's my turn!

#org @m1
#raw 0x12
#raw 0x3
#raw 0xFE
After the warp is complete it is supposed to start a seperate script on a new map. The 2nd script is a level scripts. I don't know if maybe the 2nd script is somehow messing up the first one? Here's the 2nd one if needed:

Code:
#dynamic 0x800230

#org @start
lock
applymovement 0xFF @m1
waitmovement 0x0
textcolor 0x0
message @t1 6
fadescreen 0x1
pause 0x30
textcolor 0x2
message @t2 6
pause 0x30
fadescreen 0x0
pause 0x10
applymovement 11 @m2
waitmovement 0x0
textcolor 0x0
message @t3 6
pause 0x20
applymovement 11 @m3
waitmovement 0x0
message @t4 6
applymovement 12 @m4
applymovement 0xFF @m5
waitmovement 0x0
message @t5 6
applymovement 12 @m1
applymovement 0xFF @m1
waitmovement 0x0
message @t6 6
fadesong 0x159
message @t7 6
fadedefault
applymovement 12 @m6
applymovement 0xFF @m5
waitmovement 0x0
message @t8 6
applymovement 12 @m1
applymovement 0xFF @m1
waitmovement 0x0
message @t9 6
applymovement 12 @m7
waitmovement 0x0
hidesprite 0x12
setflag 0x1219
applymovement 0xFF @m8
waitmovement 0x0
hidesprite 0xFF
special 0x113
applymovement 0x7F @s1
waitmovement 0x0
special 0x114
message @t10 4
closeonkeypress
fadescreen 0x1
pause 0x10
warp 0x3 0x0 0x3 0x0 0x0
setvar 0x6010 0x0001
release
end

#org @t10
= Professor Oak: Hmm... Maybe I\nshould have told them... Hmm...

#org @s1
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @m8
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org @m7
#raw 0x1D
#raw 0x20
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0xFE

#org @t9
= Thanks for everything, Professor!\nSee ya!

#org @t8
= \v\h06: Yes! Let's go,\n\v\h01!

#org @m6
#raw 0x62
#raw 0x3
#raw 0xFE

#org @t7
= Professor Oak: You need to\nknow that whatever problems happen\lfrom here on out, you need\lto be able to overcome them,\ljust as you overcame your\lsituation with the...\pOh! I forgot to tell you,\nthe creepy people you had to\ldeal with before were members\lof an organization called\lTeam Rocket. They steal Pokèmon\lfrom trainers and use them for\lno good.\pAnyways, good luck to you\nboth!

#org @t6
= Of course we do, Professor!\pProfessor Oak: Great! But you\nneed to remember somthing.\p\v\h06: What's that?

#org @m5
#raw 0x2
#raw 0xFE

#org @t5
= \v\h06: Hear that , \v\h01?\nWe're going on an adventure!

#org @m4
#raw 0x3
#raw 0xFE

#org @t4
= Well, that whole experience\nseems very scary indeed, but\lwe have to keep moving on.\pRight?\p\v\h06: Umm... I guess...\pProfessor Oak: Good! Now I am\nready to ask you the question\lthat I was waiting to ask you.\p\v\h06: What?\pProfessor Oak: Do you, \v\h06,\nand \v\h01, want to go\lon a Pokèmon journey?

#org @m3
#raw 0x0
#raw 0xFE

#org @t3
= Professor Oak: Hmm...\pSo Team Rocket has begun their\nplans again...

#org @m2
#raw 0x1
#raw 0xFE

#org @t2
= Later that same 10 minutes\nor so...

#org @t1
= Professor Oak: Hello, boys.\nWhat brings you here?\p\v\h06: Professor, you'll never\nbelieve what happened to \v\h01\land me!

#org @m1
#raw 0x1
#raw 0xFE
Thanks.

Last edited by Renegade; June 14th, 2012 at 01:11 PM.
  #6971    
Old June 15th, 2012, 02:58 AM
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 15
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
Quote:
Originally Posted by CrystalStatic View Post
This script was working fine until something weird happened. I made another script on a completely different map after this one, and then compiled it. Then, this script started to bug up for... really no reason... The warp at the end of the script isn't working. The whole thing works but when it warps me it goes to a black screen then freezes.

Code:
#dynamic 0x800140

#org @start
lock
faceplayer
checkflag 0x1211
if 0x01 goto @moveon
checkflag 0x1212
if 0x01 goto @moveon
checkflag 0x1213
if 0x01 goto @moveon
textcolor 0x0
message @t1 6
release
end

#org @moveon
textcolor 0x0
message @t2 6
applymovement 0xFF @m1
waitmovement 0x0
checkflag 0x1208
if 0x01 goto @charmander
checkflag 0x1209
if 0x01 goto @squirtle
checkflag 0x1210
if 0x01 goto @bulbasaur
end

#org @charmander
applymovement 6 @m2
waitmovement 0x0
hidesprite 0x04
setflag 0x1214
applymovement 6 @m5
waitmovement 0x0
message @t3 6
goto @fight

#org @squirtle
applymovement 6 @m3
waitmovement 0x0
hidesprite 0x05
setflag 0x1215
applymovement 6 @m6
waitmovement 0x0
message @t4 6
goto @fight

#org @bulbasaur
applymovement 6 @m4
waitmovement 0x0
hidesprite 0x03
setflag 0x1216
applymovement 6 @m7
waitmovement 0x0
message @t5 6
goto @fight

#org @fight
applymovement 6 @m8
applymovement 0xFF @m9
waitmovement 0x0
applymovement 9 @m10
message @t6 4
closeonkeypress
applymovement 6 @m11
applymovement 0xFF @m11
applymovement 9 @m12
waitmovement 0x0
message @t7 6
applymovement 6 @m13
applymovement 0xFF @m14
waitmovement 0x0
message @t8 6
applymovement 6 @m15
applymovement 0xFF @m15
applymovement 9 @m16
waitmovement 0x0
trainerbattle 0x09 0x01 0x0 @win @lose
message @later 6
applymovement 9 @m17
waitmovement 0x0
applymovement 9 @m18
waitmovement 0x0
hidesprite 0x09
setflag 0x1217
applymovement 0xFF @m14
applymovement 6 @m13
waitmovement 0x0
message @t9 6
applymovement 6 @m19
waitmovement 0x0
hidesprite 0x06
setflag 0x1218
applymovement 0xFF @m20
waitmovement 0x0
warp 0x4 0x3 0xFF 0x6 0x6
release
end

#org @m19
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @m20
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @t9
= \v\h01, that was awesome!\nNow let's get out of here\lbefore another creepy creep finds\lus.

#org @m18
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1E
#raw 0x1F
#raw 0x1F
#raw 0xFE

#org @m17
#raw 0x34
#raw 0xFE

#org @later
= Scientist: Err... I can't win.\nFine, leave then!

#org @win
= Ack, I can't stop you...

#org @lose
= Wow, you're really bad...

#org @m15
#raw 0x3
#raw 0xFE

#org @m16
#raw 0x1F
#raw 0xFE

#org @t8
= \v\h06: Come on, \v\h01.\pYou can do this!

#org @m13
#raw 0x1
#raw 0xFE

#org @m14
#raw 0x0
#raw 0xFE

#org @t7
= Scientist: You're not going\nanywhere!\p\v\h06: What? Fine, \v\h01\nwill destroy you, then!

#org @m12
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x1F
#raw 0xFE

#org @m11
#raw 0x3
#raw 0x62
#raw 0xFE

#org @t6
= ???: HAULT!

#org @m10
#raw 0x2
#raw 0x62
#raw 0xFE

#org @m8
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0xFE

#org @m9
#raw 0x12
#raw 0x12
#raw 0x11
#raw 0x11
#raw 0xFE

#org @t3
= \v\h06: I chose a Charmander!\nNow let's get out of here.

#org @t4
= \v\h06: I chose a Squirtle!\nNow let's get out of here.

#org @t5
= \v\h06: I chose a Bulbasaur!\nNow let's get out of here.

#org @m5
#raw 0x12
#raw 0xFE

#org @m6
#raw 0x12
#raw 0x12
#raw 0xFE

#org @m7
#raw 0x2
#raw 0xFE

#org @m4
#raw 0x11
#raw 0xFE

#org @m3
#raw 0x11
#raw 0x13
#raw 0x13
#raw 0x1
#raw 0xFE

#org @m2
#raw 0x11
#raw 0x13
#raw 0x1
#raw 0xFE

#org @t1
= \v\h06: Go ahead and choose\na Pokèmon, \v\h01.

#org @t2
= Haha, nice choice \v\h01!\nNow it's my turn!

#org @m1
#raw 0x12
#raw 0x3
#raw 0xFE
After the warp is complete it is supposed to start a seperate script on a new map. The 2nd script is a level scripts. I don't know if maybe the 2nd script is somehow messing up the first one? Here's the 2nd one if needed:

Code:
#dynamic 0x800230

#org @start
lock
applymovement 0xFF @m1
waitmovement 0x0
textcolor 0x0
message @t1 6
fadescreen 0x1
pause 0x30
textcolor 0x2
message @t2 6
pause 0x30
fadescreen 0x0
pause 0x10
applymovement 11 @m2
waitmovement 0x0
textcolor 0x0
message @t3 6
pause 0x20
applymovement 11 @m3
waitmovement 0x0
message @t4 6
applymovement 12 @m4
applymovement 0xFF @m5
waitmovement 0x0
message @t5 6
applymovement 12 @m1
applymovement 0xFF @m1
waitmovement 0x0
message @t6 6
fadesong 0x159
message @t7 6
fadedefault
applymovement 12 @m6
applymovement 0xFF @m5
waitmovement 0x0
message @t8 6
applymovement 12 @m1
applymovement 0xFF @m1
waitmovement 0x0
message @t9 6
applymovement 12 @m7
waitmovement 0x0
hidesprite 0x12
setflag 0x1219
applymovement 0xFF @m8
waitmovement 0x0
hidesprite 0xFF
special 0x113
applymovement 0x7F @s1
waitmovement 0x0
special 0x114
message @t10 4
closeonkeypress
fadescreen 0x1
pause 0x10
warp 0x3 0x0 0x3 0x0 0x0
setvar 0x6010 0x0001
release
end

#org @t10
= Professor Oak: Hmm... Maybe I\nshould have told them... Hmm...

#org @s1
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0x11
#raw 0xFE

#org @m8
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE

#org @m7
#raw 0x1D
#raw 0x20
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0xFE

#org @t9
= Thanks for everything, Professor!\nSee ya!

#org @t8
= \v\h06: Yes! Let's go,\n\v\h01!

#org @m6
#raw 0x62
#raw 0x3
#raw 0xFE

#org @t7
= Professor Oak: You need to\nknow that whatever problems happen\lfrom here on out, you need\lto be able to overcome them,\ljust as you overcame your\lsituation with the...\pOh! I forgot to tell you,\nthe creepy people you had to\ldeal with before were members\lof an organization called\lTeam Rocket. They steal Pokèmon\lfrom trainers and use them for\lno good.\pAnyways, good luck to you\nboth!

#org @t6
= Of course we do, Professor!\pProfessor Oak: Great! But you\nneed to remember somthing.\p\v\h06: What's that?

#org @m5
#raw 0x2
#raw 0xFE

#org @t5
= \v\h06: Hear that , \v\h01?\nWe're going on an adventure!

#org @m4
#raw 0x3
#raw 0xFE

#org @t4
= Well, that whole experience\nseems very scary indeed, but\lwe have to keep moving on.\pRight?\p\v\h06: Umm... I guess...\pProfessor Oak: Good! Now I am\nready to ask you the question\lthat I was waiting to ask you.\p\v\h06: What?\pProfessor Oak: Do you, \v\h06,\nand \v\h01, want to go\lon a Pokèmon journey?

#org @m3
#raw 0x0
#raw 0xFE

#org @t3
= Professor Oak: Hmm...\pSo Team Rocket has begun their\nplans again...

#org @m2
#raw 0x1
#raw 0xFE

#org @t2
= Later that same 10 minutes\nor so...

#org @t1
= Professor Oak: Hello, boys.\nWhat brings you here?\p\v\h06: Professor, you'll never\nbelieve what happened to \v\h01\land me!

#org @m1
#raw 0x1
#raw 0xFE
Thanks.
No wonder it doesn't why did you make the warp 0x4 0x3 0xFF 0x6 0x6 are you going to warp number 255?!

And you don't need to put those 0x6 anymore just make them 0x0 0x0

Here's the code to fix that
warp [map bank] [map number] [warp number] [extra, for now] [extra, for now]

And also refrain from using decimals in XSE like what you did in your msgbox codes...

EDIT: Forgot it was a sprite position warp code I saw that you used flags in 4 digits please refrain from doing that just use 3 digits as the digits for your flags and please do everything in hex..
__________________

Last edited by tajaros; June 15th, 2012 at 03:06 AM.
  #6972    
Old June 15th, 2012, 04:06 AM
Magic's Avatar
Magic
DLOA - Please contact Adventure
Community Supporter
 
Join Date: Jan 2009
Location: UK
Age: 23
Gender: Male
Quote:
Originally Posted by tajaros View Post
No wonder it doesn't why did you make the warp 0x4 0x3 0xFF 0x6 0x6 are you going to warp number 255?!

And you don't need to put those 0x6 anymore just make them 0x0 0x0

Here's the code to fix that
warp [map bank] [map number] [warp number] [extra, for now] [extra, for now]

And also refrain from using decimals in XSE like what you did in your msgbox codes...

EDIT: Forgot it was a sprite position warp code I saw that you used flags in 4 digits please refrain from doing that just use 3 digits as the digits for your flags and please do everything in hex..

If you're going to try and help people I recommend you read some scripting tutorials

warp 0x4 0x3 0xFF 0x6 0x6 <= Perfectly legitimate 'warp to location (6,6)' command.

@CrystalStatic

If you decompile the script from A-Map does the ending of the script change? Alternatively the second script may not be inserted properly, so when warping to that map it makes the screen go black.

Insertion/compiling is probably the reason here.
__________________
  #6973    
Old June 15th, 2012, 04:14 AM
tajaros's Avatar
tajaros
Hi I'm dawg
 
Join Date: Apr 2012
Location: Philippines
Age: 15
Gender: Male
Nature: Timid
Send a message via Windows Live Messenger to tajaros
@swiftsign

didn't you read my edited post?

I forgot about the warp position thingy so sorry about that...
__________________
  #6974    
Old June 15th, 2012, 03:05 PM
Teh Blazer's Avatar
Teh Blazer
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 19
Gender: Male
Nature: Relaxed
Hey, is there a command that can change the overworld sprite of an NPC to another? I couldn't find one, but you never know.
__________________
Coming soon...
  #6975    
Old June 15th, 2012, 03:16 PM
Renegade's Avatar
Renegade
Time for real life...
 
Join Date: Nov 2011
Location: United States
Gender: Male
Nature: Careful
Quote:
Originally Posted by Teh Blazer View Post
Hey, is there a command that can change the overworld sprite of an NPC to another? I couldn't find one, but you never know.
You can do a "hidesprite" command on the sprite you want to change then right after that command do a "showsprite" command on the sprite you want the 1st sprite to change into.

EX:

......
hidesprite 0x03
setflag 0x1200
showsprite 0x04
......
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 01:35 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.