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

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

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

Post 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
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Amaris
Captain - Heavy Cruiser
Captain - Heavy Cruiser
Posts: 929
Joined: Fri Jul 23, 2010 11:08 am
Location: France
Contact:

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

Post 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.
“Take care, my friend; watch your six, and do one more roll… just for me.”
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

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

Post 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:
SCENARIO LINKS
Seelow'45 -> www.slitherine.com/forum/viewtopic.php?f=313&t=55132
Normandy'44 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42094
Dieppe'42 -> www.slitherine.com/forum/viewtopic.php?f=87&t=42347
Post Reply

Return to “Battle Academy : Modders Corner ”