Hard Light Productions Forums

Modding, Mission Design, and Coding => The Modding Workshop => Topic started by: wookieejedi on March 03, 2018, 12:33:01 pm

Title: Calling Shield Strength with ship.tbm Question
Post by: wookieejedi on March 03, 2018, 12:33:01 pm
I have a ships.tbm that is modifying shield behavior, to add auto spreading.

The original table just states

“$Shields:                     400” ;;ie nothing about auto spreading.

In my ships.tbm I wanted to add auto spreading to the ship “MyShip” so I have:

$Name:      MyShip
   +nocreate
$Shields:                     400
  +Auto Spread: 0.5
  +Spread From LOD: 2
$Flags:                  ( "auto spread shields" ) +noreplace

This all works great. However, I wanted to know if there was a way that I didn’t have to copy the shield value to my tbm? In other words can I call the tbl value of the shields and then add the auto spread lines?

I know for the lines with the “+” to work it needs “$Shields” first, but is there a line of code or trick to tell the tbm to refer to the original table shield value? I tried “$Shields:                     +noreplace” but that doesn’t work. I am thinking this is not possible, but I figured I would ask!

Thanks!

Title: Re: Calling Shield Strength with ship.tbm Question
Post by: AdmiralRalwood on March 04, 2018, 11:17:17 pm
However, I wanted to know if there was a way that I didn’t have to copy the shield value to my tbm?
No.

But there will be, in the future, when I finally get around to overhauling parsing to add Variants (http://www.hard-light.net/forums/index.php?topic=92349.0).
Title: Re: Calling Shield Strength with ship.tbm Question
Post by: wookieejedi on March 05, 2018, 03:18:58 am
However, I wanted to know if there was a way that I didn’t have to copy the shield value to my tbm?
No.

But there will be, in the future, when I finally get around to overhauling parsing to add Variants (http://www.hard-light.net/forums/index.php?topic=92349.0).

Good to know. Ah count me in the people very much looking forward to that variants update!