Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Battletech Paperdoll
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Mechanical
Microcontrollers: Cockpit, Microcontroller
Tags: v1.8.6
File Size
Posted
31.135 KB
7 Aug, 2023 @ 1:41pm
1 Change Note ( view )

Subscribe to download
Battletech Paperdoll

Description
READ THE DISCRIPTION!!!!!

The microcontroller is for 1x1 displays, showing the current mech status.

On-screen, the 'External Damage' destruction will light up as a contour, and Internal Damage as the interior

HOW DOES IT WORK?

In stormworks, the "constant on signal" blocks send, as the name suggests, a constant on signal. However, its output is based on three different damage states:

  1. Undamaged - the block outputs a constant "ON" signal.
  2. Slight / Light damage - the block outputs a pulsating "ON" signal, switching to "OFF" here and there.
  3. Heavy damage / Destroyed - the block doesn't output any signal whatsoever (aka. transmits OFF)

My MC takes these outputs from around your build and monitors either they work or not.
If it receives ON signals from all constant on blocks in a limb, it will render it green on the display.
If one of the blocks gets damaged, (2nd state) the limb will turn into a pulsating red box on the display.
If a few blocks get damaged in a limb (2nd state) that limb will pulsate red more frequently on the display.
If one of the blocks gets destroyed (3rd state) that limb will be displayed as a static red box.

HOW TO SET IT UP PROPERLY?

Every limb/section has at least two inputs to fill.
1 - ED (short for 'External Damage')
2 - ID (short for 'Internal Damage')

ED input is responsible for rendering the outlines on the display, the ID is responsible for rendering the insides of on-screen boxes.

Connect to the microcontroller various constant on blocks placed around your build.

The constant on blocks designated to detect internal damage HAVE to be placed near important modules if you won't place them there, your leg might not get flagged on screen when in reality it will be broken and unusable. To avoid this, place the constant on blocks right next to pivots, other microcontrollers, or any important parts you care about

The constant on blocks designated to detect external damage don't have any strict placement. However, I'd recommend placing some blocks in front of the ID detecting blocks, so that the ED blocks get hit first instead of the ID blocks. For example: The ED blocks placed directly onto the leg will inform you of ANY damage, while the ID near pivots will inform you of actually vital hits or vital components damaged.

Additionally my MC allows for more than 1 ID and 1 ED block for more important body parts. For legs, there are 2 ED and 2 ID slots available. I'd recommend placing one ID on the hip pivot, one ID on the knee pivot and the ED's somewhere on the legs. That way you will get informed of any kind of damage.



The LUA code is very simple to modify, so please do so if you wish.

Feel free to ask questions, I usually answer.

Clan command out :P
3 Comments
jilliandawn63 25 Jun @ 9:53pm 
make a tank one next i am building a tank rn
rafekcronos  [author] 16 Jul, 2024 @ 10:41am 
In Stormworks the "constant on blocks" are meant to send out an 'on' value to anything they are connected to(as the name suggests). These blocks have three different damage states they can achieve:
1st - no damage = block sends a constant "on" output to my MC;
2nd - slight damage = block sends out a pulsating "on" signal;
3rd - heavy damage, destroyed = block doesn't send out any output (aka. the "on" output switches to "off").
My MC takes these constant on outputs from different blocks around your creation and projects them onto a screen. If all constant blocks from one limb are in the 1st state (no damage) then the limb appears green on the display. If your limb gets shot by something (anything that will damage the constant on block placed in the limb) then it will show up as a pulsating icon on display. If that constant on block will be in the 3rd state(completely destroyed) then the display will let you know that it's badly hit.
gabbilabbi 11 Jul, 2024 @ 8:15pm 
How would i detect the damage?