Development > Newbie Coding
Structure of the system: The scripts???
(1/1)
keybounce:
I have taken a bit of a look around, and as far as I can tell, the compiled code is just an engine. The actual what's-happening is driven by the scripts.
But I'm completely lost when it comes to what's what, and what's the main(), of the scripts.
So, simply enough: What's the setup/structure of the scripting system?
bayo:
I dont know what script you talk about, but .ufo are declarative scripts (like an XML document for example). It only define game content. Then there is no main().
All .ufo files into /base/ufos are load and according to the block type it execute the right block reader. The reader will update internal game data with the content of the block. Maybe sometime we use bipass reader (not sure about that).
--- Code: ---blockType someTimeWeHaveDataHereToo
{
blockContent
}
--- End code ---
For example, the block type "alienteam" is read by CL_ParseAlienTeam.
Then the the game is executed, and script are no more read.
Navigation
[0] Message Index
Go to full version