Hard Light Productions Forums
Modding, Mission Design, and Coding => The Modding Workshop => Topic started 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!
-
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).
-
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!