• Our software update is now concluded. You will need to reset your password to log in. In order to do this, you will have to click "Log in" in the top right corner and then "Forgot your password?".
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Script] spritebehave not work after movesprite(2)

Dinisk

DinisK
89
Posts
7
Years
  • Age 24
  • Seen Apr 27, 2019
after using movesprite (2), the sprite teleports to the indicated point and does not walk (spritebehave 0x2). I need instant teleporting (movesprite) then put spritebehave 0x2 and of course if I leave the map and come back (movesprite2). If I use all three of them, then the sprite does not move until I speak with it. In the map level it's still the same. Help to understand its functions.Manually specify the coordinates and wait half a minute movement npc, no.
//manipulations with id & flag no var, I would like to avoid

#dynamic 0x074B0C0

#org @start
compare 0x4050 0x2//what event happened to activate this plate script
if 0x3 call @01 //if var 0x4050 =0x3 call 0x3
end

#org @01
setvar 0x4050 0x3//now nothing reactivate this script
spriteface 0x13 0x2
pause 0x3
spriteface 0xff 0x1
sound 0x15
applymovement 0x13 @sign
waitmovement 0x0
msgbox @tell 0x2
applymovement 0x13 @move //goes out of view of the player to teleport
waitmovement 0x0//player wait move npc
spritebehave 0x13 0x2//set walk around
movesprite 0x13 0x4 0x14//teleporting
end

#org @tell
= Hey stop.

#org @move //leaves with the camera
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0x10
#raw 0xfe

#org @sign// sign !
#raw 0x62
#raw 0xfe
 

Dinisk

DinisK
89
Posts
7
Years
  • Age 24
  • Seen Apr 27, 2019
after 52 hours of various manipulations, I realized where the error was. Look to prevent the same. goto lvlscript 03->

compare 0x4050 0x1
if 0x4 call @01
compare 0x4050 0x3
If 0x4 call @02
end


#org @01
movesprite2 0xF 0x4 0x1b
//return*
end

#org02 //it s not work because it worked @ 01,i change fitst if 0x1* it s work,stop..while I wrote it, I realized that use return also works
movesprite 0x13 0x2
end
 
Back
Top