#dynamic 0x800000
#org @start
lock
faceplayer
preparemsg @introwaitmsg
playsong 0x11B 0x0
waitkeypress
trainerbattle 0x3 0x001 0x0 @defeat
msgbox @outro MSG_KEEPOPEN
fadescreen 0x1closeonkeypress
hidesprite 0xC
fadescreen 0x0
release
end
#org intro
= Hmmm?\nWho are you?\pOh it doesn't matter.\pYou're not getting past me.
#org defeat
= Oh COME ON!
#org outro
= Hmph!\pYou only lost because my\nPOK\eMON are weak.\pYou've not seen the\nlast of me!
Spoiler:
#dynamic 0x800000
#org @start
checkflag 0x200
msgbox @intro 0x4 ' just a simple msgbox will do and you don't need the play song, since the song comes on anyway when the battle starts]
trainerbattle 0x0 0x001 0x0 @before @defeat ' trainerbattle 0x0 [Type of battle] 0x001 [Trainer ID] 0x0 [Reserved Byte (normally 0x0)] @before [Pointer to Message When Seen] @after [Pointer to Winning Message]
msgbox @outro 0x4 ' just a 0x4
fadescreen 0x1 ' blinking effect
fadescreen 0x0
hidesprite 0xC
setflag 0x200
release
end
#org intro
= Hmmm?\nWho are you?\pOh it doesn't matter.\pYou're not getting past me.
#org @before
= [text you want to display, before the battle, in the battle scene]
#org defeat
= Oh COME ON!
#org outro
= Hmph!\pYou only lost because my\nPOK\eMON are weak.\pYou've not seen the\nlast of me!
The flags are there so the script won't repeat itself after stepping on the script tile. Put the person ID of the OW as '0200' if you want a permanent disappearance.
#org @2
= Tom: Now you two. \nI think I know what Pokemon are right \lfor you.\pMark: Me and Holly have already got ours \nI got a Squirtle and holly got a \lTreeko.\pTom: Now Lunar here is your \npokemon.\p[red_fr]Lunar received an Eevee!\pTom: [PLAYER] it was hard to decide what \npokemon you should have but eventually \lI decided.
Makes it a tad more convenient. The givepokemon part should work.
And make sure you've got the correct OW numbers for the 'hidesprite' or do you mean you want the OWs to permanently disappear?
I want them to permanently dissappear
It can't end now. Not like this.
I hope you’ll remember, there is something good in goodbye.
Then you'll need to put the person ID (of all 4 sprites) as '0200'. The person ID will depend on the setflag you're using.
are you sure that would work? because how can I do applymovement to one sprite when they all have the same event No. oops sorry was thinking of the wrong thing thanks!
It can't end now. Not like this.
I hope you’ll remember, there is something good in goodbye.
Tuna97, did you set the Unknown to 0003 and Var number to 4050 (or 5040) in Advance Map? Click on the green script tile and set them (on the right). Hope that helps.
#org @2
= hi..i am Serina \nthe leader of Alaska. \lyou are
now a child \lgrunt...how many missions \lyou
complete thats your rank \lhigher..the highest
is \lto be a leader of \la team...maybe someday \lyou
have your own team. \lnow...your first mission \pis
to steal your first \npokemon...go into
prof.Oaks \llab and steal his pokemon \lafter that
you can find \lme in Desire route \lgood luck!
i think thats all there were a few errors is this right BTW ^^
It can't end now. Not like this.
I hope you’ll remember, there is something good in goodbye.
Tuna97, did you set the Unknown to 0003 and Var number to 4050 (or 5040) in Advance Map? Click on the green script tile and set them (on the right). Hope that helps.
Chad -
now it say when i want to compile the script it says unknown keyword ''&h10'' at line 25..why??
#org @2
= hi..i am Serina\nthe leader of Alaska.\pyou are now a child\ngrunt...how many missions\pyou complete thats your rank\nhigher..the highest is\pto be a leader of\na team...maybe someday\pyou have your own team.\nnow...your first mission\pis to steal your first\npokemon...go into prof.Oaks\plab and steal his pokemon\nafter that you can find\pme in Desire route\ngood luck!
Tuna97, did you set the Unknown to 0003 and Var number to 4050 (or 5040) in Advance Map? Click on the green script tile and set them (on the right). Hope that helps.
Once again I have a problem with a script. Hopefully this time I'll get an answer. I didn't for the second question I asked. I had to fix it myself... Bleh.
Well anyways, the problem with the following script, a simple (at least I think it might be simple) rival battle script. The problem is, when talking to my rival to activate the script, nothing happens. Nothing at all. The game doesn't freeze, it just plays the little 'A button press' sound and then nothing happens. I really don't know why. This script was made in XSE, and the game hacking is Fire Red. Some info about the Person event the script is in:
Movement type: Walk Around
Movement: 00
Trainer: Unchecked
Unknown: 00
View Radius:0000
Person ID: 3FD
Unknown: 00_00
P.S: Variable 4005 is the variable where the starter you picked is kept. At least thats what I set it too.
The Script:
Spoiler:
'----THE FIRST RIVAL BATTLE----
#Dynamic 0x80F66E
#org @start
lock
faceplayer
checkflag 0x3FE
if 0x1 goto @done
compare 0x4005 0x1
if 0x1 goto @fightingstarter
compare 0x4005 0x2
if 0x1 goto @psystarter
compare 0x4005 0x3
if 0x1 goto @darkstarter
release
end
#org @fightingstarter
trainerbattle 0x1 0x148 0x0 @before @after @later
end
#org @psystarter
trainerbattle 0x1 0x146 0x0 @before @after @later
end
#org @darkstarter
trainerbattle 0x1 0x147 0x0 @before @after @later
end
#org @done
msgbox @alreadybattled 0x6
release
end
#org @before
= Hey, [player]! I was thinking, now that\nwe're both POKEMON trainers[.] How\labout a quick battle?
#org @after
= You're strong. I didn't expect\nthis, [...]!
#org @alreadybattled
= Thanks for bringing me the\nPOKEDEX. Next time we battle, I'm\lsure I'll be stronger!
#org @heresyourdex
= Huh? You have something for me?\nWhat is it?\p[...]\pSo this is a POKEDEX? Cool! And,\luh, I've got something for you,\ltoo, [player]. It's a town map. My mom\lgave me two, and told me to give\lone to you. But I, uh, forgot.\lYeah. So here, take it.
Ok, I did that, and I'm getting some results now. But it's still having a problem- it wont perform the 'Look right' motion, execute the rival battle, or give me the town map, as its supposed too. It will just apply movement to the character and then end. I'll post the scripts (theres 3 now, one for each tile) and see if you can help me out.
Script 1, Middle Tile
Spoiler:
'----THE FIRST RIVAL BATTLE----
#Dynamic 0x81034C
#org @start
lock
checkflag 0x3FE
if 0x1 goto @done
setvar 0x4003 0x0
goto @script
end
#org @script
msgbox @getoverhere 0x6
applymovement 0x04 @lookright
waitmovement 0x0
compare 0x4003 0x0
if 0x1 goto @middle
compare 0x4003 0x1
if 0x1 goto @left
compare 0x4003 0x2
if 0x1 goto @right
end
#org @middle
applymovement 0xFF @middlemove
waitmovement 0x0
goto @checkstarter
end
#org @left
applymovement 0xFF @leftmove
waitmovement 0x0
goto @checkstarter
end
#org @right
applymovement 0xFF @rightmove
waitmovement 0x0
goto @checkstarter
end
#org @checkstarter
compare 0x4005 0x1
if 0x1 goto @fightingstarter
compare 0x4005 0x2
if 0x1 goto @psystarter
compare 0x4005 0x3
if 0x1 goto @darkstarter
release
end
#org @fightingstarter
trainerbattle 0x1 0x148 0x0 @before @after @later
end
#org @psystarter
trainerbattle 0x1 0x146 0x0 @before @after @later
end
#org @darkstarter
trainerbattle 0x1 0x147 0x0 @before @after @later
end
#org @done
release
end
#org @before
= Hey, [player]! I was thinking, now that\nwe're both POKEMON trainers[.] How\labout a quick battle?
#org @after
= You're strong. I didn't expect\nthis, [...]!
#org @getoverhere
= Hey, [player]! Come over here and talk\nto me!
#org @heresyourdex
= Huh? You have something for me?\nWhat is it?\p[...]\pSo this is a POKEDEX? Cool! And,\luh, I've got something for you,\ltoo, [player]. It's a town map. My mom\lgave me two, and told me to give\lone to you. But I, uh, forgot.\lYeah. So here, take it.
Very quick question, when I compile the script, which offset should I take?
I use @start
and
@text
So.. which offset?
Use @start.
-----
Okay, level script help. What am I doing wrong? As soon as I enter the map... nothing happens. Music continues, but the map music, not the playsong music. And the player is frozen.
Ok, I did that, and I'm getting some results now. But it's still having a problem- it wont perform the 'Look right' motion, execute the rival battle, or give me the town map, as its supposed too. It will just apply movement to the character and then end. I'll post the scripts (theres 3 now, one for each tile) and see if you can help me out.
right before I posted my script and now most of it is fixed except the give pokemon part, I dont know if this help but its a first pokemon script so the player receives his first pokemon.
#org @2
= Tom: Now you two. \nI think I know what Pokemon are right \lfor you.\pMark: Me and Holly have already got \nours I got a Squirtle and holly \lgot a Treeko.\pTom: Now Lunar here is your \npokemon.\p[red_fr]Lunar received an Eevee!\pTom: [PLAYER] it was hard to decide \nwhat pokemon you should have but \leventually I decided.
#org @7
= [red_fr][PLAYER] received a Torchic
#org @8
= Tom: Well good look on your \nAdventures!