Changes

Jump to navigation Jump to search
No change in size ,  13:29, 5 April 2020
Line 267: Line 267:  
Level 3 features do not satisfy submarkets at all, but they have custom scripts attached that change how the game works in some way. [[SIPL|Scripting works using a programming language developed specifically for Software Inc.]]
 
Level 3 features do not satisfy submarkets at all, but they have custom scripts attached that change how the game works in some way. [[SIPL|Scripting works using a programming language developed specifically for Software Inc.]]
   −
Please note that level 3 features will never be selected by the AI, to avoid unpredictable behaviour and since scripts aren't very performant, it would slow the game down a lot if all products had scripts to execute. So you can think of level 3 features as small bonuses for the player to pick. If you want more advanced behaviour, you should look at writing [[code mods|Code_Modding]].
+
Please note that level 3 features will never be selected by the AI, to avoid unpredictable behaviour and since scripts aren't very performant, it would slow the game down a lot if all products had scripts to execute. So you can think of level 3 features as small bonuses for the player to pick. If you want more advanced behaviour, you should look at writing [[Code_Modding|code mods]].
    
You add scripts to features by adding a Script record, which consists of Script_  and then the name of entry point where you want your script to be executed, and then your script. Each entry point has a different scope, which determines which variables you can interact with. These entry points currently exist:
 
You add scripts to features by adding a Script record, which consists of Script_  and then the name of entry point where you want your script to be executed, and then your script. Each entry point has a different scope, which determines which variables you can interact with. These entry points currently exist:

Navigation menu