SwitchTrack

From Final Fantasy Hacktics Wiki
(Redirected from Event Instruction 22)
Jump to navigation Jump to search

{22} SwitchTrack

SwitchTrack(x01,+VOL,TIM)

Toggle between the first and second song assigned in ATTACK.OUT for the scenario.


See Also: {21} SoundEffect{60} FadeSound{6B} BGSound


x01 : Byte (hex)

Always x01.


Volume : Byte (signed)

Volume based on original level of the song.

  • -127 : 100% volume
  • +000 : 0% volume
  • +063 : 50% volume
  • +127 : 100% volume


Time needed to reach new volume : Byte (unsigned)

Creates a linear effect for volume depending on the set value for a determined period of time. Volume will raise progressively until it reaches desired level.

Time is in frames; or 1/60 of seconds:

  • 060 = 1,00 second
  • 090 = 1,50 seconds
  • 240 = 4,00 seconds