includes

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

includes

Post by enric »

Several scenario scripts have includes, usually placed at the same level as the scenario.BSF, but in some cases I can see them.
Exemple
include "functions.BSF"
include "tools.BSF" // that one I can find anywhere a file with this name.

And the scenario has not those files, where are they placed?, I look inside BA but there are not there either.
Last edited by enric on Fri Jul 13, 2012 2:27 pm, edited 1 time in total.
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: inludes

Post by pipfromslitherine »

I have added some explanation to the wiki:

http://www.slitherinebravo.net/GameWiki ... ding_files

tools.bsf is in DATA\SCRIPTS.

Cheers

Pip
enric
Brigadier-General - 8.8 cm Pak 43/41
Brigadier-General - 8.8 cm Pak 43/41
Posts: 1855
Joined: Sun May 15, 2011 8:47 am

Re: inludes

Post by enric »

thank you.

One more:

choice = Rand(1, 3) ;

Always getting 1, not a random 1-3
pipfromslitherine
Site Admin
Site Admin
Posts: 9937
Joined: Wed Mar 23, 2005 10:35 pm

Re: inludes

Post by pipfromslitherine »

Working fine for me here. Might just be a run of 1's from the random generator.

Cheers

Pip
Post Reply

Return to “Battle Academy : Modders Corner ”