Overclocked
Paired with......Myself
- 72
- Posts
- 18
- Years
- Age 31
- Seen May 1, 2007
Does anyone know the command to change a sprite? e.g. Turn a hidden person into an old man or change an old man into an old woman.
FINALLY! The setflag works! I looked at another script that had a setflag and that guided me. Just in case anyone needs help with setflags, I'll post the script so you get a good idea of what to do.
I need it to change whilst playing the game.Just use advance map to change the pic by number.
Well, I asked you to do something else.. but -MEH-Okay, here's what happens.
1. I say Yes to him and get Bulbasaur.
2. I talk to him and he asks how it's doing.
3. I reset the ROM.
4. I say No to him.
5. I talk to him and he asks how it's doing even thought I don't even have it yet. So that would mean that I'd never get the chance to get it if I say No.
Do you understand now?
Well, I asked you to do something else.. but -MEH-
Try this. I don't know if it works.. but if it does, I'm becoming a good scripter :P
Spoiler:#org 0xD00000
lock
faceplayer
message 0xD00100
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto 0xD00200
checkflag 0x10A
if 0x1 jump 0xD00500
message 0xD00300
boxset 0x6
release
end
#org 0xD00200
checkflag 0x10A
if 0x1 jump 0xD00500
message 0xD00400
boxset 0x6
setflag 0x10A
givepokemon 0x1 0x5 0x0
release
end
#org 0xD00500
message 0xD00600
boxset 0x6
release
end
'-------
'Strings
'-------
#org 0xD00100
= I really like BULBASAUR.\nDo you?
#org 0xD00400
= You do? Great! Then you deserve to get\none!\p\v\h01 received the BULBASAUR!
#org 0xD00300
= You don't? Too bad.
#org 0xD00600
= How's that BULBASAUR coming along?
]#org 0xD00000
lock
faceplayer
message 0xD00100
boxset 0x5
compare LASTRESULT 0x1
if 0x1 0xD00200
checkflag 0x10A
if 0x1 0xD00500
message 0xD00300
boxset 0x6
release
end
#org 0xD00200
checkflag 0x10A
if 0x1 0xD00500
message 0xD00400
boxset 0x6
setflag 0x10A
givepokemon 0x1 0x5 0x0
release
end
#org 0xD00500
message 0xD00600
boxset 0x6
release
end
#org 0xD00100
= I really like BULBASAUR.\nDo you?
#org 0xD00400
= You do? Great! Then you deserve to get\none!\p\v\h01 received the BULBASAUR!
#org 0xD00300
= You don't? Too bad.
#org 0xD00600
= How's that BULBASAUR coming along?
Why do you use 'goto' and 'jump' everywhere?
Just use if 0x1 0x( offset )
And strings doesn't belongs there, some people may paste it in their scripts.
Yes indeed !And he has rem statements in from of the word strings so that won't be processed!
I tought so too.. I always use the 'goto' but not with PokéScript ^^He uses goto and jump cause in the most recent versions of scripted that's how it says to work. There is also if call and if gosub for returning subroutines.
Well.. the 'boxset 0x?' I don't get either.. Christos answerd my question about that in the SQT I think ^^What I don't get is why you're using boxset 5 (and 6 for text)....
Isn;t it supposed to be
0 text.
1 text no close.
2 yes/no box
3 text close on any keypress
4 5 6 may overlap or something cause of the bit setting (I dunno) but normat text display should be 0 (1 for long text) and yes/no boxes should be 2 !
#org 0xD00000
lonk
faceplayer
checkflag 0x10A
if 0x1 goto 0xD00500
message 0xD00100
boxset 0x2
compare LASTRESULT 0x1
if 0x1 goto 0xd00200
message 0xd00100
boxset 0
release
end
#org 0xD00200
checkflag 0x10A
if 0x1 jump 0xD00500
message 0xD00400
boxset 0x6
setflag 0x10A
givepokemon 0x1 0x5 0x0
release
end
#org 0xD00500
message 0xD00600
boxset 0x6
release
end
overclock said:I need it to change whilst playing the game.
You see I'm doing a flashback thing in my game and I need a thing (sprite No.152) to change into a MewTwo. I tried using movesprite but it doesn't work when the sprite is hidden away on the side of the map.
Woah, I guess I slept through a lot of posts last night! Well, to answer the question about the 0x5, 0x5 is used for Yes/No, is it not? And notice that he says "You do?" and "You don't?". And as for the PokeScript, I'm not even sure if I'm using it right. :P Am I just supposed to type this?
#kapush (.rbc file) (offset)
and then
#kapop (.gba ROM)
Because after I do that and press Enter, it says it processed 0 lines.
#org 0xD00000
lock
faceplayer
checkflag 0x10A
if 0x1 goto $GotBulba
message $TxtLikeBulba
boxset 0x2
compare LASTRESULT 0x1
if 0x1 goto $WantPokemon
message $TxtNoBulba
boxset 0
release
end
#org $WantPokemon
message $TxtHereBulbu
boxset 0x6
setflag 0x10A
givepokemon 0x1 0x5 0x0
release
end
#org $GotBulba
message $TxtGotBulba
boxset 0x6
release
end
#org $TxtLikeBulba
= I really like BULBASAUR.\nDo you?
#org $TxtHereBulba
= You do? Great! Then you deserve to get\none!\p\v\h01 received the BULBASAUR!
#org $TxtNoBulba
= You don't? Too bad.
#org $TxtGotBulba
= How's that BULBASAUR coming along?
For PokéScript.. use PokéScripts topic ;)And as for the PokeScript, I'm not even sure if I'm using it right. :P Am I just supposed to type this?
#kapush (.rbc file) (offset)
and then
#kapop (.gba ROM)
Because after I do that and press Enter, it says it processed 0 lines.
#org 0xD00000
lock
faceplayer
checkflag 0x10A
if 0x1 goto 0xD00500
message 0xD00100
boxset 0x5
compare LASTRESULT 0x1
if 0x1 goto 0xD00200
message 0xD00300
boxset 0x6
release
end
#org 0xD00200
checkflag 0x10A
if 0x1 jump 0xD00500
message 0xD00400
boxset 0x6
setflag 0x10A
givepokemon 0x1 0x5 0x0
release
end
#org 0xD00500
message 0xD00600
boxset 0x6
release
end
#org 0xD00100
= I really like BULBASAUR.\nDo you?
#org 0xD00400
= You do? Great! Then you deserve to get\none!\p\v\h01 received the BULBASAUR!
#org 0xD00300
= You don't? Too bad.
#org 0xD00600
= How's that BULBASAUR coming along?
Well, you can put 'jingle' before the text.. OR use the 'fanfare' command.. but then you need to look for the right "sound-var"The only little problem is that I don't know how to make that receive Pokemon sound happen. But that doesn't really matter.
after the boxset command that says you get the pokemon.fanfare <number>
waitforfanfare <number>