| Line 282: |
Line 282: |
| | ==== Script example ==== | | ==== Script example ==== |
| | This script is used in the microphone surveillance feature of the Operating System SoftwareType: | | This script is used in the microphone surveillance feature of the Operating System SoftwareType: |
| − | if (Product.GetVar("MicMining", true)) //Check if player has been caught | + | '''if''' (Product.GetVar("MicMining", true)) //Check if player has been caught |
| | { | | { |
| − | Product.Bugs = Max(0, Product.Bugs - Product.Userbase * 0.01); //Remove 1 bug from product for each 100th active user | + | Product.Bugs = Max(0, Product.Bugs - Product.Userbase * 0.01); <span style="color:green">//Remove 1 bug from product for each 100th active user</span> |
| − | if (Random() * Product.Userbase > 1000000 * Product.Category.Popularity) //Random chance of getting caught | + | '''if''' (Random() * Product.Userbase > 1000000 * Product.Category.Popularity) <span style="color:green">//Random chance of getting caught</span> |
| | { | | { |
| − | LaunchLawsuit("SpyingOnUsers", Product.Sum, 1); //Create anonymous lawsuit | + | LaunchLawsuit("SpyingOnUsers", Product.Sum, 1); <span style="color:green">//Create anonymous lawsuit</span> |
| − | Product.DevCompany.AddFans(-Product.Userbase, Product.Category); //Remove fans and market recognition from player in category | + | Product.DevCompany.AddFans(-Product.Userbase, Product.Category); <span style="color:green">//Remove fans and market recognition from player in category</span> |
| − | Product.Userbase = Product.Userbase * 0.05; //Remove 95% of active users | + | Product.Userbase = Product.Userbase * 0.05; <span style="color:green">//Remove 95% of active users |
| − | Product.KillAwareness(); //Remove all marketing | + | Product.KillAwareness(); <span style="color:green">//Remove all marketing</span> |
| − | Product.PutVar("MicMining", false); //Mark player as caught for this product | + | Product.PutVar("MicMining", false); <span style="color:green">//Mark player as caught for this product</span> |
| | } | | } |
| | } | | } |