Tutorial dialogue keeps repeating?

Mr. Detective

NATO Special Operative
Veteran
Joined
Sep 9, 2012
Messages
1,034
Reaction score
494
First Language
English
Primarily Uses
N/A
This is strange. I want this dialogue to play only in this troop encounter. How come it pops up again in the other battles as well?

aas.png


Funny. I remember doing something like this before, but don't recall running into this issue. :v

Appreciate any help! =w=
 

Arthran

Veteran
Veteran
Joined
Jun 25, 2021
Messages
194
Reaction score
173
First Language
English
Primarily Uses
RMMZ
Are you running any plugins? I could be making things up, but I seem to recall that one of VisuStella's plugins has some type of "troop template" thingy, where you can design one troop event and have it apply to all of your troops.

It didn't sound like a feature that I had any interest in, so I didn't bother to remember which plugin it was, or how to activate the feature, but I would guess that you're maybe using that plugin and are accidentally using that feature.
 

Enigman

Veteran
Veteran
Joined
Mar 1, 2021
Messages
47
Reaction score
100
First Language
English
Primarily Uses
RMMV
It pops up for other battles for the same troop type? By default, it looks like your event will occur every time there is a battle with that troop type. I don't see anything in your code that would make the condition false. That is, every time that troop is engaged, in every battle, it will show your choices.

If you have done it previously, you probably set a variable after the choice prompts to go through the tutorial. Then the next time the troop is encountered, the variable is checked to see if it should prompt again. The variable would need to be available outside the scope of your battle event otherwise each new troop instance would result in the dialog appearing once again.

You'll probably want to set a control variable outside of the battle event, set it depending on whether they select the tutorial and have a check to see the state of that variable before presenting the choice. Or move the tutorial choices to a common event and set the variable there, if it's set, don't run the tutorial prompt. Then you would call the common event from your battle event.

There are undoubtably plugins out there that would achieve the same result and someone more knowledgeable will probably have the answer.
 

Lady_JJ

Veteran
Veteran
Joined
May 6, 2019
Messages
407
Reaction score
298
First Language
English
Primarily Uses
RMMZ
This is strange. I want this dialogue to play only in this troop encounter. How come it pops up again in the other battles as well?

aas.png


Funny. I remember doing something like this before, but don't recall running into this issue. :v

Appreciate any help! =w=
I asked the same question on the VisuStella Sample Project Help Thread and received this answer.

Is this battle event in troop1? Which by default will run on every battle?

VisuMZ_1_BattleCore > Mechanics Settings > Base Troop ID's

Whichever base troop ID is set here will run for every battle.

If you're using VisuStella BattleCore plugin, this may be your answer as well.
 

Mr. Detective

NATO Special Operative
Veteran
Joined
Sep 9, 2012
Messages
1,034
Reaction score
494
First Language
English
Primarily Uses
N/A
Are you running any plugins? I could be making things up, but I seem to recall that one of VisuStella's plugins has some type of "troop template" thingy, where you can design one troop event and have it apply to all of your troops.

Yep. This was the culprit. Thanks, guys!
100.gif
 

Latest Threads

Latest Profile Posts

Remember to do your 0,01% progress on your game today!
Went to see Jujutsu Kaisen 0 yesterday, it was cool. The movie wasnt really a masterpiece, it had some pacing and characterization problems, but overall I enjoyed it, maybe because it was the first anime film I have ever been to in the cinema lol. The battle animation & music were top-notch. I havent seen much of the anime so people who watched the entire season would probably like it more.
MainMenu.PNG
Finally satisfied with the main menu xD

The plan was to have battle sprites in the menu...But these faces from Ocean's Nostalgia look pretty damn good imo. (Will have to adjust for them ofc and maybe recolor to match the overworld/battle sprites more)
It's always disturbing to me to see my cat eating something off the bathroom floor.

Forum statistics

Threads
121,988
Messages
1,145,736
Members
160,259
Latest member
Leonson
Top