You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So the idea here would be adding two new functions: construct.getElementStats(id) and system.getItemStats(id).
They would work in a very similar way to each other, except the construct.getElementStats function would receive a local element id and return the element's stats with any handling talents applied, while system.getItemStats would receive the actual item id and return the base stats for that item.
Those stats would be the same as we can see when we right-click and select "Inspect" on some element:
Basically, this would match a Lua table like this:
Those values are the base ones (system.getItemStats) but when calling them via construct.getElementStats we should get them corrected with any handling talents (piloting talents could help too, but would probably mean more complexity, so I'm not sure on that one).
This would allow for the creation of in-game item catalogs and even ship design tools, without the need of hardcoding every single element or having to manually input talent values either.
The text was updated successfully, but these errors were encountered:
So the idea here would be adding two new functions:
construct.getElementStats(id)
andsystem.getItemStats(id)
.They would work in a very similar way to each other, except the
construct.getElementStats
function would receive a local element id and return the element's stats with any handling talents applied, whilesystem.getItemStats
would receive the actual item id and return the base stats for that item.Those stats would be the same as we can see when we right-click and select "Inspect" on some element:
Basically, this would match a Lua table like this:
Those values are the base ones (
system.getItemStats
) but when calling them viaconstruct.getElementStats
we should get them corrected with any handling talents (piloting talents could help too, but would probably mean more complexity, so I'm not sure on that one).This would allow for the creation of in-game item catalogs and even ship design tools, without the need of hardcoding every single element or having to manually input talent values either.
The text was updated successfully, but these errors were encountered: