Now create a new Condition (Right click > New), then choose ‘Type - Integer Comparison’.In the Trigger Editor Create a new Event (Right click > New), then choose ‘Time - Turn Started’, then click ‘Ok’.Set the Type to ‘Automatic’, then click the small orange box in the ‘Trigger Script’ field.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.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |