AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
This will make sure we are talking about the player who triggered the event, in this case the player whose turn started. Click ‘Side with Alias ’ and change it to ‘Core - Player’, then click ‘Player 1’ and change it to ‘Event Response - Triggering’.Now create a new Action (Right click > New), then choose ‘Unit - Create (Unit Resource)’.Then click the second number (0) and leave it to ‘Integer - Preset’, but change the 0 to 2.Then click the first number (0) and change it to ‘Integer Current Round’, click ‘Ok’.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
Read More
Leave a Reply. |