Author Topic: Computational support  (Read 53 times)

Offline NothingCanStopMe357

  • General Member
  • Posts: 75
  • Finally back but I am going to be busy
  • Location: Multiple places. Usually Scratchland and Skyscrapersimcity
    • View Profile
    • My Scratch Account
Computational support
« on: September 10, 2022, 04:56:52 pm »
Hi! I think this will be a good idea to add for skyscrapersim

What will it do
It will make BLD files more powerful by allowing advanced actions to be performed in simulator. I propose that there should be an ability to have variables be changed as the game (or simulator) is running. For example, you click a button and it will multiply the current number by 2:
Before    After
12
24
48
816
and so forth

How should it be implemented
The AddAction command will not be restrictive. It will allow for an already defined function to run as a button is clicked.
<Function Multiply>
Set result = %param1%*%param2%
print %result%
<EndFunction>
AddAction MyAction, Floor 2, RunFunction, Multiply(%first%,%second%)


Benefits
A realistic example for skyscrapersim would be a working fire alarm panel. :) Instead of completely separate buttons, there would be a way to navigate through the menus. You could also make a working arcade game if you wanted to. ;D

I would say this would be a fantastic edition to the simulator.
« Last Edit: September 14, 2022, 12:41:49 pm by NothingCanStopMe357 »
NothingCanStopMe357 Creator of NCSM357s building creator. Also helping as many skyscrapersim enthusiasts for many generations to come. :D

Also, we need to address climate change as soon as possible.

Share on Facebook Share on Twitter