This generates a random integer from 0 to 8909478, then from it creates a multiplier from 1-7. Local worldName = string.match(worldGlobals.worldInfo:GetWorldFileName(), "(+)%.wld$") TalosProgress:SetCode("PaintItemSeed", randomSeed) RandomSeed = mthRoundF(mthRndF()*8909478) Local randomSeed = talosProgress:GetCodeValue("PaintItemSeed") Local talosProgress = nexGetTalosProgress(worldGlobals.worldInfo) If talGetUnlockedPlayerMessagesCount(worldGlobals.worldInfo) < 5 thenĮxit function if player doesn't have paint unlocked. paint buckets can onlys be unlocked if enough messages are unlocked Local function ShowPaintBucketIfNecessary() However, this calls sum = not sum = sum +, and so it in fact only uses the last character in the world name, in this case the world number. This function creates an add-in seed which is supposed to be based on the world name. Local function RandomFomStringChars(str, multiplier) If not talPlayerMessagesAvailableForCurrentWorld(worldGlobals.worldInfo) thenĮxit program if player is done with the current world. nothing to do if messages are not available for current world Here's the Lua code that determines paint spawns: The reason this works is because of how Paint RNG is seeded in Talos. Note that these sets only apply to maps with 4 potential spawn points, not to all maps!Īs a general rule, to completely identify which spawn set you have, you will need to visit one even and one odd numbered map (Star worlds are numbered 8). Here are the 5 sets of spawns that can appear. Credit to sjcTheos for his research (code finding, spreadsheet work, image to game index matching) and for discovering this trick.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |