Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
General - For each integer Player Loop from 1 to 14 with increment 1, do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering player) == Player Loop
Then
Variable - Set Number Loop = Player Loop
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Login Items[Number Loop][7]
Then
General - If (Conditions) then do (Actions) else do (Actions)
If
Login Dialog String[Number Loop][1] == (Edit value of Login Items[Number Loop][4] for Number Loop)
Login Dialog String[Number Loop][2] == (Edit value of Login Items[Number Loop][5] for Number Loop)
Then
UI - Display "Open " for (All players) to Cinematic area
Else
UI - Display "Closed" for (All players) to Cinematic area
i have a dialog that has two edit box's one labelled Username the other Password, and when the “new account” button is clicked is saves the edit values of the two edit box’s get saved to a bank file, and once the map is reloaded they can type there username and password into the edit box and click the login button and it will gain them access or deny them if the fields are wrong.
Everything works when I open the map create a new account and try the username and password, how ever when I reload the map it fails and wont read.
I can paste the code in if anyone needs
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Wow im flattered Tekaichi! Yeah when I make a 100% working version ill post it for sure.
thanks soooooooo much!!!
My Login Button (this is the problem)
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
General - For each integer Player Loop from 1 to 14 with increment 1, do (Actions)
Actions
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering player) == Player Loop
Then
Variable - Set Number Loop = Player Loop
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Login Items[Number Loop][7]
Then
General - If (Conditions) then do (Actions) else do (Actions)
If
Login Dialog String[Number Loop][1] == (Edit value of Login Items[Number Loop][4] for Number Loop) Login Dialog String[Number Loop][2] == (Edit value of Login Items[Number Loop][5] for Number Loop)
Then
UI - Display "Open " for (All players) to Cinematic area
Else
UI - Display "Closed" for (All players) to Cinematic area
My New Account Button
Dialog - Any Dialog Item is used by Player Any Player with event type Clicked
General - For each integer Player Loop from 1 to 14 with increment 1, do (Actions)
General - If (Conditions) then do (Actions) else do (Actions)
If
(Triggering player) == Player Loop
Then
Variable - Set Number Loop = Player Loop
General - If (Conditions) then do (Actions) else do (Actions)
If
(Used dialog item) == Login Items[Number Loop][8]
Then
Variable - Set Login Dialog String[Number Loop][1] = (Edit value of Login Items[Number Loop][4] for Number Loop)
Variable - Set Login Dialog String[Number Loop][2] = (Edit value of Login Items[Number Loop][5] for Number Loop)
Bank - Store string Login Dialog String[Number Loop][1] as "Username" of section "Login" in bank Testting bank[Number Loop]
Bank - Store string Login Dialog String[Number Loop][2] as "Password" of section "Login" in bank Testting bank[Number Loop]
Bank - Save bank Testting bank[Number Loop]
Else
Else
This is my Bank initialization
Game - Map initialization
General - For each integer Player Loop from 1 to 14 with increment 1, do (Actions)
Bank - Open bank "Testing" for player Player Loop
Variable - Set Testting bank[Player Loop] = (Last opened bank)
Bank - Preload and synchronize bank "Testing" for player Player Loop
Variable - Set Login Dialog String[Player Loop][1] = (Load key "Username" of section "Login" from bank Testting bank[Player Loop] as a String)
Variable - Set Login Dialog String[Player Loop][2] = (Load key "Password" of section "Login" from bank Testting bank[Player Loop] as a String)
i have a dialog that has two edit box's one labelled Username the other Password, and when the “new account” button is clicked is saves the edit values of the two edit box’s get saved to a bank file, and once the map is reloaded they can type there username and password into the edit box and click the login button and it will gain them access or deny them if the fields are wrong.
Everything works when I open the map create a new account and try the username and password, how ever when I reload the map it fails and wont read.
I can paste the code in if anyone needs