About This File
A modding tool for looking at the GLOBAL variable in this game. Simply eat anything with the console open (use the ` key) and it will print out the first 15 variables eat again and it prints out the next 15.
To change the variable you are looking at change the modmain.lua file which has comments explaining what to change.
local SpawnPrefab = GLOBAL.SpawnPrefablocal function spawnMulti(inst, n)if n >= 1 thenlocal prefab = SpawnPrefab("wetgoop")inst.components.inventory:GiveItem(prefab)return spawnMulti(inst, n-1)else endendfunction tablelength(T)local count = 0for _ in pairs(T) do count = count + 1 endreturn countend--Change variable in "tablelength(<variable>)" to explore the game files make sure you also change it below as well.local length = tablelength(GLOBAL)local c = 0function SimInit(inst)inst:ListenForEvent("oneatsomething", function(inst, data)local n = 0--Change variable in "pairs(<variable>)" to explore the game files make sure you also change it above as well.for key,value in pairs(GLOBAL) doif n >= c and n <= c +15 thenprint(n, key,value) endn = n +1if n == length thenc = c + 15endendend)spawnMulti(inst, 300)endAddSimPostInit(SimInit)
Recommended Comments
There are no comments to display.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now