Thanks but...
How do I know if I set by Let's just say 7 Seconds... What should be it's int timeout integer of it?
How do I know if I set by Let's just say 7 Seconds... What should be it's int timeout integer of it?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menufunction tbPassword_OnActivate(GUIControl *control)
{
if (tbPassword.Text == "My Password") //either whatever password I wanted
{
isGameUnlocked = true; //this is the variable that you showed me earlier before
tbPassword.Text="";
SaveGameSlot(998, "censored"); //the Hidden SaveGame Slot you said to me...
Display("Password is Correct.");
}
else
{
tbPassword.Text="";
Display("Wrong Password, Try Again!");
}
}
function btnEnter_OnClick(GUIControl *control, MouseButton button)
{
if (Game.GetSaveSlotDescription(998)!=null) //this is when, in order to save the options and create a save file, they must press the "Enter" button, not the Enter key on the keyboard
{
isGameUnlocked = true;
}
else if (Game.GetSaveSlotDescription(997)!=null)
{
isGameUnlocked = false;
}
}
function on_event(EventType event, int data)
{
if (event = eEventRestoreGame)
{
if (SavedGameslot==998)
{
SavedGameslot=0; // I'm not sure that seting this to 0 is needed, but I had it on my code, so I'll leave it here.
// you can then read the info of your password setting and maybe display a message saying what level of censurship is the game now set to or what ever else you need to do
}
}
}
QuoteIf you want the game to remember that you have unlocked when you open the game again at a later time, you will need to save that info externally. Or create a "hidden" savegame just to keep that info.
g1stGUI.Visible = false
g2ndGUI.Visible = true
PlayVideo ("FileName.ogv",eVideoSkipAnyKeyOrMouse, 0);
player.ChangeRoom(1);
By continuing to use this site you agree to the use of cookies. Please visit this page to see exactly how we use these.
Page created in 0.209 seconds with 15 queries.