Im guessing i use a trigger, but how do i reference the player name and password in my script? I dont want to hardcode this as i will be distributing the package to other people.
Thanks for any help!
Marisa
Submit player name and password?
- fstltna
- Posts: 29
- Joined: Tue Oct 07, 2014 7:19 am
- Location: South San Francisco, CA
- Discord: MarisaG#2083
- Contact:
Submit player name and password?
---- https://PocketMud.com - full-featured CoffeeMUD hosting - $14/month with first month free
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium
Re: Submit player name and password?
That's not accessible to Lua scripts - you'd need to ask people to input that information into your system.
- SlySven
- Posts: 1023
- Joined: Mon Mar 04, 2013 3:40 pm
- Location: Deepest Wiltshire, UK
- Discord: SlySven#2703
Re: Submit player name and password?
I think that a getPlayerName() to return the (utf-8 encoded) user name associated with the profile (the text stored against the login {?} field) is not unreasonable, but I'd be reluctant to code a lua setter for that or a getter/setter for the password (to protect against malicious packages/modules ).
-
- Posts: 334
- Joined: Thu Mar 05, 2015 2:53 am
Re: Submit player name and password?
Agreed. It's the program itself that submits the username/password, the mud scripts/package don't need access to that information. I'd completely agree with Vadi in regards to it: If for some reason the package will need that information, code something in the package itself having the package ask the user to re-enter it and then save that information to disk.
The mud I play the username/password is associated to a profile, and logging in with that profile shows you a list of linked characters. You then select that character you wish to log in with. There are certain things within the mud itself that are accessed using the profilename, not the character name: I have a command the user enters 'set profilename xxx' to setup/save that information.
The mud I play the username/password is associated to a profile, and logging in with that profile shows you a list of linked characters. You then select that character you wish to log in with. There are certain things within the mud itself that are accessed using the profilename, not the character name: I have a command the user enters 'set profilename xxx' to setup/save that information.
- fstltna
- Posts: 29
- Joined: Tue Oct 07, 2014 7:19 am
- Location: South San Francisco, CA
- Discord: MarisaG#2083
- Contact:
Re: Submit player name and password?
It seems that the user and password is being pushed to the server a second or two after the connection is made. I just need to have the user put a "!" Before the player password and it will do what i want, no need to modify the mudlet / login script...
---- https://PocketMud.com - full-featured CoffeeMUD hosting - $14/month with first month free
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium
- SlySven
- Posts: 1023
- Joined: Mon Mar 04, 2013 3:40 pm
- Location: Deepest Wiltshire, UK
- Discord: SlySven#2703
Re: Submit player name and password?
@fstltna Yep, if those fields are filled out then they get sent one and two seconds (IIRC) after the connection is made. For some MUDS that is all that is needed to log in with an existing character. Others have a menu or some such that the user has to choose something to get on/in before they enter an identity and matching authentication. If you have several different "characters" on the same Mud it is not unreasonable to want to use the same/similar packages/modules/scripts for all of them - that being the case and the user having a common set-up that is "synced" between those profiles having the aforesaid, hypothetical getPlayerName() or perhaps getCharacterName() to reflect what the entry is on the "Connection Profile" dialogue does seem to me to be a good idea - but then I think rain is wet, so who am I to say?
- fstltna
- Posts: 29
- Joined: Tue Oct 07, 2014 7:19 am
- Location: South San Francisco, CA
- Discord: MarisaG#2083
- Contact:
Re: Submit player name and password?
For Imperium games i think it is best to tell the players to create the player entry the first time they connect then enter the details in Mudlet and reconnect again.
---- https://PocketMud.com - full-featured CoffeeMUD hosting - $14/month with first month free
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium
- fstltna
- Posts: 29
- Joined: Tue Oct 07, 2014 7:19 am
- Location: South San Francisco, CA
- Discord: MarisaG#2083
- Contact:
Re: Submit player name and password?
I meant player NAME of coursefstltna wrote:It seems that the user and password is being pushed to the server a second or two after the connection is made. I just need to have the user put a "!" Before the player password and it will do what i want, no need to modify the mudlet / login script...
---- https://PocketMud.com - full-featured CoffeeMUD hosting - $14/month with first month free
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium
---- https://discord.gg/HgDxtas - Semi-Official CoffeeMUD Discord server
---- https://EmpireDirectory.net - portal for Empire and Imperium