View Single Post
  #2432    
Old October 23rd, 2009 (12:59 AM).
Lyzo's Avatar
Lyzo
On vacation
 
Join Date: Mar 2007
Location: The Netherlands
Age: 20
Gender: Male
Nature: Bold
Send a message via Windows Live Messenger to Lyzo
Quote originally posted by pokefreak2:
hi wen i try to use this script i warp as soon as i start walking with the cpu instead of
when i get there then warp is something wrong? heres the script
Spoiler:
#dynamic 0x800000
#org @start
msgbox @poke 0x5
compare 0x800d 0x1
if 0x1 goto @followme
if 0x0 goto @ok
release
end

#org @poke
= test


#org @followme
applymovement 0xFF @follow
applymovement 0x02 @leader
warp 0x4 0x3 0x0 0x0006 0x000C
end


#org @ok
applymovement 0xFF @back

#org @follow
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFF

#org @leader
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFF

#org @back
#raw 0x1F
#raw 0xFF
Yep, you missed the waitmovement 0x0
You shouldn't use the compare command like that just use it like this:
Just copy this script and it should work

Spoiler:
#dynamic 0x800000
#org @start
msgbox @poke 0x5
compare 0x800d 0x1
if 0x1 goto @followme
applymovement 0xFF @back
waitmovement 0x0
release
end


#org @poke
= test


#org @followme
applymovement 0xFF @follow
applymovement 0x02 @leader
waitmovement 0x0
warp 0x4 0x3 0x0 0x6 0xC
end

#org @follow
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFF

#org @leader
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x20
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1D
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0x1F
#raw 0xFF

#org @back
#raw 0x1F
#raw 0xFF


Quote originally posted by frogpony:
Edit: Don't worry i figure it out.

Now i know your not supposed to "request scripts" here but:
I was wondering if anyone could explain how i'd go about changing the games brightness/colors with scripting (to night style...no, not with a clock or anything!) as i have an idea for a new HM or abilitiy.
...or would that be asm related...
Changing palettes in game is ASM related.
__________________


Thank you The Blueprint !!!