HackerDragon9999
Forum adept
- Joined
- Jan 18, 2023
- Messages
- 129
- Reaction score
- 21
There is an extremely easy workaround for unranked players, so the Noble-exclusive code block is just a shortcut. If you don't know the workaround, learn it!
Save inventory workaround:
Then put the SaveInv function where you want players' inventories to be saved.
Load inventory workaround:
Then put the LoadInv function where you want players' inventories to be loaded. The way the inventory is organized is not saved.
Sorry if my code is confusing.
Since there's a workaround that only takes a few extra blocks, it reduces reason to buy Noble.
Save inventory workaround:
fn(SaveInv):
%default SavedInv = gameValue(InventoryItems)
%default SavedArmor = gameValue(ArmorItems)
%default SavedOffhand = gameValue(OffHandItem)
Then put the SaveInv function where you want players' inventories to be saved.
Load inventory workaround:
fn(LoadInv):
ClearInv()
GiveItems(%default SavedInv)
SetEquipment(%default SavedOffhand, #OffHand)
SetArmor(%default SavedArmor)
Then put the LoadInv function where you want players' inventories to be loaded. The way the inventory is organized is not saved.
Sorry if my code is confusing.
Since there's a workaround that only takes a few extra blocks, it reduces reason to buy Noble.