Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- while testing, you may want to re-lock certain things
- -- you can do so by opening into your Stats.xml, searching for "Unlocks"
- -- and deleting the appropriate UnlockEntry element by UnlockEntryID.
- -- add this actor to ScreenSelectMusic overlay.lua
- -- it will check to see if anything new should be unlocked, and if so, unlock it by EntryIndex
- Def.Actor{
- InitCommand=function(self)
- -- use a SystemMessage to determine how many stages you have cleared
- -- commment it out when you don't need it any longer
- SCREENMAN:SystemMessage(UNLOCKMAN:GetPoints("UnlockRequirement_StagesCleared"))
- -- UnlockEntryIndex() will attempt to unlock whatever index you pass it,
- -- or, if you pass it a -1, it will do nothing
- -- GetUnlockEntryIndexToCelebrate() will return the index of a new UnlockEntry
- -- or -1 if there are none. It uses the MachineProfile.
- UNLOCKMAN:UnlockEntryIndex( UNLOCKMAN:GetUnlockEntryIndexToCelebrate() )
- end,
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement