Game Development Community

Unlockables???

by Chris Oconnell · in Torque Game Engine · 09/14/2005 (9:59 am) · 3 replies

Hi all...
I wasn't sure if this should go in the engine forum or here... so here it is in both? :)

Has anyone ever posted anything about unlockable mission areas through scripting?
For example, if someone in singleplay has killed X number of bad guys or reached a certain objective, a new (previously invisible or unselectable) mission will then appear in the choose mission screen.
I know some existing TGE games have this, or at least a similar, feature... but is it coded or scripted... and how?

Thanks ahead.

#1
11/15/2005 (3:22 pm)
It can be done in C++ or script, though script would probably be easier. How I see it, there would just be a flag that would be checked. If X people are killed add that mission to the list otherwise make sure that mission isn't in the list.
#2
11/15/2005 (3:44 pm)
Look up openforwrite you could probably write a file of what has been unlocked and what hasn't
#3
11/15/2005 (4:33 pm)
What you can do:

(single player)

1) When the client reaches a trigger point, save preference variable.
2) Add to the mission file a variable (like mission name, description) called unlock-something.
3) Compare the variable to the preference variable saved by the client, if passed, show in GUI.

[you probably could see this on your own... but the jim is bored :)]