fx = GetRandomFX(objfx)
GetRandomFX()then scans the available effects and returns a random effect for you which you can then pass to the special effects functions like DisplayBrushFX() and DisplayTransitionFX().
Normally, you do not have to use this function because you can simply
#RANDOMEFFECT with all special effects functions.
only useful if you want to filter effects, i.e. you want to choose a
random effect but not
#WATER1, for example. In that case, you can call
GetRandomFX() until it returns an effect that is different from the ones
you don't want.
See DisplayTransitionFX for the different types of Hollywood's transition effects.
Trueif you want to have an object effect or
Falsefor a background picture effect
Repeat fx = GetRandomFX(FALSE) Until fx <> #WATER1 DisplayTransitionFX(2, fx)The code above chooses a random background picture effect but never the
#WATER1effect. After having chosen the effect, background picture 2 is display with this effect.