Talk:FF7/Field/Script/Opcodes/14 IFUB

From QhimmWiki
< Talk:FF7
Revision as of 03:58, 7 September 2006 by Qhimm>Synergy Blades
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I had split the first byte arg into two nybbles as per halkun's document. However, the second nybble of the first argument is not always zero. Example: itown1a, timer, script 1; note the second if statement after label j0:

<cpp>

init:
 return
base:
j1:
if(<50>[A] == 1)
{
 GETAI(6,E,D)
j0:
 if(<50>[11] < 50)
 {
  GETAI(6,E,F)
  if(<66>[D] == F)
  {
   INC(5,11)
   jump(j0)
  }
  SETBYTE(50,11,0)
 }
 else
 {
  SETBYTE(50,A,0)
  BITOFF(F0,B1,2)
  SETBYTE(50,11,0)
  SETBYTE(50,C,1)
  REQ(E,65)
 }
}
jump(j1)
return

</cpp>

SB 20:58, 6 Sep 2006 (CDT)