Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2016
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.94 KB | None | 0 0
  1. -- while testing, you may want to re-lock certain things
  2. -- you can do so by opening into your Stats.xml, searching for "Unlocks"
  3. -- and deleting the appropriate UnlockEntry element by UnlockEntryID.
  4.  
  5. -- add this actor to ScreenSelectMusic overlay.lua
  6. -- it will check to see if anything new should be unlocked, and if so, unlock it by EntryIndex
  7.  
  8. Def.Actor{
  9.     InitCommand=function(self)
  10.         -- use a SystemMessage to determine how many stages you have cleared
  11.         -- commment it out when you don't need it any longer
  12.         SCREENMAN:SystemMessage(UNLOCKMAN:GetPoints("UnlockRequirement_StagesCleared"))
  13.  
  14.         -- UnlockEntryIndex() will attempt to unlock whatever index you pass it,
  15.         -- or, if you pass it a -1, it will do nothing
  16.         -- GetUnlockEntryIndexToCelebrate() will return the index of a new UnlockEntry
  17.         -- or -1 if there are none.  It uses the MachineProfile.
  18.         UNLOCKMAN:UnlockEntryIndex( UNLOCKMAN:GetUnlockEntryIndexToCelebrate() )
  19.     end,
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement