making a practice game and need to know how to make a shopkeeper say one thing,but only once and that phrase would be replaced with "what would you like to buy" the whole game how do i achieve this?
example😮ne time only "oh,i see you are short a person in your group"
and then after that sentence i want the shopkeeper to say the other phrase only for the rest of the game.
I'd recommend conditional branches or switches.
the key to make anything "one-time-only" is to use switches.
Make the first event page without conditions doing what should happen only the first time, turning a switch ON after that
Make a second page with what should happen every other time, and condition that page to the switch that is turned on the first page.
Conditional branches are second-best-options for things like that, better use multipage and conditions but not conditional branches.
[Agrees with above]. I use a similar method for brief introductions to a shop upon the first visit. The first time a character visits a new kind of shop, page one plays out. Page one has the shop event at the bottom, but with no intro string built into the shop. A text function explaining the purpose of the shop happens before the shop function opens (like an intro-tutorial)... then at the very end of page one, I turn a switch on. Then every time the player talks to the shop-keeper after that, it goes to page 2 instead. Page two starts with a different more basic text, along the lines of "Welcome back! What can I get for you?"... followed by the same stringless shop-function.
Beryl you are phuckin awesome for this schit man.I had that stuff the exact opposite of what you did thats why mine wasn't working.
mine had the selected condition on instead of off and my switch didnt have that in it.If i ever learn this thing to a decent degree i'll do what you did and make the tutorials pictures instead of text 😀
(the pictures take less space and are worth a thousand words)
Switches are pretty basic, and getting them the wrong way around (which it seems you did, from your description) is a common problem with people new to the engine. There are some good tutorials around that teach you when and how to use them properly 🙂
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.