Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

I need help making a name in a game, I'm a newbie

10 years ago

I am not sure how to do this part:

 

ake a variable change so that the variable DIGIT1 is increased by the number that is equal to the letter you clicked on, for example: 1 for a, 2 for b, and so on. For the later digits, you use the DIGIT2 variable for the enter letter 2 page, DIGIT3 for the enter letter 3 page, and so on

On the enter letter 2 page, make a reset link, an enter name link that goes to the enter name page, and the 26 letters. Make these links on all the other pages. On each page, for each letter, make it go to the next page. For example: You are entering letter 2, make all the letter links go to the enter letter 3 page. After the player has entered their 8th letter, make it automaticly enter. In other words, link the pages on enter letter 8 to the enter page rather then the next letter page, because there is no next letter. On the reset link, make it loop back to the enter letter 1 page, and reset all the variables.

 

 

Please help me. Thank You

 

I need help making a name in a game, I'm a newbie

10 years ago

In my opinion, it would be better to make several names, and write different paths that have the names rather than making a complex name system. Or just pick a name for the character. This is more complex stuff, and honestly, you might want to make a few games before you dive into this.

I need help making a name in a game, I'm a newbie

10 years ago

Wouldn't that be more complex if I were to have 7 characters and each character had their own story etc? I think that would be more complex to write 7 stories than writing a code for a name

I need help making a name in a game, I'm a newbie

10 years ago

What I meant was create a few names for that character, and let the player decide which name they want. I didn't mean create a new story for each name.

I need help making a name in a game, I'm a newbie

10 years ago

Perhaps you could do the same storyline from different perspectives. Just an idea.

I need help making a name in a game, I'm a newbie

10 years ago

Question: How do you plan on using this name in the story?

I need help making a name in a game, I'm a newbie

10 years ago
You are aware that you can do that all on one page, right?

I need help making a name in a game, I'm a newbie

10 years ago

That's not what I read in the article

I need help making a name in a game, I'm a newbie

10 years ago
I've done it (never published the game I did it in, though).

I need help making a name in a game, I'm a newbie

10 years ago

Okay could you please tell me how you did it? I'd really appreciate it. Also I'm wondering what your opinion is, if I were to have people be able to choose their name and then each name took them to a different story within the story, how complex would that be to make as well as making sure the name they picked was remembered.

I need help making a name in a game, I'm a newbie

10 years ago
Well, you need to create the page where you let the player set the name. On that page, create 27 links. The first 26 are going to be the letters of the alphabet, starting with 'A', ending with 'Z'. These 26 links all link to the name selection page. The 27th is going to be a 'Continue' link that links to another page. Now, create eight variables (DIGIT1 to DIGIT8) and another variable named DIGITCOUNT, then make sure scripts are enabled in the 'storygame options' tab. Once all that is done, go back to your name selection page and go to the script for the 'A' link. There, input:

IF %DIGITCOUNT = 0 THEN %DIGIT1 := 1
IF %DIGITCOUNT = 1 THEN %DIGIT2 := 1
IF %DIGITCOUNT = 2 THEN %DIGIT3 := 1
IF %DIGITCOUNT = 3 THEN %DIGIT4 := 1
IF %DIGITCOUNT = 4 THEN %DIGIT5 := 1
IF %DIGITCOUNT = 5 THEN %DIGIT6 := 1
IF %DIGITCOUNT = 6 THEN %DIGIT7 := 1
IF %DIGITCOUNT = 7 THEN %DIGIT8 := 1

%DIGITCOUNT := %DIGITCOUNT + 1

You will want to put that script on every letter link, replacing '1' with the number corresponding to the letter. To keep things neat and tidy, you will want to put a restriction on every letter link so that they only appear when the DIGITCOUNT is less than 8. You will want to put a restriction on the continue link so that it only appears when %DIGITCOUNT is greater than or equal to one. The variable display text needed to display the name on the page is the same as the text in the articles.

I need help making a name in a game, I'm a newbie

10 years ago

Can I start on the very first page with these links?

I understand the first part but where you start with the variable list of DIGITCOUNT is confusing, I'll have to read this a few times

I need help making a name in a game, I'm a newbie

10 years ago
"Can I start on the very first page with these links?"

What do you mean?