View Single Post
  #8158    
Old May 7th, 2013 (11:19 AM).
LaDestitute's Avatar
LaDestitute LaDestitute is offline
Razor Sharp
 
Join Date: Apr 2013
Location: West Coast, USA
Gender: Male
Nature: Calm
Posts: 84

Can someone proof-check this for me? I'm using a compare variable to set different NPC movement depending on variable value (with the three script events sharing the same variable, but different values) but it's not working as I thought.

Code:
#dynamic 0x800000

#org @start countpokemon compare 0x800D 0x1 if 0x1 goto @continue goto @nopokemon

#org @nopokemon compare 0x4000 0x1 if 0x1 goto @nopass0 if 0x2 goto @nopass1 if 0x3 goto @nopass2

#org @continue release end

#org @nopass0 applymovement 0x1 @move3 waitmovement 0x0 msgbox @1 0x6 applymovement 0x1 @move4 waitmovement 0x0 release setflag 0x200 end

#org @nopass1 applymovement 0x1 @move1 waitmovement 0x0 msgbox @1 0x6 applymovement 0x1 @move2 waitmovement 0x0 release setflag 0x200 end

#org @nopass2 applymovement 0x1 @move5 waitmovement 0x0 msgbox @1 0x6 applymovement 0x1 @move6 waitmovement 0x0 release setflag 0x200 end

#org @move1 #raw 0x62 #raw 0x1D #raw 0x1D #raw 0xFE

#org @move2 #raw 0x11 #raw 0x11 #raw 0xFE

#org @move3 #raw 0x62 #raw 0x0A #raw 0x1D #raw 0x1D #raw 0xFE

#org @move4 #raw 0x11 #raw 0x11 #raw 0x0B #raw 0xFE

#org @move5 #raw 0x62 #raw 0x0B #raw 0x1D #raw 0x1D #raw 0xFE

#org @move6 #raw 0x11 #raw 0x11 #raw 0x0A #raw 0xFE

#org @1 = I can't let you pass because you\ndon't have any Pokémon.\pIt's not safe to go out without\nat least one.