Hi guys, new to the boards here and playing around with some different ideas to use later in the game I am creating. I put my main project on hold for now because I just keep finding new things I want to do with it, and I have to keep going back and changing everything when i learn something new.
Right now what I am trying to figure out is how to use variables for a password. I know how to set up a fixed number password, but I want to set up a random password.
Example, talk to guy1 in one location, and that event uses the command:
@>Control Variables: [0008: RandomPW1] = Random No. (0...9999)
That should cause the variable RandomPW1 to be set to a random number between 0 and 9999.
I can get all this to work, but the problem I am having is, I don't know how to make the NPC pop up a text box with the actual numerical value.
example:
NPC1: Come for a password?
Choices yes/no
Yes = Ok (randomizes PW)
Text: Your password is....
Text: (variable value)
That way the user knows what the randomized variable is.
For this example I want to use a 4 digit PW.
I have several other questions but i'll settle for this one for now.
Thanks in advance for any help
Edited to add:
I'm not even sure if this is in the right area now, if not, i'm sorry, very tired writing this up, but I thought of more things to add about this specific question.
I assume that this will work the same way and once I figure out how to call up on screen the value of said variable, it will be the same for all types of events, but I also would like to add situations where other characters keep track of certain variables.
For example, a cleric learns a spell from someone, each time the spell is used it has its desired effect (heal/damage/whatever) and also calls a common event to add +1 to variable [Spell Name] I already have common events that check and say if variable = 20 for example, learned upgraded version.
I would like to have the character go back to the person they learned it from and have the person say something like: "Oh, I see you've been working on the skill I showed you, you've used it [xxx] times." [xxx]= value of variable.
Edit#2: Topic got moved to the right spot while I was editing it, Thanks )
Right now what I am trying to figure out is how to use variables for a password. I know how to set up a fixed number password, but I want to set up a random password.
Example, talk to guy1 in one location, and that event uses the command:
@>Control Variables: [0008: RandomPW1] = Random No. (0...9999)
That should cause the variable RandomPW1 to be set to a random number between 0 and 9999.
I can get all this to work, but the problem I am having is, I don't know how to make the NPC pop up a text box with the actual numerical value.
example:
NPC1: Come for a password?
Choices yes/no
Yes = Ok (randomizes PW)
Text: Your password is....
Text: (variable value)
That way the user knows what the randomized variable is.
For this example I want to use a 4 digit PW.
I have several other questions but i'll settle for this one for now.
Thanks in advance for any help
Edited to add:
I'm not even sure if this is in the right area now, if not, i'm sorry, very tired writing this up, but I thought of more things to add about this specific question.
I assume that this will work the same way and once I figure out how to call up on screen the value of said variable, it will be the same for all types of events, but I also would like to add situations where other characters keep track of certain variables.
For example, a cleric learns a spell from someone, each time the spell is used it has its desired effect (heal/damage/whatever) and also calls a common event to add +1 to variable [Spell Name] I already have common events that check and say if variable = 20 for example, learned upgraded version.
I would like to have the character go back to the person they learned it from and have the person say something like: "Oh, I see you've been working on the skill I showed you, you've used it [xxx] times." [xxx]= value of variable.
Edit#2: Topic got moved to the right spot while I was editing it, Thanks )