[2.2.10 March 6 Release] Unlockables can't unlock more than 1 character anymore (or undocumented)
It would appear that the change made in regards to this merge request has had a negative effect in regards to making unlockable characters. !1474 (merged)
As I dug up through the now released 2.2.10, unlockable characters now need to be set up like this:
Unlockable 23
Name = Play as Amy
Objective = Complete Frozen Hillside Zone
Height = 0
ConditionSet = 23
Type = Skin
Var = amy
NoChecklist = true
Now unfortunately for SRB2 the Past I need to have 1 unlockable unlock 3 characters at the same time. and I've tried 3 ways to set this up. The following is spoilers not intended for any one who is not a dev.
Please excuse the formatting as the line breaks broke.
Click to expand
Unlockable 20 Name = The Demo 3 Pack Objective = Complete all demo 3 levels Type = Skin Var = megamand3, Chaod3, Cinossu ConditionSet = 24Unlockable 20 Name = The Demo 3 Pack Objective = Complete all demo 3 levels Type = Skin Var = megamand3| Chaod3| Cinossu ConditionSet = 24
Unlockable 20 Name = The Demo 3 Pack Objective = Complete all demo 3 levels Type = Skin Var = megamand3|Chaod3|Cinossu ConditionSet = 24
All 3 ways of writing the Var line have instead caused the unlockable to be invalid and the characters show up as already unlocked.
The names used for the Var field all come from name field of each character's S_Skin and works for characters by themselves. The old way that used availability just had the characters check for an unlockable number and more than one character could check for the same number.
This means for me that if I want to have the same unlockable conditions for multiple characters, I need to use as many unlockable slots as I have characters instead of having the group all use the same unlockable like with the old availability system. This also winds up running into another issue I brought up earlier regarding unlockable slots: #770 (closed)