MORALETOOLS.BSF

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

MORALETOOLS.BSF

Post by enric »

Line 452 lacks a ";"

SetAttrib (me, "AP", ap)
pipfromslitherine
Site Admin
Site Admin
Posts: 9928
Joined: Wed Mar 23, 2005 10:35 pm

Re: MORALETOOLS.BSF

Post by pipfromslitherine »

The final ; is optional. The scripting parses it to prevent those of us who program in C all day from going insane if we had to remember NOT to put one on the script lines... :)

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: MORALETOOLS.BSF

Post by enric »

What do you mean for optional?, always optional?
I experimented some cases where the scripting interpreter/compiler gives and execution error if the ; is not there.
pipfromslitherine
Site Admin
Site Admin
Posts: 9928
Joined: Wed Mar 23, 2005 10:35 pm

Re: MORALETOOLS.BSF

Post by pipfromslitherine »

There should be no case where the ; missing from the end of a line causes an error. Please provide an example if you think this is not the case.

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: MORALETOOLS.BSF

Post by enric »

Ok, I'll look into it.
Post Reply

Return to “Battle Academy : Modders Corner ”