Spoiler:#dynamic 0x800000
#org @start
trainerbattle 0x1 0x023 0x0 @before @after @done
end
#org @done
fadescreen 0x1
hidesprite 4
setflag 0x20B
fadescreen 0x0
release
end
#org @before
= My name is Flora, once I was the\nleader of Magnol-City. I couln't\lstand it anymore! All these\ltrainers that came to the GYM and\ltried to harm my sweet little plant\lPokemon with their disgusting\lother-typed Pokemon. Here in this\lhideout we planned our\lPLANT-EMPIRE! And were ready!
#org @after
= Maybe you defeated me now, but\ndon't worry, we will meet again!
You have to use a type 2 level script for that. As your trigger var (the one that you enter at 'flag' in AdvanceMap) you can take 0x4000. This var gets reset to 0 every time you enter a new map, thus you have to write 0 at 'value'.How do I make a level script repeat? I just want some text to be said every time you walk in but taking away setvar doesnt work. What type of level script do I use and what do I need in the script.
Thanks
Hi simple question.. What vars are safe to use? Or is any var number safe to use? I havent seen a tutorial that elaborates vars.. If theres any Id appreciate it if someone would provide me with the link
Hi simple question.. What vars are safe to use? Or is any var number safe to use? I havent seen a tutorial that elaborates vars.. If theres any Id appreciate it if someone would provide me with the link
You can extend the flags, too! (this is for FireRed only)
link
REPOST: (Sorry, but my post got a whole bunch of questions answered before it.)
For this script, the issue is that the nicknaming portion (#org @name) just brings up a bunch of weird text that doesn't make any sense. If you avoid nicknaming the Pokemon, the script will continue on with the professor and Milton going through the door and hiding away to give off the illusion that they went into the lab. This is the huge issue I am having. Rather than having the main character walk to the doors and warp inside the lab, he instantly warps to the map location and appears on the outside of the building, not even the inside. Does anyone know how to fix this? (Also, I tried to make a script happen off of interacting with a Poke-Ball instead of stepping on a script tile. If that is the issue, than how do I make long scripts like this happen off of interacting with a Poke-Ball?)
Spoiler:
#dynamic 0x801F3E
#org @start
checkflag 0x203
if 0x1 goto @done
msgbox @1 0x5
compare 0x800D 0x1
if 0x1 goto @take
msgbox @2 0x6
release
end
#org @take
givepokemon 0x1 0x5 0x0 0x0 0x0 0x0
fanfare 0x13E
msgbox @3 0x4
waitfanfare
closeonkeypress
setflag 0x203
msgbox @4 0x5
compare 0x800D 0x1
if 0x1 call @name
msgbox @5 0x6
applymovement 0x07 @walk1
waitmovement 0x0
hidesprite 0x07
setflag 0x204
sound 0x9
applymovement 0x09 @walk2
waitmovement 0x0
hidesprite 0x09
setflag 0x205
sound 0x9
applymovement 0xFE @walk3
warp 0x4 0x3 0x3 0x0 0x0
sound 0x9
setvar 0x4029 0x1
release
end
#org @name
call 0x1A74EB
return
#org @done
release
end
#org @1
= Prof. Karri: Oh, you would like to\npick the grass Pokemon,\p[lightgreen_fr]Bulbasaur?
#org @2
release
end
#org @3
= [lightgreen_fr]You received a Bulbasaur!
#org @4
= [lightgreen_fr]Would you like to give a\nnickname to Bulbasaur?
#org @5
= Prof. Karri: Make sure you take\ngood care of that [lightgreen_fr]Bulbasaur.\pNow that you have chosen your\nPokemon, let's go inside so that\pI can show you around.
#org @walk1
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0xFE
#org @walk2
#raw 0x12
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
#org @walk3
#raw 0x13
#raw 0x13
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xFE
...
applymovement [COLOR="Red"]0xFF[/COLOR] @walk3
[COLOR="red"]waitmovement 0x0[/COLOR]
warp 0x4 0x3 0x3 0x0 0x0
[COLOR="red"]waitstate[/COLOR]
[COLOR="Blue"]sound 0x9
setvar 0x4029 0x1
release
end[/COLOR]
...
...
msgbox @2 0x6
...
...
#org @2
[COLOR="Red"]release
end[/COLOR]
...
I'm having an issue with this scipt. The weather part works fine but the map won't darken. I'm using level script #3 because game freak uses that in Dewford gym to darken. Does it not work because it's between two maps? Does it need a warp to work? I want it to happen as your sailing into the map.
Spoiler:#org 0x348D10
checkflag 0x20
if 0x1 goto 0x348D30
setweather 0x6
doweather
darken 0x0
end
#org 0x348D30
end
Thanks
I'm having an issue with this scipt. The weather part works fine but the map won't darken. I'm using level script #3 because game freak uses that in Dewford gym to darken. Does it not work because it's between two maps? Does it need a warp to work? I want it to happen as your sailing into the map.
Spoiler:#org 0x348D10
checkflag 0x20
if 0x1 goto 0x348D30
setweather 0x6
doweather
darken 0x0
end
#org 0x348D30
end
Thanks