All scripts functions documentation file

Post Reply
roguedjack
Administrative Corporal - SdKfz 251/1
Administrative Corporal - SdKfz  251/1
Posts: 129
Joined: Wed Oct 18, 2017 1:40 pm

All scripts functions documentation file

Post by roguedjack »

Hi,

I made a program that generates a simple documentation file of all the game bsf scripts. The output is similar to BATTLESCRIPT.TXT.
I thought I'd post the resulting doc file here, it might be useful to modders. It is pretty large and I am not allowed to post .txt files so I attached a zip.
It lists file by file all the functions declarations with their header comments when there are ones.
That's 107 files and 1189 functions! :mrgreen:
I excluded the campaigns scripts because they are basically all the same.

A snippet of what it looks like:

Code: Select all

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:::: file .\Data\Battle\Scripts\Assault.BSF
:::: 8 functions
::::   UNIT_ASSAULT(me, unit, pursuit)
::::   CHECK_UNIT_ASSAULT(me, unit)
::::   UISETUP_UNIT_ASSAULT(me, tilex, tiley)
::::   UIBUTTON_UNIT_ASSAULT(me, x,y,width, height, tilex, tiley)
::::   DoEvadeAndPursuit(me, enemy, adjacent_X, adjacent_Y)
::::   ResolveAssault(me, enemy, evaded, already_routed, pursuit)
::::   SetAssaultString(me, enemy, linefeed)
::::   FlankRearPopUp(unit, morale_state)
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

// basic assault functionality
UNIT_ASSAULT(me, unit, pursuit)

CHECK_UNIT_ASSAULT(me, unit)

UISETUP_UNIT_ASSAULT(me, tilex, tiley)

UIBUTTON_UNIT_ASSAULT(me, x,y,width, height, tilex, tiley)

// Checks whether unit should evade, performs evade and enemy pursuit
// Returns 0 if unit did not evade, 1 if unit evaded but was caught, 2 if unit successfully outdistanced pursuit
DoEvadeAndPursuit(me, enemy, adjacent_X, adjacent_Y)

ResolveAssault(me, enemy, evaded, already_routed, pursuit)

SetAssaultString(me, enemy, linefeed)

// Helper function for Tutorial Mode
FlankRearPopUp(unit, morale_state)
Happy modding!
Attachments
bsfdoc.zip
(47.04 KiB) Downloaded 101 times
"Rise Of AI" AI mod for Field Of Glory II
http://www.slitherine.com/forum/viewtopic.php?f=477&t=102040
Post Reply

Return to “Field of Glory II: Modding”