int passwordCheckID = -1; //who you're checking for //Load Save When password is true void PasswordLoadSave(int CharID) { if (password_inst.ID == CharID) { if (passwordCheckFunction == "save") { password_inst.Save(true); password_inst = null; passwordCheckFunction = ""; passwordCheckID = -1; } else if (passwordCheckFunction == "load") { password_inst.Load(true); password_inst = null; passwordCheckFunction = ""; passwordCheckID = -1; } else { ForceCancelPassword(); } } else { ForceCancelPassword(); } }
public void SaveActive() //Calls the active character to save { activeInstant.Save(); }