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.
#Simple way to check player ship level.
3 messages · Page 1 of 1 (latest)
player.shipUpgrades() returns a table. so you can do player.shipUpgrades().level
assuming the ship level is saved as 'level'
Oh, I tried so hard and still didn't really understood how the player.shipUpgrades() works, also, I don't know if the vanilla ship is saved as level e.e, but I'll try again with that .level =), thanks