The PokéCommunity Forums  

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

Notices

Emulation & ROM Hacking The center for the community emulation scene. Come and discuss all things emulation and develop your own hacks!


Reply
Click here to go to the first staff post in this thread.  
Thread Tools
  #9651    
Old 2 Days Ago, 04:36 PM
Ethanb900
 
Join Date: Mar 2014
Gender: Male
So I've scrapped my last script, cause it still wouldn't work, so I decided to start working on a starter script. Prof. Maple is standing outside of your house, waiting to ask a favor to meet his acquaintance. Prof. Maple then gives you Bulbasaur, Charmander, or Squirtle. After you get a gift from his acquaintance, you meet him in his Lab. I haven't gotten it figured out yet, but this is all I have.

Quote:
#dynamic 0x800000

#org @start
lock
faceplayer
msgbox @intro 0x6
goto @1

#org @1
msgbox @favor 0x6
goto @bulba1

#org @bulba
msgbox @askbulba 0x6
yesnobox 0x0 0x0
compare 0x800D 0x1
if 0x1 goto @yesbulba
compare 0x800D 0x0
if 0x0 goto @char

#org @char
msgbox @askchar 0x6
yesnobox 0x0 0x0
compare 0x800D 0x1
if 0x1 goto @yeschar
compare 0x800D 0x0
if 0x0 goto @squirt

#org @squirt
msgbox @asksquirt 0x6
yesnobox 0x0 0x0
compare 0x800D 0x1
if 0x1 goto @yessquirt
compare 0x800D 0x0
if 0x0 goto @bulba

#org @yesbulba
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotbulba 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @namebulba 0x5
compare 0x800D 0x1
if 0x1 call @name
msgbox @carebulba 0x6
release
end

#org @yeschar
givepokemon 0x4 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotchar 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @namechar 0x5
compare 0x800D 0x1
if 0x1 call @name
msgbox @carechar 0x6
release
end

#org @yessquirt
givepokemon 0x7 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @gotsquirt 0x4
waitfanfare
closeonkeypress
setflag 0x828
msgbox @namesquirt 0x5
compare 0x800D 0x1
if 0x1 call @name
msgbox @caresquirt 0x6
release
end

#org @name
call 0x1A74EB
return

#org @intro
= Good morning, [PLAYER]. \nI need a favor from you.

#org @favor
= Can you go visit Prof. Hickory for me? \nHe lives in Castor Town, which \lis just a short walk from here. \lBut the route is full of Pokémon, \lso I'll give you a Pokémon to borrow.

#org @askbulba
= Would you like a Bulbasaur?

#org @gotbulba
= You received a Bulbasaur!

#org @namebulba
= Would you like to name Bulbasaur?

#org @carebulba
= Please take care of Bulbasaur!

#org @askchar
= Would you like a Charmander?

#org @gotchar
= You received a Charmander!

#org @namechar
= Would you like to name Charmander?

#org @carechar
= Please take care of Charmander!

#org @asksquirt
= Would you like a Squirtle?

#org @gotsquirt
= You received a Squirtle!

#org @namesquirt
= Would you like to name Squirtle?

#org @caresquirt
= Please take care of Charmander!

I've tested this out, and I've had a weird problem. I received a ????????, a Masterball, and several Great Balls, for I cannot choose anything else. Can anybody help me out here?
Reply With Quote
  #9652    
Old 2 Days Ago, 09:06 PM
Teh Blazer's Avatar
Teh Blazer
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 18
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Rezordaxx View Post
Fire red
editor XSE

soon as it warps the screen just stays black and nothing happens

Spoiler:
'---------------
#org 0x80E2B9
lockall
faceplayer
checkflag 0x206
if 0x1 goto 0x880E34E
showpokepic 0x4 0x0 0x4
msgbox 0x880E351 MSG_NORMAL '"You fool!\nYou came to get your so..."
hidepokepic
trainerbattle 0x1 0x19 0x0 0x880E2E6 0x880E2F5 0x880E318
end

'---------------
#org 0x80E34E
release
end

'---------------
#org 0x80E318
showpokepic 0x4 0x0 0x4
msgbox 0x880E37C MSG_NORMAL '"NOW WE BOTH GO TO ANOTHER DIMENSIO..."
hidepokepic
closeonkeypress
setflag 0x206
fadescreen 0x1
hidesprite 0x1
fadescreen 0x0
showpokepic 0x1 0x0 0x4
msgbox 0x880E41C MSG_NORMAL '"Guys,\nI really need to get going\..."
hidepokepic
fadescreen 0x1
warpmuted 0x41 0x0 0x1 0x2 0x6
fadescreen 0x0
releaseall
end


'---------
' Strings
'---------
#org 0x80E351
= You fool!\nYou came to get your son back?

#org 0x80E2E6
= LETS RUMBLE!

#org 0x80E2F5
= NO YOU FOOL!\nYOU kILLED US BOTH!

#org 0x80E37C
= NOW WE BOTH GO TO ANOTHER DIMENSION!\nAAAAAHRG\pTwo other Saiyans are on there way to earth\nlet me tell you a secret\pthey are much stronger than me\nHAHAHAHAHA!

#org 0x80E41C
= Guys,\nI really need to get going\pTell the others not to wish\nme back until the Saiyans arrive!\pI am going to train in otherword!\nGoodbye!
Your warp command is telling the game to warp to map bank 41 and map number 0. Just to be sure, do you want to warp to the 0th map in the 41st bank? Because I haven't touched A-Map in awhile, but I don't remember 41 banks...


Quote:
Originally Posted by Ethanb900 View Post
So I've scrapped my last script, cause it still wouldn't work, so I decided to start working on a starter script. Prof. Maple is standing outside of your house, waiting to ask a favor to meet his acquaintance. Prof. Maple then gives you Bulbasaur, Charmander, or Squirtle. After you get a gift from his acquaintance, you meet him in his Lab. I haven't gotten it figured out yet, but this is all I have.




I've tested this out, and I've had a weird problem. I received a ????????, a Masterball, and several Great Balls, for I cannot choose anything else. Can anybody help me out here?
Do you mean you're receiving a ???????? Pokemon and it's holding a masterball/great ball? And what do you mean you cannot choose anything else? Are you stuck on the bulbasaur one and you can only select yes to get out of it? From what I see, the givepokemon command looks fine to me.
__________________
Coming soon...

Last edited by Teh Blazer; 2 Days Ago at 09:12 PM.
Reply With Quote
  #9653    
Old 2 Days Ago, 01:29 AM
Spheal's Avatar
Spheal
Project Shinx
 
Join Date: Feb 2006
Location: Spain, Went's room
Nature: Serious
Quote:
Originally Posted by Rezordaxx View Post
Fire red
editor XSE

soon as it warps the screen just stays black and nothing happens

Spoiler:
'---------------
#org 0x80E2B9
lockall
faceplayer
checkflag 0x206
if 0x1 goto 0x880E34E
showpokepic 0x4 0x0 0x4
msgbox 0x880E351 MSG_NORMAL '"You fool!\nYou came to get your so..."
hidepokepic
trainerbattle 0x1 0x19 0x0 0x880E2E6 0x880E2F5 0x880E318
end

'---------------
#org 0x80E34E
release
end

'---------------
#org 0x80E318
showpokepic 0x4 0x0 0x4
msgbox 0x880E37C MSG_NORMAL '"NOW WE BOTH GO TO ANOTHER DIMENSIO..."
hidepokepic
closeonkeypress
setflag 0x206
fadescreen 0x1
hidesprite 0x1
fadescreen 0x0
showpokepic 0x1 0x0 0x4
msgbox 0x880E41C MSG_NORMAL '"Guys,\nI really need to get going\..."
hidepokepic
fadescreen 0x1
warpmuted 0x41 0x0 0x1 0x2 0x6
fadescreen 0x0
releaseall
end


'---------
' Strings
'---------
#org 0x80E351
= You fool!\nYou came to get your son back?

#org 0x80E2E6
= LETS RUMBLE!

#org 0x80E2F5
= NO YOU FOOL!\nYOU kILLED US BOTH!

#org 0x80E37C
= NOW WE BOTH GO TO ANOTHER DIMENSION!\nAAAAAHRG\pTwo other Saiyans are on there way to earth\nlet me tell you a secret\pthey are much stronger than me\nHAHAHAHAHA!

#org 0x80E41C
= Guys,\nI really need to get going\pTell the others not to wish\nme back until the Saiyans arrive!\pI am going to train in otherword!\nGoodbye!
What Teh Blazer said, it's map bank first then map number. But make sure that the bank and map numbers are in decimal, for example, 0x41 is for map number 65, if you want the 41th map in whichever bank in Advance Map, that would be 0x29.

Quote:
Originally Posted by Ethanb900 View Post
So I've scrapped my last script, cause it still wouldn't work, so I decided to start working on a starter script. Prof. Maple is standing outside of your house, waiting to ask a favor to meet his acquaintance. Prof. Maple then gives you Bulbasaur, Charmander, or Squirtle. After you get a gift from his acquaintance, you meet him in his Lab. I haven't gotten it figured out yet, but this is all I have.




I've tested this out, and I've had a weird problem. I received a ????????, a Masterball, and several Great Balls, for I cannot choose anything else. Can anybody help me out here?
Your script should execute without getting any items. Make sure to add a "setvar 0x8004 0x0" before the nicknaming special so that it works correctly.

I also noticed that the script won't jump to the next pokémon if you say no to the first one. I'm pretty sure you're compiling the scripts wrong. Are you sure you followed my instructions from my previous posts?
__________________
I DON'T HAVE THE POKECOMMUNITY VIRUS(ALSO KNOW AS PC VIRUSE)
What I mean by this is, I'm not strict like MOST people *cough* Admins/Mods *cough* on this site. And no not all Admins/Mods are like that, but MOST are,
Post this in your sign. if you are PC Viruse free!
Reply With Quote
  #9654    
Old 2 Days Ago, 02:41 AM
Rezordaxx's Avatar
Rezordaxx
Asks many questions!
 
Join Date: Aug 2013
Location: The Netherlands
Age: 15
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Spheal View Post
What Teh Blazer said, it's map bank first then map number. But make sure that the bank and map numbers are in decimal, for example, 0x41 is for map number 65, if you want the 41th map in whichever bank in Advance Map, that would be 0x29.
I get it now thanks! stupid I didnt think of that!
__________________

thanks to Saturnus for helping me with the sig
Reply With Quote
  #9655    
Old 2 Days Ago, 05:22 AM
Ethanb900
 
Join Date: Mar 2014
Gender: Male
Quote:
Originally Posted by Teh Blazer View Post
Your warp command is telling the game to warp to map bank 41 and map number 0. Just to be sure, do you want to warp to the 0th map in the 41st bank? Because I haven't touched A-Map in awhile, but I don't remember 41 banks...




Do you mean you're receiving a ???????? Pokemon and it's holding a masterball/great ball? And what do you mean you cannot choose anything else? Are you stuck on the bulbasaur one and you can only select yes to get out of it? From what I see, the givepokemon command looks fine to me.
Nothing pops up for a selection. No yes/no box, no text boxes (except for the items I get), and I only get the items. I need a serious amount of help here.
Reply With Quote
  #9656    
Old 2 Days Ago, 01:48 PM
Teh Blazer's Avatar
Teh Blazer
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 18
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Ethanb900 View Post
Nothing pops up for a selection. No yes/no box, no text boxes (except for the items I get), and I only get the items. I need a serious amount of help here.
Something really wrong is going on here, especially since you don't have any "giveitem" commands in your script so you shouldn't be receiving items in the first place. As Spheal said, have you made sure you compiled the script correctly and assigned the same address you got from compiling the script to an event OW?

Also, Spheal is correct in adding the "setvar 0x8004 0x0" and your yes/no thing is a bit off. But I think as for now, making sure you compiled the script correctly comes first, but do keep those in mind.
__________________
Coming soon...
Reply With Quote
  #9657    
Old 1 Day Ago, 05:22 PM
Ethanb900
 
Join Date: Mar 2014
Gender: Male
Quote:
Originally Posted by Teh Blazer View Post
Something really wrong is going on here, especially since you don't have any "giveitem" commands in your script so you shouldn't be receiving items in the first place. As Spheal said, have you made sure you compiled the script correctly and assigned the same address you got from compiling the script to an event OW?

Also, Spheal is correct in adding the "setvar 0x8004 0x0" and your yes/no thing is a bit off. But I think as for now, making sure you compiled the script correctly comes first, but do keep those in mind.
I'll try cleaning up the script and post the results later. If everything goes correctly, then I'll have a working starter giveaway!
Reply With Quote
  #9658    
Old 1 Day Ago, 06:56 PM
Flugmerkur's Avatar
Flugmerkur
 
Join Date: Nov 2013
My script is happening at a random order. Sometimes it works like it is supposed too, and sometimes it works out of order. What am I doing wrong?

I want to talk the NPC to tell you he is on the phone, then end. When you talk to him again he gets angrier and tells you to leave. Then it should end again. Finally, the third time you talk to him he yells at you and a battle commences.


Spoiler:
#dynamic 0x800000

#org @prestart
checkflag 0x2022
if 0x1 goto @done
if 0x0 goto @start
end

#org @start
Checkflag 0x2020
if 0x1 goto @end
if 0x0 goto @begin
release
end

#org @begin
lock
msgbox @talk 0x6
faceplayer
msgbox @talk2 0x6
setflag 0x2020
release
end

#org @talk
= No, honey. I told you I'd be at\nwork late tonight.\pI can't pick up the kids right\nnow.\pWait, can you hold on for a\nsecond?

#org @talk2
= ...\pDo you mind?\pI'm talking on the phone\nright now.

#org @end
checkflag 0x2025
if 0x1 goto @battle
if 0x0 goto @begin2
release
end

#org @begin2
lock
faceplayer
msgbox @talk3 0x6
setflag 0x2025
release
end

#org @talk3
= Dude!\pGo away! I'm on the phone!\pSheesh...


#org @battle
lock
faceplayer
trainerbattle 0x1 0x0A9 0x0 @before @after @later
setflag 0x2022
end

#org @before
= That's it! I'm going to teach you\nsome manners!

#org @after
= My wife hung up on me...

#org @later
= Hmmph...

#org @done
lock
faceplayer
msgbox @1 0x6
release
end

#org @1
= I was wasting minutes on my phone\nplan anyway.
__________________
Listen to my music!
http://www.youtube.com/watch?v=0QIY8...X2oHJkFedIVJag
Reply With Quote
  #9659    
Old 1 Day Ago, 07:10 PM
Teh Blazer's Avatar
Teh Blazer
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 18
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Flugmerkur View Post
My script is happening at a random order. Sometimes it works like it is supposed too, and sometimes it works out of order. What am I doing wrong?

I want to talk the NPC to tell you he is on the phone, then end. When you talk to him again he gets angrier and tells you to leave. Then it should end again. Finally, the third time you talk to him he yells at you and a battle commences.


Spoiler:
#dynamic 0x800000

#org @prestart
checkflag 0x2022
if 0x1 goto @done
if 0x0 goto @start
end

#org @start
Checkflag 0x2020
if 0x1 goto @end
if 0x0 goto @begin
release
end

#org @begin
lock
msgbox @talk 0x6
faceplayer
msgbox @talk2 0x6
setflag 0x2020
release
end

#org @talk
= No, honey. I told you I'd be at\nwork late tonight.\pI can't pick up the kids right\nnow.\pWait, can you hold on for a\nsecond?

#org @talk2
= ...\pDo you mind?\pI'm talking on the phone\nright now.

#org @end
checkflag 0x2025
if 0x1 goto @battle
if 0x0 goto @begin2
release
end

#org @begin2
lock
faceplayer
msgbox @talk3 0x6
setflag 0x2025
release
end

#org @talk3
= Dude!\pGo away! I'm on the phone!\pSheesh...


#org @battle
lock
faceplayer
trainerbattle 0x1 0x0A9 0x0 @before @after @later
setflag 0x2022
end

#org @before
= That's it! I'm going to teach you\nsome manners!

#org @after
= My wife hung up on me...

#org @later
= Hmmph...

#org @done
lock
faceplayer
msgbox @1 0x6
release
end

#org @1
= I was wasting minutes on my phone\nplan anyway.
As a general rule of thumb, you should only be using flags 200-2FF, the ones you're using are too high and can be unstable.
__________________
Coming soon...
Reply With Quote
  #9660    
Old 1 Day Ago, 01:23 AM
Le pug's Avatar
Le pug
la butt doit le sniff
 
Join Date: Aug 2013
Location: Le bed
Age: 21
Gender: Male
Nature: Bold
I'm having some trouble with this script. The script itself actually plays out accordingly but for some reason the move_camera doesn't want to work and doesn't move. Any help?

Script: (emerald codes)
Spoiler:
#dynamic 0x1012FC8

#org @event1
checkflag 0x1147
if 0x1 goto @event
release
end

#org @event
lock
setmaptile 0x3A 0x11 0x2AD 0x0
special 0x91
setmaptile 0x3B 0x11 0x2AE 0x0
special 0x91
playsong 0x1E6 0x0
special 0x116
applymovement MOVE_CAMERA @camera1
waitmovement 0x0
special 0x117
pause 0x10
msgbox @oak 0x6
msgbox @man 0x6
msgbox @men 0x6
sound 0x15
applymovement 0xD @manup
waitmovement 0x0
msgbox @man2 0x6
applymovement 0xD @manwalk
msgbox @men2 0x6
waitmovement 0x0
msgbox @man3 0x6
fadeout 0x1
applymovement 0x18 @walk
pause 0x15
playsong 0x20F 0x0
waitmovement 0x0
pause 0x30
sound 0x15
applymovement 0xE @ex
waitmovement 0x0
applymovement 0xFF @ex
waitmovement 0x0
applymovement 0x13 @ex
waitmovement 0x0
applymovement 0x14 @ex
waitmovement 0x0
applymovement 0x15 @ex
waitmovement 0x0
applymovement 0x17 @ex
waitmovement 0x0
applymovement 0x16 @ex
waitmovement 0x0
applymovement 0xD @ex
waitmovement 0x0
msgbox @what 0x6
msgbox @use 0x6
cry 0x18B 0x0
pause 0x30
sound 0x90
pause 0x30
setmaptile 0x3A 0x11 0x2B1 0x0
special 0x91
setmaptile 0x3B 0x11 0x2B2 0x0
special 0x91
special 0x116
applymovement MOVE_CAMERA @camera2
waitmovement 0x0
special 0x117
applymovement 0xFF @down
applymovement 0xE @down
waitmovement 0x0
msgbox @noo 0x6
msgbox @notso 0x6
applymovement 0xF @mat
applymovement 0x11 @faroh
applymovement 0x12 @sailor
applymovement 0x10 @sailor
applymovement 0x13 @lookleft
applymovement 0x14 @lookleft
applymovement 0x15 @lookleft
applymovement 0x16 @lookleft
applymovement 0x17 @lookleft
applymovement 0xD @lookleft
applymovement 0x14 @lookleft
pause 0x30
msgbox @nonono 0x6
waitmovement 0x0
applymovement 0x18 @bagons
applymovement 0x16 @move1
applymovement 0x17 @move2
applymovement 0x15 @move3
applymovement 0x14 @move4
applymovement 0x13 @move5
waitmovement 0x0
applymovement 0xFF @lookleft
applymovement 0xE @lookright
waitmovement 0x0
special 0x116
applymovement MOVE_CAMERA @camera2
waitmovement 0x0
special 0x117
msgbox @oak2 0x6
fadescreen 0x1
fadesong 0x196
setflag 0x1146
hidesprite 0xE
hidesprite 0x13
hidesprite 0x15
hidesprite 0xD
hidesprite 0x17
hidesprite 0x16
hidesprite 0x18
hidesprite 0x14
hidesprite 0x10
hidesprite 0x12
hidesprite 0x11
hidesprite 0xF
hidesprite 0x5
clearflag 0x1148
showsprite 0x24
showsprite 0x22
showsprite 0x1F
showsprite 0x1B
showsprite 0x1E
showsprite 0x21
showsprite 0x19
showsprite 0x23
showsprite 0x1C
showsprite 0x1D
showsprite 0x1A
showsprite 0x20
setflag 0x1154
fadescreen 0x0
applymovement MOVE_PLAYER @down
waitmovement 0xFF
setvar 0x5000 0x1E
release
end

#org @leftface
#raw 0x02
#raw 0xFE

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

#org @exclam
#raw 0x56
#raw 0xFE


#org @lookright
#raw 0x03
#raw 0xFE

#org @walkme
#raw 0x17
#raw 0x17
#raw 0x17
#raw 0x15
#raw 0x03
#raw 0xFE

#org @camera2
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org @camera1
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0xFE

#org @moveright2
#raw 0x0B
#raw 0x08
#raw 0x0B
#raw 0x00
#raw 0xFE

#org @moveright
#raw 0x0B
#raw 0x00
#raw 0xFE

#org @oak2
= Prof. Dunbar: [green_em][player], we've got\nto end this before it escalates.\pI'll take the one on the right,\nyou go for the leader.

#org @move5
#raw 0x0B
#raw 0x08
#raw 0x08
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x09
#raw 0x09
#raw 0x0A
#raw 0x02
#raw 0xFE

#org @move4
#raw 0x01
#raw 0xFE

#org @move3
#raw 0x0A
#raw 0x0A
#raw 0x09
#raw 0x0A
#raw 0xFE

#org @move2
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org @move1
#raw 0x0A
#raw 0x08
#raw 0x02
#raw 0xFE

#org @lookleft
#raw 0x02
#raw 0xFE

#org @bagons
#raw 0x0A
#raw 0x0A
#raw 0x03
#raw 0xFE

#org @nonono
= Man: [red_em]No, no, no! Stop these\nintruders!

#org @mat
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x09
#raw 0x03
#raw 0xFE

#org @faroh
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x08
#raw 0x03
#raw 0xFE

#org @sailor
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0xFE


ill love you forever


also.. it makes no sense because 1) it's suppose to be a level script so once on it, it activates but doesn't do the movements yet I've done level script with camera before and 2) the script right after this one works perfectly with the move_cameras and everything..
__________________
Need help inserting tiles into AdvanceMap to have customized tiles for your hack?
Check out my tutorial, Inserting Tiles Into AdvanceMap For Dummies
Check out the Ruby rombase sound list I contributed by clicking HERE
Reply With Quote
  #9661    
Old 1 Day Ago, 01:35 AM
destinedjagold's Avatar
destinedjagold
Oh Hai Thar~ 'ω'
 
Join Date: May 2007
Location: Philippines
Gender: Male
Nature: Careful
Quote:
Originally Posted by Le pug View Post
I'm having some trouble with this script. The script itself actually plays out accordingly but for some reason the move_camera doesn't want to work and doesn't move. Any help?

Script: (emerald codes)
Spoiler:
#dynamic 0x1012FC8

#org @event1
checkflag 0x1147
if 0x1 goto @event
release
end

#org @event
lock
setmaptile 0x3A 0x11 0x2AD 0x0
special 0x91
setmaptile 0x3B 0x11 0x2AE 0x0
special 0x91
playsong 0x1E6 0x0
special 0x116
applymovement MOVE_CAMERA @camera1
waitmovement 0x0
special 0x117
pause 0x10
msgbox @oak 0x6
msgbox @man 0x6
msgbox @men 0x6
sound 0x15
applymovement 0xD @manup
waitmovement 0x0
msgbox @man2 0x6
applymovement 0xD @manwalk
msgbox @men2 0x6
waitmovement 0x0
msgbox @man3 0x6
fadeout 0x1
applymovement 0x18 @walk
pause 0x15
playsong 0x20F 0x0
waitmovement 0x0
pause 0x30
sound 0x15
applymovement 0xE @ex
waitmovement 0x0
applymovement 0xFF @ex
waitmovement 0x0
applymovement 0x13 @ex
waitmovement 0x0
applymovement 0x14 @ex
waitmovement 0x0
applymovement 0x15 @ex
waitmovement 0x0
applymovement 0x17 @ex
waitmovement 0x0
applymovement 0x16 @ex
waitmovement 0x0
applymovement 0xD @ex
waitmovement 0x0
msgbox @what 0x6
msgbox @use 0x6
cry 0x18B 0x0
pause 0x30
sound 0x90
pause 0x30
setmaptile 0x3A 0x11 0x2B1 0x0
special 0x91
setmaptile 0x3B 0x11 0x2B2 0x0
special 0x91
special 0x116
applymovement MOVE_CAMERA @camera2
waitmovement 0x0
special 0x117
applymovement 0xFF @down
applymovement 0xE @down
waitmovement 0x0
msgbox @noo 0x6
msgbox @notso 0x6
applymovement 0xF @mat
applymovement 0x11 @faroh
applymovement 0x12 @sailor
applymovement 0x10 @sailor
applymovement 0x13 @lookleft
applymovement 0x14 @lookleft
applymovement 0x15 @lookleft
applymovement 0x16 @lookleft
applymovement 0x17 @lookleft
applymovement 0xD @lookleft
applymovement 0x14 @lookleft
pause 0x30
msgbox @nonono 0x6
waitmovement 0x0
applymovement 0x18 @bagons
applymovement 0x16 @move1
applymovement 0x17 @move2
applymovement 0x15 @move3
applymovement 0x14 @move4
applymovement 0x13 @move5
waitmovement 0x0
applymovement 0xFF @lookleft
applymovement 0xE @lookright
waitmovement 0x0
special 0x116
applymovement MOVE_CAMERA @camera2
waitmovement 0x0
special 0x117
msgbox @oak2 0x6
fadescreen 0x1
fadesong 0x196
setflag 0x1146
hidesprite 0xE
hidesprite 0x13
hidesprite 0x15
hidesprite 0xD
hidesprite 0x17
hidesprite 0x16
hidesprite 0x18
hidesprite 0x14
hidesprite 0x10
hidesprite 0x12
hidesprite 0x11
hidesprite 0xF
hidesprite 0x5
clearflag 0x1148
showsprite 0x24
showsprite 0x22
showsprite 0x1F
showsprite 0x1B
showsprite 0x1E
showsprite 0x21
showsprite 0x19
showsprite 0x23
showsprite 0x1C
showsprite 0x1D
showsprite 0x1A
showsprite 0x20
setflag 0x1154
fadescreen 0x0
applymovement MOVE_PLAYER @down
waitmovement 0xFF
setvar 0x5000 0x1E
release
end

#org @leftface
#raw 0x02
#raw 0xFE

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

#org @exclam
#raw 0x56
#raw 0xFE


#org @lookright
#raw 0x03
#raw 0xFE

#org @walkme
#raw 0x17
#raw 0x17
#raw 0x17
#raw 0x15
#raw 0x03
#raw 0xFE

#org @camera2
#raw 0x9 'Step Up (Normal)
#raw 0x9 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org @camera1
#raw 0x08
#raw 0x08
#raw 0x08
#raw 0xFE

#org @moveright2
#raw 0x0B
#raw 0x08
#raw 0x0B
#raw 0x00
#raw 0xFE

#org @moveright
#raw 0x0B
#raw 0x00
#raw 0xFE

#org @oak2
= Prof. Dunbar: [green_em][player], we've got\nto end this before it escalates.\pI'll take the one on the right,\nyou go for the leader.

#org @move5
#raw 0x0B
#raw 0x08
#raw 0x08
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x0A
#raw 0x09
#raw 0x09
#raw 0x0A
#raw 0x02
#raw 0xFE

#org @move4
#raw 0x01
#raw 0xFE

#org @move3
#raw 0x0A
#raw 0x0A
#raw 0x09
#raw 0x0A
#raw 0xFE

#org @move2
#raw 0x0A
#raw 0x0A
#raw 0xFE

#org @move1
#raw 0x0A
#raw 0x08
#raw 0x02
#raw 0xFE

#org @lookleft
#raw 0x02
#raw 0xFE

#org @bagons
#raw 0x0A
#raw 0x0A
#raw 0x03
#raw 0xFE

#org @nonono
= Man: [red_em]No, no, no! Stop these\nintruders!

#org @mat
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x09
#raw 0x03
#raw 0xFE

#org @faroh
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x08
#raw 0x03
#raw 0xFE

#org @sailor
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0x0B
#raw 0xFE


ill love you forever


also.. it makes no sense because 1) it's suppose to be a level script so once on it, it activates but doesn't do the movements yet I've done level script with camera before and 2) the script right after this one works perfectly with the move_cameras and everything..
Wasn't it specials 0x113 and 0x114 for the camera?
__________________
3DS FC: 0061-1111-6462
SV: 1364 | Rock Safari: Dwebble, Corsola and Barbaracle
Reply With Quote
  #9662    
Old 1 Day Ago, 05:47 AM
Flugmerkur's Avatar
Flugmerkur
 
Join Date: Nov 2013
Quote:
Originally Posted by Teh Blazer View Post
As a general rule of thumb, you should only be using flags 200-2FF, the ones you're using are too high and can be unstable.
I'm sorry. I'm still new to this. What the heck is 2FF?

Also, is there a guide on which flags I can overwrite, and which flags already do stuff in game?
__________________
Listen to my music!
http://www.youtube.com/watch?v=0QIY8...X2oHJkFedIVJag
Reply With Quote
  #9663    
Old 1 Day Ago, 05:55 AM
Kurapika's Avatar
Kurapika
Grudgebearer
 
Join Date: Feb 2013
Location: Lavendar Town - Morocco
Gender: Male
Nature: Naughty
Flags, Vars, & Script Tiles
__________________
Reply With Quote
  #9664    
Old 1 Day Ago, 11:54 AM
Rezordaxx's Avatar
Rezordaxx
Asks many questions!
 
Join Date: Aug 2013
Location: The Netherlands
Age: 15
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Flugmerkur View Post
I'm sorry. I'm still new to this. What the heck is 2FF?

Also, is there a guide on which flags I can overwrite, and which flags already do stuff in game?
2FF is a heximal number its means 767 in a decimal number
you can use 200 (heximal number(512 in decimal numbers)) til 2FF (heximal number)

hope you understand
__________________

thanks to Saturnus for helping me with the sig
Reply With Quote
  #9665    
Old 23 Hours Ago, 03:23 PM
Flugmerkur's Avatar
Flugmerkur
 
Join Date: Nov 2013
Thanks rezordaxx.

Another question.
when you are defeated before reaching the first Pokemon center you go back to your house and your mom heals you. How do you change where you go to be healed?
__________________
Listen to my music!
http://www.youtube.com/watch?v=0QIY8...X2oHJkFedIVJag
Reply With Quote
  #9666    
Old 23 Hours Ago, 03:36 PM
Spheal's Avatar
Spheal
Project Shinx
 
Join Date: Feb 2006
Location: Spain, Went's room
Nature: Serious
Quote:
Originally Posted by Flugmerkur View Post
Thanks rezordaxx.

Another question.
when you are defeated before reaching the first Pokemon center you go back to your house and your mom heals you. How do you change where you go to be healed?
Pokémon Centers have level scripts where a different "healing place" is set whenever you enter one. The XSE command is "sethealingplace 0xX". For example, in Fire Red, having all your pokémon faint after using "sethealingplace 0x1" will get you back to Pallet Town, 0x2 to Viridian City and so on.
__________________
I DON'T HAVE THE POKECOMMUNITY VIRUS(ALSO KNOW AS PC VIRUSE)
What I mean by this is, I'm not strict like MOST people *cough* Admins/Mods *cough* on this site. And no not all Admins/Mods are like that, but MOST are,
Post this in your sign. if you are PC Viruse free!
Reply With Quote
  #9667    
Old 23 Hours Ago, 03:41 PM
Le pug's Avatar
Le pug
la butt doit le sniff
 
Join Date: Aug 2013
Location: Le bed
Age: 21
Gender: Male
Nature: Bold
Quote:
Originally Posted by destinedjagold View Post
Wasn't it specials 0x113 and 0x114 for the camera?
sorry guess i should specify.. it's an emerald hack so the #s are 116 and 117. i just didn't know if it's anything with the script itself that is the problem with why the cameras aren't working
__________________
Need help inserting tiles into AdvanceMap to have customized tiles for your hack?
Check out my tutorial, Inserting Tiles Into AdvanceMap For Dummies
Check out the Ruby rombase sound list I contributed by clicking HERE
Reply With Quote
  #9668    
Old 22 Hours Ago, 04:26 PM
Flugmerkur's Avatar
Flugmerkur
 
Join Date: Nov 2013
Quote:
Originally Posted by Spheal View Post
Pokémon Centers have level scripts where a different "healing place" is set whenever you enter one. The XSE command is "sethealingplace 0xX". For example, in Fire Red, having all your pokémon faint after using "sethealingplace 0x1" will get you back to Pallet Town, 0x2 to Viridian City and so on.
But, how would I even begin to write a script for that? Would I have to make a level script?

I want the player to warp back to a specific person in the starting town if they feint before reaching a center.
__________________
Listen to my music!
http://www.youtube.com/watch?v=0QIY8...X2oHJkFedIVJag
Reply With Quote
  #9669    
Old 2 Hours Ago, 12:23 PM
Ninja Surskit's Avatar
Ninja Surskit
Big Daddy
 
Join Date: Jun 2013
Location: Miami, FL
Age: 14
Gender: Male
Nature: Hasty
Made this level script, having two problems. One of them is that the lass (0xC) doesn't move, and the other one is that the player can't move after it finishes.
Spoiler:
'---------------
#org 0x71A2DC
#raw 0x2
#raw pointer 0x871A2E2
#raw 0x0

'---------------
#org 0x71A2E2
#raw word 0x4001
#raw word 0x0
#raw pointer 0x8805051
#raw word 0x0

'---------------
#org 0x805051
checkflag 0x200
if 0x1 goto 0x880541D
lock
msgbox 0x88051CD MSG_NORMAL '"[green_fr]Mayor: Everyone come her..."
msgbox 0x8805231 MSG_NORMAL '"[black_fr]Youngster: Important\nan..."
msgbox 0x880525F MSG_NORMAL '"[red_fr]Lass: What?"
msgbox 0x8805270 MSG_NORMAL '"[green_fr]No time for questions! C..."
applymovement 0xA 0x8805420
applymovement 0xB 0x8805420
applymovement 0xC 0x8805420
applymovement 0x9 0x8805420
applymovement MOVE_PLAYER 0x8805420
waitmovement 0x0
applymovement MOVE_PLAYER 0x8805423
applymovement 0xA 0x8805433
applymovement 0xC 0x880543C
applymovement 0xD 0x8805444
waitmovement 0x0
msgbox 0x8805297 MSG_NORMAL '"[green_fr]Now that I have gathered..."
msgbox 0x880533A MSG_NORMAL '"[green_fr]I had heard some rumors ..."
msgbox 0x88053C0 MSG_NORMAL '"[green_fr]I will be giving each of..."
msgbox 0x8805403 MSG_NORMAL '"Up first is the camper!"
applymovement 0xE 0x8805454
waitmovement 0x0
msgbox 0x8805459 MSG_NORMAL '"[green_fr]Camper! I have two Pokém..."
msgbox 0x88054D9 MSG_NORMAL '"[green_fr]Shroomish it is! Here it..."
applymovement 0xA 0x8805512
waitmovement 0x0
msgbox 0x880551A MSG_NORMAL '"[blue_fr]Thank you sir!"
applymovement 0xA 0x880552E
hidesprite 0xA
applymovement 0xE 0x8805534
waitmovement 0x0
msgbox 0x8805538 MSG_NORMAL '"[green_fr]Now, lass. It is your tu..."
msgbox 0x880558C MSG_NORMAL '"[red_fr]I would like the Nidoran p..."
msgbox 0x88055B2 MSG_NORMAL '"[green_fr]Alright, here it is. Now..."
applymovement 0xC 0x88055F4
msgbox 0x88055DC MSG_NORMAL '"[red_fr]Thank you so much!"
applymovement 0xC 0x88055F7
hidesprite 0xC
msgbox 0x8805600 MSG_NORMAL '"[green_fr]Up next is... the bug ca..."
applymovement MOVE_PLAYER 0x8805624
applymovement 0xB 0x8805624
waitmovement 0x0
applymovement 0xB 0x8805627
waitmovement 0x0
msgbox 0x8805690 MSG_NORMAL '"[green_fr]You.. you have always lo..."
msgbox 0x8805714 MSG_NORMAL '"[orange_fr]I would like Surskit."
msgbox 0x880572F MSG_NORMAL '"[red_fr]You already know, be caref..."
msgbox 0x8805752 MSG_NORMAL '"[orange_fr]Thank you sir!"
applymovement 0xB 0x8805766
applymovement 0xE 0x880576F
waitmovement 0x0
msgbox 0x8805773 MSG_NORMAL '"[player] Alright r now that you ..."
msgbox 0x8805821 MSG_YESNO '"Do you want Sneasel?"
compare LASTRESULT 0x1
if 0x1 goto 0x8805838
compare LASTRESULT 0x0
if 0x0 goto 0x8805923
end

'---------------
#org 0x80541D
release
end

'---------------
#org 0x805838
givepokemon 0xD7 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x880588F MSG_KEEPOPEN '"[black_fr]Got the Sneasel from the..."
waitfanfare
closeonkeypress
setflag 0x828
msgbox 0x88058B4 MSG_YESNO '"[black_fr]Would you like to give y..."
compare LASTRESULT 0x1
if 0x1 goto 0x8805877
compare LASTRESULT 0x0
if 0x1 goto 0x88058E9
end

'---------------
#org 0x805923
givepokemon 0xCF 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8805962 MSG_KEEPOPEN '"[black_fr]Got the Gligar from the ..."
waitfanfare
closeonkeypress
setflag 0x828
msgbox 0x88058B4 MSG_YESNO '"[black_fr]Would you like to give y..."
compare LASTRESULT 0x1
if 0x1 goto 0x8805877
compare LASTRESULT 0x0
if 0x1 goto 0x88058E9
end

'---------------
#org 0x805877
setvar 0x8004 0x0
call 0x8805887
goto 0x88058F0

'---------------
#org 0x8058E9
closeonkeypress
goto 0x88058F0

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

'---------------
#org 0x8058F0
msgbox 0x88058FE MSG_NORMAL '"[red_fr]Now go [player]..\nPlease ..."
setflag 0x200
release
end


'---------
' Strings
'---------
#org 0x8051CD
= [green_fr]Mayor: Everyone come here to the\nmiddle of the town! I have an\limportant announcement to make.

#org 0x805231
= [black_fr]Youngster: Important\nannouncement? What?

#org 0x80525F
= [red_fr]Lass: What?

#org 0x805270
= [green_fr]No time for questions! Come\nhere!

#org 0x805297
= [green_fr]Now that I have gathered all you\nyoung ones here, there is\lsomething I must say. There were\lonce two rivaling evil teams in\lHoenn, Team Magma, and Team Aqua.

#org 0x80533A
= [green_fr]I had heard some rumors that\nthey have been spotted here in\lRegma.. And that can't mean\lanything good. Now that I've said\lthat..

#org 0x8053C0
= [green_fr]I will be giving each of you a\nPokémon to protect yourselves!

#org 0x805403
= Up first is the camper!

#org 0x805459
= [green_fr]Camper! I have two Pokémon\nhere. I want you to choose one of\lthese two: Shroomish or Sandshrew.\p Blue-fr Shroomish please!

#org 0x8054D9
= [green_fr]Shroomish it is! Here it is\ncamper, now be careful!

#org 0x80551A
= [blue_fr]Thank you sir!

#org 0x805538
= [green_fr]Now, lass. It is your turn to\nchoose. Do you want a Bulbasaur or\la Nidoran(F)?

#org 0x80558C
= [red_fr]I would like the Nidoran please!

#org 0x8055B2
= [green_fr]Alright, here it is. Now be\ncareful.

#org 0x8055DC
= [red_fr]Thank you so much!

#org 0x805600
= [green_fr]Up next is... the bug catcher.

#org 0x805690
= [green_fr]You.. you have always loved\nto catch Pokémon but you were too\lyoung to keep them. Now you get to\lchoose one: Surskit or Paras.

#org 0x805714
= [orange_fr]I would like Surskit.

#org 0x80572F
= [red_fr]You already know, be careful.

#org 0x805752
= [orange_fr]Thank you sir!

#org 0x805773
= [player] Alright r now that you are\nthe only one left.. choose.\lYou have Sneasel ang Gligar. The\lreason I called you last is\lbecause you get to choose from the\lstrongest ones.

#org 0x805821
= Do you want Sneasel?

#org 0x80588F
= [black_fr]Got the Sneasel from the mayor.

#org 0x8058B4
= [black_fr]Would you like to give your\nPokémon a nickname?

#org 0x805962
= [black_fr]Got the Gligar from the mayor.

#org 0x8058FE
= [red_fr]Now go [player]..\nPlease be careful..


'-----------
' Movements
'-----------
#org 0x805420
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x805423
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1 'Face up
#raw 0xFE 'End of Movements

#org 0x805433
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x80543C
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x805444
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x5 'Face Up (Faster)
#raw 0xFE 'End of Movements

#org 0x805454
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements

#org 0x805512
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x4 'Face Down (Faster)
#raw 0xFE 'End of Movements

#org 0x80552E
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x805534
#raw 0xB 'Step Right (Very Slow)
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements

#org 0x8055F4
#raw 0x66 'Happy ()
#raw 0xFE 'End of Movements

#org 0x8055F7
#raw 0x12 'Step Left (Normal)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x805624
#raw 0x63 'Question Mark (?)
#raw 0xFE 'End of Movements

#org 0x805627
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x805766
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x80576F
#raw 0x20 'Step Right (Fast)
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements


Thanks
__________________


https://www.dropbox.com/s/6t3wnnoms4...0421101743.mp4

Last edited by Ninja Surskit; 1 Hour Ago at 01:55 PM.
Reply With Quote
  #9670    
Old 1 Hour Ago, 01:36 PM
mappingnewb
 
Join Date: Apr 2014
Gender: Male
Hi, I'm new to scripting and to this forum in general so I apologize if I'm placing this question in the wrong place.

When I open XSE (1.1.1, the latest version I believe?) and open Fire Red, the text appears blank. When I open various scripts from Advance map, its still blank. It shows the number of lines each script has (eg. 0001, 0002, 0003 on the left corner, highlighting whichever line I'm at). I can also use the arrow buttons to move across the script, and I can type stuff in, but each word is invisible.

If anyone can tell me why this is happening I would be very grateful.
Reply With Quote
  #9671    
Old 1 Hour Ago, 01:59 PM
Teh Blazer's Avatar
Teh Blazer
Divider of Zero
 
Join Date: Feb 2009
Location: 'MERICA
Age: 18
Gender: Male
Nature: Relaxed
Quote:
Originally Posted by Ninja Surskit View Post
Made this level script, having two problems. One of them is that the lass (0xC) doesn't move, and the other one is that the player can't move after it finishes.
Spoiler:
'---------------
#org 0x71A2DC
#raw 0x2
#raw pointer 0x871A2E2
#raw 0x0

'---------------
#org 0x71A2E2
#raw word 0x4001
#raw word 0x0
#raw pointer 0x8805051
#raw word 0x0

'---------------
#org 0x805051
checkflag 0x200
if 0x1 goto 0x880541D
lock
msgbox 0x88051CD MSG_NORMAL '"[green_fr]Mayor: Everyone come her..."
msgbox 0x8805231 MSG_NORMAL '"[black_fr]Youngster: Important\nan..."
msgbox 0x880525F MSG_NORMAL '"[red_fr]Lass: What?"
msgbox 0x8805270 MSG_NORMAL '"[green_fr]No time for questions! C..."
applymovement 0xA 0x8805420
applymovement 0xB 0x8805420
applymovement 0x19 0x8805420
applymovement 0x9 0x8805420
applymovement MOVE_PLAYER 0x8805420
waitmovement 0x0
applymovement MOVE_PLAYER 0x8805423
applymovement 0xA 0x8805433
applymovement 0x19 0x880543C
applymovement 0xD 0x8805444
waitmovement 0x0
msgbox 0x8805297 MSG_NORMAL '"[green_fr]Now that I have gathered..."
msgbox 0x880533A MSG_NORMAL '"[green_fr]I had heard some rumors ..."
msgbox 0x88053C0 MSG_NORMAL '"[green_fr]I will be giving each of..."
msgbox 0x8805403 MSG_NORMAL '"Up first is the camper!"
applymovement 0xE 0x8805454
waitmovement 0x0
msgbox 0x8805459 MSG_NORMAL '"[green_fr]Camper! I have two Pokém..."
msgbox 0x88054D9 MSG_NORMAL '"[green_fr]Shroomish it is! Here it..."
applymovement 0xA 0x8805512
waitmovement 0x0
msgbox 0x880551A MSG_NORMAL '"[blue_fr]Thank you sir!"
applymovement 0xA 0x880552E
hidesprite 0xA
applymovement 0xE 0x8805534
waitmovement 0x0
msgbox 0x8805538 MSG_NORMAL '"[green_fr]Now, lass. It is your tu..."
msgbox 0x880558C MSG_NORMAL '"[red_fr]I would like the Nidoran p..."
msgbox 0x88055B2 MSG_NORMAL '"[green_fr]Alright, here it is. Now..."
applymovement 0xC 0x88055F4
msgbox 0x88055DC MSG_NORMAL '"[red_fr]Thank you so much!"
applymovement 0xC 0x88055F7
hidesprite 0xC
msgbox 0x8805600 MSG_NORMAL '"[green_fr]Up next is... the bug ca..."
applymovement MOVE_PLAYER 0x8805624
applymovement 0xB 0x8805624
waitmovement 0x0
applymovement 0xB 0x8805627
waitmovement 0x0
msgbox 0x8805690 MSG_NORMAL '"[green_fr]You.. you have always lo..."
msgbox 0x8805714 MSG_NORMAL '"[orange_fr]I would like Surskit."
msgbox 0x880572F MSG_NORMAL '"[red_fr]You already know, be caref..."
msgbox 0x8805752 MSG_NORMAL '"[orange_fr]Thank you sir!"
applymovement 0xB 0x8805766
applymovement 0xE 0x880576F
waitmovement 0x0
msgbox 0x8805773 MSG_NORMAL '"[player] Alright r now that you ..."
msgbox 0x8805821 MSG_YESNO '"Do you want Sneasel?"
compare LASTRESULT 0x1
if 0x1 goto 0x8805838
compare LASTRESULT 0x0
if 0x0 goto 0x8805923
end

'---------------
#org 0x80541D
release
end

'---------------
#org 0x805838
givepokemon 0xD7 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x880588F MSG_KEEPOPEN '"[black_fr]Got the Sneasel from the..."
waitfanfare
closeonkeypress
setflag 0x828
msgbox 0x88058B4 MSG_YESNO '"[black_fr]Would you like to give y..."
compare LASTRESULT 0x1
if 0x1 goto 0x8805877
compare LASTRESULT 0x0
if 0x1 goto 0x88058E9
end

'---------------
#org 0x805923
givepokemon 0xCF 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox 0x8805962 MSG_KEEPOPEN '"[black_fr]Got the Gligar from the ..."
waitfanfare
closeonkeypress
setflag 0x828
msgbox 0x88058B4 MSG_YESNO '"[black_fr]Would you like to give y..."
compare LASTRESULT 0x1
if 0x1 goto 0x8805877
compare LASTRESULT 0x0
if 0x1 goto 0x88058E9
end

'---------------
#org 0x805877
setvar 0x8004 0x0
call 0x8805887
goto 0x88058F0

'---------------
#org 0x8058E9
closeonkeypress
goto 0x88058F0

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

'---------------
#org 0x8058F0
msgbox 0x88058FE MSG_NORMAL '"[red_fr]Now go [player]..\nPlease ..."
setflag 0x200
release
end


'---------
' Strings
'---------
#org 0x8051CD
= [green_fr]Mayor: Everyone come here to the\nmiddle of the town! I have an\limportant announcement to make.

#org 0x805231
= [black_fr]Youngster: Important\nannouncement? What?

#org 0x80525F
= [red_fr]Lass: What?

#org 0x805270
= [green_fr]No time for questions! Come\nhere!

#org 0x805297
= [green_fr]Now that I have gathered all you\nyoung ones here, there is\lsomething I must say. There were\lonce two rivaling evil teams in\lHoenn, Team Magma, and Team Aqua.

#org 0x80533A
= [green_fr]I had heard some rumors that\nthey have been spotted here in\lRegma.. And that can't mean\lanything good. Now that I've said\lthat..

#org 0x8053C0
= [green_fr]I will be giving each of you a\nPokémon to protect yourselves!

#org 0x805403
= Up first is the camper!

#org 0x805459
= [green_fr]Camper! I have two Pokémon\nhere. I want you to choose one of\lthese two: Shroomish or Sandshrew.\p Blue-fr Shroomish please!

#org 0x8054D9
= [green_fr]Shroomish it is! Here it is\ncamper, now be careful!

#org 0x80551A
= [blue_fr]Thank you sir!

#org 0x805538
= [green_fr]Now, lass. It is your turn to\nchoose. Do you want a Bulbasaur or\la Nidoran(F)?

#org 0x80558C
= [red_fr]I would like the Nidoran please!

#org 0x8055B2
= [green_fr]Alright, here it is. Now be\ncareful.

#org 0x8055DC
= [red_fr]Thank you so much!

#org 0x805600
= [green_fr]Up next is... the bug catcher.

#org 0x805690
= [green_fr]You.. you have always loved\nto catch Pokémon but you were too\lyoung to keep them. Now you get to\lchoose one: Surskit or Paras.

#org 0x805714
= [orange_fr]I would like Surskit.

#org 0x80572F
= [red_fr]You already know, be careful.

#org 0x805752
= [orange_fr]Thank you sir!

#org 0x805773
= [player] Alright r now that you are\nthe only one left.. choose.\lYou have Sneasel ang Gligar. The\lreason I called you last is\lbecause you get to choose from the\lstrongest ones.

#org 0x805821
= Do you want Sneasel?

#org 0x80588F
= [black_fr]Got the Sneasel from the mayor.

#org 0x8058B4
= [black_fr]Would you like to give your\nPokémon a nickname?

#org 0x805962
= [black_fr]Got the Gligar from the mayor.

#org 0x8058FE
= [red_fr]Now go [player]..\nPlease be careful..


'-----------
' Movements
'-----------
#org 0x805420
#raw 0x62 'Exclamation Mark (!)
#raw 0xFE 'End of Movements

#org 0x805423
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1 'Face up
#raw 0xFE 'End of Movements

#org 0x805433
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x80543C
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x805444
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1D 'Step Down (Fast)
#raw 0x5 'Face Up (Faster)
#raw 0xFE 'End of Movements

#org 0x805454
#raw 0x1F
#raw 0x1F
#raw 0x1D
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements

#org 0x805512
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x4 'Face Down (Faster)
#raw 0xFE 'End of Movements

#org 0x80552E
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x805534
#raw 0xB 'Step Right (Very Slow)
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements

#org 0x8055F4
#raw 0x66 'Happy (^_^)
#raw 0xFE 'End of Movements

#org 0x8055F7
#raw 0x12 'Step Left (Normal)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x805624
#raw 0x63 'Question Mark (?)
#raw 0xFE 'End of Movements

#org 0x805627
#raw 0x1D 'Step Down (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x20 'Step Right (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x805766
#raw 0x1F 'Step Left (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0x1E 'Step Up (Fast)
#raw 0xFE 'End of Movements

#org 0x80576F
#raw 0x20 'Step Right (Fast)
#raw 0x0 'Face Down
#raw 0xFE 'End of Movements


Thanks :)
Level scripts are different in that they don't use the checkflag thing you put at the beginning, they use a setvar instead. Level scripts only activate if the variable is set to that number so if you're using var, let's say 4012, and you know it's already set at 0, then all you have to do is use setvar 4012 0x[anything not 0, so we'll use 1] somewhere in the script where the player has to come across it in the script (I usually put it in the beginning because you'll always start at the beginning) and then the script won't activate again once it finishes. I think the reason you cannot move is either because you're using the "look down" movement on a character in advance map on the screen, or it's because the script keeps looping back to the beginning and ending because the flag was already set.

As for your lass not moving, it's probably because you forgot to put "waitmovement 0x0" after her applymovement command.

Quote:
Originally Posted by mappingnewb View Post
Hi, I'm new to scripting and to this forum in general so I apologize if I'm placing this question in the wrong place.

When I open XSE (1.1.1, the latest version I believe?) and open Fire Red, the text appears blank. When I open various scripts from Advance map, its still blank. It shows the number of lines each script has (eg. 0001, 0002, 0003 on the left corner, highlighting whichever line I'm at). I can also use the arrow buttons to move across the script, and I can type stuff in, but each word is invisible.

If anyone can tell me why this is happening I would be very grateful.
Hmm, have you tried taking a script from the game and copying and pasting the address into XSE? Also, do you mean you can see the script but you can't add anything to it?
__________________
Coming soon...
Reply With Quote
Reply
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 03:08 PM.


Style by Nymphadora, artwork by Sa-Dui.
Like our Facebook Page Follow us on Twitter © 2002 - 2014 The PokéCommunity™, pokecommunity.com.
Pokémon characters and images belong to The Pokémon Company International and Nintendo. This website is in no way affiliated with or endorsed by Nintendo, Creatures, GAMEFREAK, The Pokémon Company or The Pokémon Company International. We just love Pokémon.
All forum styles, their images (unless noted otherwise) and site designs are © 2002 - 2014 The PokéCommunity / PokéCommunity.com.
PokéCommunity™ is a trademark of The PokéCommunity. All rights reserved. Sponsor advertisements do not imply our endorsement of that product or service. User generated content remains the property of its creator.