


Create a new resource of the type ‘Trigger (Script)’.Edit your new resource pack with the Resource Editor: Add a new Settings category.Make sure your new resource pack file is added in the package manager in the following menu: Content > Resource Packs.As described in the modding basics, create a new mod and add a new resource pack file:.For example: When a new turn starts (event), and the new turn is turn 2 (condition), spawn a new unit at the position of the leader of the player whose turn started (action). In short this means upon certain game events, if certain conditions are met, it’s possible to do certain actions. The scripting follows the “Event condition action model” ( ) The game also uses this for custom behavior to add flavor at certain events, or in campaigns. Planetfall has a simple scripting system that enables to create custom game behavior inside a normal generated planet.
