~*Pikafan*~
Man I gotta stop leaving!
- 202
- Posts
- 17
- Years
- Age 30
- Seen Oct 23, 2011
Right Click the file when it's saved as an .rbc file. You should have an option called Compile Script. Click it, it should work.
Right Click the file when it's saved as an .rbc file. You should have an option called Compile Script. Click it, it should work.
trainerbattle 1 007 $before $after $then
Hello
can someone explain me how to make a script,
like this I want the script to don't let you through untill you have been somewhere.
Like the old man script in viridian city.
Thanks.
To do that, you're gonna have to use flags..when you're trying to get to the next place (like the oldman in viridian city), in the script, it is a command at the beginning witch is called Checkflag, that checks if that flag is set, for an example,
#org $begin
checkflag 0x200 \\This checks if flag 0x200 is set, if true, then it will goto ..-
if 1 goto $done // -..the offset $done.
release
end
to set a flag, u have this in a script:
setflag 0x<number> example setflag 0x200, now that sets the flag 0x200
when that flag is set, you can gain accsess to the place (like in old man script in viridian city)
and to clear a flag, simply use this command in a script: clearflag 0x<number>
also, when a flag is set, u can't use it again, only if you "cleared" it..
I have a question about movement scripts. When you make a movement happen, if the person isn't removed from the screen (as in Disappear in the command 0x60 or have a flag set to make them disappear) but they walk off of it, will they return to their original spot? Or is there a command that does that? Because I was going to make a script where some guy takes you to the lab and then walks away, him returning back to his original spot.
Ok i don't use irish witches compiler.... (Have no idea how to just yet 0.o)
Anyways i have been using scriptED.. i have a script that works but i would like to add something to it....as in blah blah blah was added to the pokedex so on so forth.Well here is my script so far;
#org 0x800200
message 0x800400
boxset 0x06
givepokemon 25 100 0
end
#org 0x800300
= Take this pikachu!
1) What would i put and where for it to stop saying here take a pikachu and say something else?
2)How would i make it stop giving me level 100 pikachu's?
3)How would i make it say (And show the page) "Pikachu was added to the pokedex"
Any help for that would be great. Thanks in advance.
Oh and that is the script i made and it works..I think it is just a little empty.
#org $StarHop
lock
faceplayer
checkflag 0x829
if 0 goto $NeedDex
checkflag 0x828
if 1 goto $TakeCare
message $GetHop
$GetHop 1 = Ow, my back!\pExcuse me.\pWould you take care of Hoppip for me\lme?
callstd 5
compare LASTRESULT 1
if 0 goto $DontHop
givepokemon 187 5 0
jingle
message $GotHop
$GotHop 1 = You recieved a Hoppip!
setflag 0x828
message $NamePoke
$NamePoke 1 = Well of course you want to name it.
namepokemon
message $BeGood
$BeGood 1 = Be good to Hoppip now, ya here!
#org $NeedDex
message $NeedDex
$NeedDex 1 = Did you know that a friend of mine\lhas an old Pokedex that he doesn't\nneed anymore?\lYou should pay him a visit.
callstd 6
release
end
#org $DontHop
message $DontHop
$DontHop 1 = Fine, don't help an old man in need.\lHumph!
callstd 6
release
end
#org $TakeCare
message $TakeCare
$TakeCare 1 = Take care of your Pokemon, and\lyourself!
callstd 6
release
end