![]() |
![]() ![]() ![]() ![]() ![]()
|
Author | Topic: changing strings |
Gwerradon |
![]() how do i make it so.... When the program loads, it asks you to login. now then... When the play logs in using the default password, i want him/her to be able to choose an option where they can change the password, so when they login, they can type passwrd, instead of the default, password. so far i have this.... but it doesnt work :( ' "Password Manager" define game <Password Manager> define synonyms define room <Account> define procedure <login>
|
Gwerradon |
![]() ok i messed around with that and got it right. all i need to know now, is how to change it so that when the player saves the "game" (lol), the next time he/she logs in they can enter the password they set instead of the default |
Alex |
![]() This line: if ( password = password ) then goto <Account> ... should read: if ( #password# = password ) then goto <Account> - otherwise the condition is always true, as the text "password" is always equal to the text "password", which means the player could never type in the wrong password! |
Gwerradon |
![]() yeah i figured that out lol. im just trying to figure out how to program it so that the user can change the password |
I think Im Back |
![]() I was bored so I made this, basically does logging in. You can easily create something for when the player makes his character, it makes an object with the player's name and gives it a property of pw="their password". Then assign other variables, which can be stored in the player object for convenience(this way all the players stats and such are one object, and all those properties can be copied from the object to the player entity in a quest game), assign the variables in the same piece of code where it moves them to the room Account. Man I kick Ass... ' "Password Manager" define game <Password Manager> .|cr..........................|cb.> define synonyms define room <Account> define room <Login> define room <Admin> |
Gwerradon |
![]() ok so wots the login id and pass then? :S |
Computer Whizz |
![]() User: I think I'm Dead Password: ZOMBIE All you need to do is create an object and have the object with a password property. As shown in "I think I'm back"'s example. Computer Whizz |
Gwerradon |
![]() ' "Password Manager" ' Created with QDK 3.12 define game <Password Manager> .|cr..........................|cb.> define synonyms define room <Account> define room <Login> define room <Admin> |
Gwerradon |
![]() u sure thats right because i cant play it, it has an error message |
I think Im Back |
![]() It works perfectly, the problem is... When copying the asl from these forums, the party where it's like... startscript msg <|n|n .|cr..........................|cb.|n |bWelcome to Password Manager 0.1|xb|n .|cr..........................|cb.> There shouldn't be a blank line in the middle of that. That's just the forums formatting the text. Just open your asl file that you pasted the text into with notepad, find that part, and make it so it's all on one line. Fixes the error. |
I think Im Back |
![]() The party? Man, who can tell what I've been up to? |
Gwerradon |
![]() actually the problem was that startscript msg <|n|n .|cr..........................|cb.|n |bWelcome to Password Manager 0.1|xb|n .|cr..........................|cb.>
.|cr..........................|cb. (no > at end) |
I think Im Back |
![]() Actually, no it wasn't. That fixes the problem, because it was caused by an extra '>'. But having the brackets open isn't a solution, it makes it incomplete. |
Computer Whizz |
![]() If you would have followed ITIB's instructions (removed the return) making it all one line - it would have fixed it. You should know by now everything (well - close enough for a generalization) is opened with <'s and closed by >'s. Without a closing > it should report a missing > (or too many <'s) and not work - unless Alex missed something there. Computer Whizz |
Gwerradon |
![]() well it worked for me |