pre-defined functions (or 'blocks') attached and called in a specific order by the engine, and containing scopes, conditions and commands.Ī relatively unique characteristic of the engine is the ability to dynamically display a textual representation of those 'blocks' in tooltips (each scope, condition and command being localized), for the player to preview the effects of an action before taking it or know why a decision isn't available, and without any extra work required by modders.The structure is based on definitions of entities, that have: Scripting is event-based, with Clausewitz engine being optimized to filter and process massive amounts of events on characters and provinces. It is opposed to static history modding, though some scripts may exceptionally be triggered from history files. Scripting allows to modify dynamically the world and govern A.I. Please help with verifying or updating older sections of this article.Īt least some were last verified for version 2.8.