Event Instruction 0xf1: Wait

From Final Fantasy Hacktics Wiki
Jump to navigation Jump to search
#   {F1} Wait

001459e8: 0c04b721 jal 0x0012dc84           #   Check if script variable 0x27 (Current event ID) is between 0x19a and 0x1a9     // Event ID hardcoding.......
001459ec: 00000000 nop                   
001459f0: 1040000d beq r2,r0,0x00145a28     #   if (([Event ID] is between 0x19a and 0x1a9)  
001459f4: 00131400 sll r2,r19,0x10       
001459f8: 00028403 sra r16,r2,0x10       
001459fc: 2a020003 slti r2,r16,0x0003          
00145a00: 1440000a bne r2,r0,0x00145a2c     
00145a04: 00132400 sll r4,r19,0x10 
                                            #       and (Wait_Amount >= 3)) {
00145a08: 0c0237b6 jal 0x0008ded8           #           divisor = *0x80045980          
00145a0c: 00000000 nop                   
00145a10: 0202001a div r16,r2             
00145a14: 00002012 mflo r4               
00145a18: 0c053216 jal 0x0014c858           #           Wait ( Wait_Amount / divisor );
00145a1c: 00000000 nop                   
00145a20: 080517c9 j 0x00145f24                     continue;
00145a24: 00000000 nop                   
                                            #   } else {
00145a28: 00132400 sll r4,r19,0x10       
00145a2c: 0c053216 jal 0x0014c858           #       Wait (Wait_Amount);
00145a30: 00042403 sra r4,r4,0x10         
00145a34: 080517c9 j 0x00145f24             #       continue;
00145a38: 00000000 nop                      #   }