View Full Version: Password Variable

DimensioneX Forum > Developers' Pub > Password Variable



Title: Password Variable


cotteux - January 14, 2008 01:43 AM (GMT)
Hi , I just want to know if possible to read the user password in dimensionex and use it in a variable.


I just want to make a system who check if the password is empty to redirect the user to create an account .

cotteux


Cris - January 14, 2008 04:27 PM (GMT)
Yes it is currently possible although I'm planning to protect the passwords in the future.

Just use this script

CODE


' Transforms a user name into the userid format
' used by DimensioneX.Player.saveGame
Function CookName(aname)
aname = Replace(LCase(aname)," ","_")
return aname
End_Function

Dim nickname = "Cris Lyons"
Dim nick = CookName(nickname)
Dim pass = getSetting(nick + "_pass","")
Print $WORLD,"The password of " + txt + " is " + pass


cotteux - January 15, 2008 12:48 AM (GMT)
thanks is working great. The new user need to create an account .

Some bug to solve but nothing impossible.





Hosted for free by InvisionFree