View Single Post
  #1373    
Old June 15th, 2009 (12:35 AM).
HackMew's Avatar
HackMew HackMew is offline
Mewtwo Strikes Back
Crystal Tier
 
Join Date: Jun 2006
Posts: 1,314
Quote originally posted by muzzyguy:
why wont it do the give pokedex thingy
The "give pokedex thingy" is setflag 0x829, for FR/LG. And you're using the opposite command, clearflag.


Quote originally posted by ckret2:
More a flag help question than a script help question, but still. :P

Is the trainer number that A-Trainer provides you also a flag? Like, if I did a script like this:

[...]

And if there's an NPC on another map with the People ID of 1234, after battling this trainer, would that NPC disappear? Or are the trainer numbers and normal flags different?
Just because most people post their scripts so someone can fix them, it doesn't mean this thread can't be a place for general scripting discussion, too. Regarding your question... I highly doubt that. Trainers have their own flags.


Quote originally posted by tyson:
Well guys this script works fine,until the fadescreen occurs than the screen jacks up,crazy parts are everywhere,Ive done the other triggers to go with it...

Spoiler:
#dynamic 0x805946

#org @start
setvar 0x5020 0x0
goto @script
end

#org @script
checkflag 0x1018
if 0x1 goto @done
compare 0x5020 0x0
if 0x1 goto @left
compare 0x5020 0x1
if 0x1 goto @midleft
compare 0x5020 0x2
if 0x1 goto @right
compare 0x5020 0x3
if 0x1 goto @faright
end

#org @left
applymovement 0x08 @move
waitmovement 0x0
goto @cont
end

#org @midleft
applymovement 0x08 @move2
waitmovement 0x0
goto @cont
end

#org @right
applymovement 0x08 @move3
waitmovement 0x0
goto @cont
end

#org @faright
applymovement 0x08 @move4
waitmovement 0x0
goto @cont
end

#org @cont
msgbox @1 0x6
playsong 0x156 0x0
cry 0xFB 0x0
msgbox @2 0x6
wildbattle 0xFB 0x5 0x0
fadescreen 0x1
hidesprite 0x08
fadescreen 0x0
msgbox @3 0x6
goto @begin
end

#org @move
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0xFE

#org @move2
#raw 0x10
#raw 0x10
#raw 0xFE

#org @move3
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0xFE

#org @move4
#raw 0x10
#raw 0x10
#raw 0x13
#raw 0x13
#raw 0xFE

#org @1
= [green_fr]???:bii!

#org @2
= [blue_fr]The Pokedex doesn't seem\ncapable of reading that\pPokemon's data.

#org @3
= [blue_fr]The Pokemon vanished!

#org @begin
compare 0x5020 0x0
if 0x1 goto @left2
compare 0x5020 0x1
if 0x1 goto @midleft2
compare 0x5020 0x2
if 0x1 goto @right2
compare 0x5020 0x3
if 0x1 goto @faright2
end

#org @left2
applymovement 0x09 @move5
waitmovement 0x0
goto @last
end

#org @midleft2
applymovement 0x09 @move6
waitmovement 0x0
goto @last
end

#org @right2
applymovement 0x09 @move7
waitmovement 0x0
goto @last
end

#org @faright2
applymovement 0x09 @move8
waitmovement 0x0
goto @last
end

#org @move5
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x04
#raw 0xFE

#org @move6
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x04
#raw 0xFE

#org @move7
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x04
#raw 0xFE

#org @move8
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x12
#raw 0x12
#raw 0x12
#raw 0x10
#raw 0x04
#raw 0xFE

#org @last
msgbox @why 0x6
fadescreen 0x1
hidesprite 0x09
fadescreen 0x0
setflag 0x1018
release
end

#org @done
release
end

#org @why
= [blue_fr]???:You let CELEBI escape!\pMy name is Giovanni, and\nI own Team Rocket.\pGiovanni:CELEIBI is a\nLegendary Pokemon, and only a\lfew have whitnessed its power.\pGiovanni:That's Team Rockets\nonly objective, is to catch\lall the Legendary Pokemon!\pGiovanni:Hmm!\nWhat's your objective in\llife?\pTo become a Pokemon Master?\pGiovanni:Hmph! pathetic!\pGiovanni:Well I see I kept\nyou long enough.\pGiovanni:I'm sure we'll meet\nagain!
Didn't you know that hidesprite is just temporary? You need to set the flag assigned to the person as well.


Quote originally posted by Preyas:
Okay, I am not even deep into my code and I am pushing through as much as I can, but I only run into problems.

My newest one is whenever I warp/enter the school room map (and only that warp)
It takes me to the map and then freezes with scrolling text. Sometimes it says "You recieve XXXXX(item, usually a pokeball of some sort), and then glitch-speak scrolling from left to right.

Anyone know about this?

I don't know what the problem could be.
Looks like the level script got screwed up. Could be AM fault, and you might want to check the level script structure through XSE. To do that, enable the Professional Header View, and click on the Header tab. From there, copy the Map Script Offset and paste it into XSE. Enable the Level Script option (next to the decompile button) and then decompile. Probably it won't make a lot of sense to you, but feel free to post it.
__________________