Page 1 of 1

Anyone know what FRM, FX, SFX and CALL do?

Posted: Sun Apr 21, 2013 8:59 pm
by GottaLove88s
I'm trying to rework a UNIT.TXT file for the two boats, the FAIRMILEB and the MGB...

Does anyone know what the following BA commands do...?

FRM 0 30 - is this a physical location in relation to the unit icon? :oops:

FX 10 10 - is this an animation call? where is the index for BA's animations? :oops:

SFX 10 44 - I think this is a sound effect and 44 is the sound number. but what does the 10 do? :oops:

CALL 10 0 2 - no idea at all about this one... anyone??? :shock: :shock: :shock:

Thanks for any help at all... :D

Re: Anyone know what FRM, FX, SFX and CALL do?

Posted: Mon Apr 22, 2013 8:04 am
by Amaris
http://www.slitherinebravo.net/GameWiki ... tub_engine

Code: Select all

[<anim><index>]		the index must be a 2 digit number, in sequence, starting at 00, e.g. WAIT00, WAIT01, etc.
FRM <start> <end>		required; the start and end frames of this animation
FX <frame> <effect>		trigger an effect at this frame
DIETEX <frame>		switch the unit's texture to its dead version
CALL <frame> [<a> <b> <c>]	call the unit's CUSTOM_TRIGGER callback, passing in the supplied parameters, all of which are optional and dependent upon the callback function.
AMBIENT <a> [<b> <c> <d>]	play a sound effect constantly while this animation is active. The entries are the ID values of the sound effects (as defined in the sfx*.txt files).  Picks randomly if more than one defined.
SFX <frame> <a> [<b> <c>]	play a sound effect at this frame, pick randomly if more than one is defined.

Re: Anyone know what FRM, FX, SFX and CALL do?

Posted: Mon Apr 22, 2013 8:21 am
by GottaLove88s
Wow! That's really helpful. Thanks mate...

Am uploading something I've been toying with...
Have liberally used the 'best of' Amaris mods, so HUGE APPRECIATION...
You're a genius Alex!!
:mrgreen: