View Single Post
  #2433    
Old October 24th, 2009 (01:16 PM). Edited October 24th, 2009 by romancandle.
romancandle romancandle is offline
 
Join Date: Oct 2009
Gender: Male
Nature: Adamant
Posts: 72
Rival Script Problem:
Spoiler:

'---------------
#org 0x1682AB
lockall
checkflag 0x920
if 0x1 goto 0x82D82F8
setvar 0x4001 0x2
goto 0x8800EC1

'---------------
#org 0x2D82F8
hidesprite 0x6
release
end

'---------------
#org 0x800EC1
checkflag 0x920
if 0x1 goto 0x82D82F8
textcolor 0x0
playsong 0x13B 0x0
showsprite 0x6
compare 0x4001 0x0
if 0x1 call 0x82D7187
compare 0x4001 0x1
if 0x1 call 0x82D7187
compare 0x4001 0x2
if 0x1 call 0x82D82FD
pause 0x6
msgbox 0x8188890 0x4 '"[rival]: Hey, [player]\nHave you g..."
compare 0x4031 0x2
if 0x1 call 0x816836D
compare 0x4031 0x1
if 0x1 call 0x816837C
compare 0x4031 0x0
if 0x1 call 0x816838B
msgbox 0x8188974 0x4 '" our mom gave me these shoes for\n..."
closeonkeypress
pause 0xA
playsong 0x13C 0x0
compare 0x4001 0x0
if 0x1 call 0x816839A
compare 0x4001 0x1
if 0x1 call 0x816839A
compare 0x4001 0x2
if 0x1 call 0x81683A5
fadedefault
hidesprite 0x6
setflag 0x920
setflag 0x82F
setvar 0x406C 0x2
setvar 0x4054 0x4F02
release
end

'---------------
#org 0x2D7187
applymovement 0x6 0x81683D9
waitmovement 0x0
faceplayer
return

'---------------
#org 0x2D82FD
applymovement 0x6 0x81683D1
waitmovement 0x0
faceplayer
return

'---------------
#org 0x16836D
trainerbattle 0x9 0x149 0x0 0x8188959 0x818DE1A
return

'---------------
#org 0x16837C
trainerbattle 0x9 0x14A 0x0 0x8188959 0x818DE1A
return

'---------------
#org 0x16838B
trainerbattle 0x9 0x14B 0x0 0x8188959 0x818DE1A
return

'---------------
#org 0x16839A
applymovement 0x6 0x81683B8
waitmovement 0x0
return

'---------------
#org 0x1683A5
applymovement 0x6 0x81683C5
waitmovement 0x0
return


'---------
' Strings
'---------
#org 0x188890
= [rival]: Hey, [player]\nHave you gotten any stronger?

#org 0x188974
= our mom gave me these shoes for\nyou. Good luck on your quest!

#org 0x188959
= Awww!\nYou just lucked out!

#org 0x18DE1A
= [rival]: Yeah!\nAm I great or what?


'-----------
' Movements
'-----------
#org 0x1683D9
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x1683D1
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0x10 'Step Down (Normal)
#raw 0xFE 'End of Movements

#org 0x1683B8
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements

#org 0x1683C5
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0x11 'Step Up (Normal)
#raw 0xFE 'End of Movements


This is one of the scripts, but it completely ignores the flags. Why? >.<