- Joined
- Jun 9, 2003
- Messages
- 1,272
- Solutions
- 4
- Reaction score
- 825
- Points
- 131
- Favorite Pinball Machine
- Anything before 1939 (pre war), Firepower II, Agents 777
I've been working with this for a little while and came across a dilemma;
"what if I can only allow a certain length of letters within my WIP for VP for the player's name due to constricting length or size issues on the screen?"
Well, this has been fixed. I've tinkered with it and the result is total control of the amount of letters typed by the user. Using the Len command, the amount of letter typed by the user are limited, even though the messagebox will not stop the amount typed. Here is a demo:
Player 1 wants to put in their name. You have set the length to the maximum amount of letters being 5. The player types in "Anthony". The amount of letters typed by the user is too long, so the messagebox resets and the user must re-enter his name. The player then types in "Tony" and the amount of letters used is equal or less than 5. The name is shown and the game will start.
This tutorial is fully scripted and tells you what does what and where. I hope this helps someone out there with the issues of input of messagebox size and acceptance. This will be a very valuable tool for me in my WIP.
Hope it works for you too!!!
d
PS: The demo allows an equal or lesser value of 15 letters maximum. This can be changed in only two areas of the code. Just change the two "15" numbers and voila! READ THE SCRIPT for MORE information.
AGAIN, I had to upload this as a RAR file. PN's messaging system doesn't like certain types of files
"what if I can only allow a certain length of letters within my WIP for VP for the player's name due to constricting length or size issues on the screen?"
Well, this has been fixed. I've tinkered with it and the result is total control of the amount of letters typed by the user. Using the Len command, the amount of letter typed by the user are limited, even though the messagebox will not stop the amount typed. Here is a demo:
Player 1 wants to put in their name. You have set the length to the maximum amount of letters being 5. The player types in "Anthony". The amount of letters typed by the user is too long, so the messagebox resets and the user must re-enter his name. The player then types in "Tony" and the amount of letters used is equal or less than 5. The name is shown and the game will start.
This tutorial is fully scripted and tells you what does what and where. I hope this helps someone out there with the issues of input of messagebox size and acceptance. This will be a very valuable tool for me in my WIP.
Hope it works for you too!!!
d
PS: The demo allows an equal or lesser value of 15 letters maximum. This can be changed in only two areas of the code. Just change the two "15" numbers and voila! READ THE SCRIPT for MORE information.
AGAIN, I had to upload this as a RAR file. PN's messaging system doesn't like certain types of files