#Simple way to check player ship level.

3 messages · Page 1 of 1 (latest)

echo spear
#

Hello, I've been working on some things to happen in the context of the player's ship, and I really wanted to know if there is a simple way for a somestatus.lua to access the level of the player's ship, something like "if the ship is level 4, then this will cause a certain status in the player". I tried to understand the documentation about world.shipUpgrades() but well, I'm not really good at coding rather than basic stuff. I really appreciate your help in advance.

pine stratus
#

player.shipUpgrades() returns a table. so you can do player.shipUpgrades().level
assuming the ship level is saved as 'level'

echo spear