Jump to content

Recommended Posts

 Forgive me if I'm a little dense on this but I was wondering how I could intentionally make looping dialogue for each time a character talks as in they will say A, B, and C in order. The best example I can think of is from Brentilda in Banjo and Kazooie. I've tried googling it but I've only found results that either fix it when it's an issue or if it's multiple choice, which I currently do not need. Help please? ' w ' ;

Share this post


Link to post
Share on other sites

There's that too. I had just seen the loop thing in the commands and just thought it had something to do with that. xwx; I only say that since I had seen someone else use one page to make random dialogue for their NPCs I'm just wondering if there's a way to do the same thing but keep it all in the same order rather than being random.

Edited by QuizicalGin

Share this post


Link to post
Share on other sites

You could probably use a label. Put a label at the start of the dialogue and then at the end put the command to jump to the label. If that's what you're after?

Share this post


Link to post
Share on other sites

Sorry, a label won't work. You'll need to use a variable or a series of switches.

This requires indexing. Indexing is just saving a value, and using that value to check what you're doing.

 

Just check if the variable is 0. If so, increase it by 1, show dialogue, and exit event processing. If 1, show next dialogue, increase by 1, etc. until the end where you set the variable back down to 0.

Share this post


Link to post
Share on other sites

Forgive me for asking, but would you mind shhowing me a screenshot so I know how to set it up? If there's a way to mess up I'd be one of many to find it probably . ; w ;

Share this post


Link to post
Share on other sites

 

YodFbYF.png

 

 

You can replace the self switches with normal switches, or variables (this requires a bit more, it's better if you want to loop for more than 3 dialogue snippets.

 

Basically, when u talk to the cat, if self switch B is off, it goes to the next check. If self switch A is off, the cat says "I'm a cat" and turns self switch A on. The next time you talk to it, since A is on, it will say the other option (I like fish) and turn B on. This means the 3rd and final time you talk to it, since B is on, it will say "sdfsldjfls;" and turn all 3 switches off again, to be repeated.

 

EDIT: Don't do the self switch C part, that parts unnecessary. A careless error on my part.

Edited by The Yank

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

  • Recently Browsing   0 members

    No registered users viewing this page.

×