Ha Ha! BA Scripting for Dummies!

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
Old_Warrior
Major - Jagdpanther
Major - Jagdpanther
Posts: 1022
Joined: Fri Apr 30, 2010 3:13 am

Ha Ha! BA Scripting for Dummies!

Post by Old_Warrior »

That is what I am writing - a guide for the rest of us that need cartoons, pictures, arrows, you name it!

Raise your hand if that applies to you (too)! :D

While I cannot use that exact phrase that is how I would title my document. BA Scripting for Dummies! 8)
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Ha Ha! BA Scripting for Dummies!

Post by GottaLove88s »

BA Scripting fur das Dummkopfen (R*)... Yes please, I'm in!

(R*) Registered trademark of Old Warrior, under license to Slitherine Inc ;-)
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
GottaLove88s
Lieutenant-General - Do 217E
Lieutenant-General - Do 217E
Posts: 3151
Joined: Fri Apr 06, 2012 6:18 pm
Location: Palau

Re: Ha Ha! BA Scripting for Dummies!

Post by GottaLove88s »

I'm sure RF900 would be delighted to explain his awesome code to achieve the Merge Wounded Units and Swap Positions commands, and Enric & I would be happy to explain everything we've figured out about Squads.csv... Steal and share from viewtopic.php?f=87&t=36065
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
rf900
Staff Sergeant - Kavallerie
Staff Sergeant - Kavallerie
Posts: 339
Joined: Fri May 04, 2012 6:59 am

Re: Ha Ha! BA Scripting for Dummies!

Post by rf900 »

I learn a lot from examples and reading code, it helps a lot if it has good comments. I am afraid my code is not very clean and I should write more comments, but if you have any questions about the merge or swap command let me know.

For me it is hard to be in a position of a complete beginner, programing knowledge helps and the BA script engine is very flexible and quite easy to understand. The complexity for me comes when dealing with specific elements of the engine, mostly inner functions and custom data formats.

If you are able to understand the code the best way to learn IMO is looking at something that is working similar to what you want to achieve, search for that code and then alter it.
Post Reply

Return to “Battle Academy : Modders Corner ”