Forums » General StepMania » SM5 Unlock system

You, my sir, are one awesome dude! I cannot thank you enough!

Check me out on SMO!
Reply
There were some typos in the code that should be fixed now. I also changed a few misleading comments throughout to be (hopefully) more clear.
Reply
There isn't any easier or different way to do it?

Last edited: 22 October 2014 8:30am

Reply
Hello, I know I'm probably reviving an old thread but... Is there a Lua function somewhere to get the current score, arcade points or something similar?

I asked because I'd like to have an unlock system similar to SM 3.9, where the user unlocks songs when a certain amount of arcade points is met, or stages cleared, etc.
This way I can do something like:

p = GetArcadePoints();


if UNLOCKMAN:SongIsLocked(SONGMAN:FindSong('My Song')) then
if p > 1000 then
UNLOCKMAN:UnlockEntryID('mysong'); -- unlock song via code
end;
end;


Does such function exist in StepMania's code that can also be used in a theme (through Lua)?

Last edited: 18 January 2015 8:12pm

Reply
UNLOCKMAN:GetPointsForProfile( someprofile, 'UnlockRequirement_ArcadePoints' )
will let you do that, but I'm pretty sure that unlocks can still have conditions that the engine manages like in 3.9.
Reply
Bumping an old, dead thread, but I'm curious: How do I make it so, instead inputting codes, you have to clear a specific song with X grade, score and/or amount of misses?

And how do you make it so instead of songs it unlocks noteskins and charts?

Last edited: 1 December 2016 12:42pm

~Santikun
Reply