Author Topic: Computational support  (Read 137 times)

Offline NothingCanStopMe357

  • Contributor Level I
  • *
  • Posts: 172
  • Contributor to SSF. Innovation is key to success.
  • 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 »
Together, we can innovate Skyscrapersim in many ways that has never been seen before. Just bring up an idea and we can implement it!

Share on Facebook Share on Twitter