Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Quick Question^^;

Okay here's the situation... my main character walks up to an NPC and the NPC talks, then gives the main character a little bit of gold, then talks some more. Say I want to prevent the NPC from giving the gold away over and over, how would I do that? I want the NPC to say the first part once, give the gold once, then say the 2nd block of text it says after giving the gold when spoken to from then on. I sense something dealing with switches..... [which I'm only a little familiar with x_x]
 
After the second batch of text, turn on self switch A. Then, make a new event page with the condition self switch A is on. Then just put that second text box in the second page of the event. Simple as that.
 

Mean1

Member

nice...I ask the same question not long ago and I think was criticized by some one and then this guy comes in and his question gets answered very quickly.  :mad: Any ways yes The way he explained it works a bit better than mine. Then again mine was a mission so I had to use a switch not a self control swith
 
Whatever. At any rate, this is not the place to discuss such things. If you want to start a discussion of how "tough love" can be too tough, then by all means, make a thread. But this clearly isn't the place for it.
 
Personally, I prefer not being called a jackass before the answer comes. :p  But nothing like that is happening in this thread anyway.

Just a note on this: I personally prefer an alternative method over the page tradition, when the NPC doesn't change move patterns after talking.

Instead of opening up an entire new page, simply use the same page and have a conditional branch.

Condition: If Local Switch A == On {
----[Message of NPC after being talked to once.]
}
Else{
----[Message of NPC for the first time.]
}

If you want to have more alternative messages than once, simply bracket that^ into another conditional branch in place of the Else of that one, with condition of Self Switch B etc.


There are a couple of advantages of this, including easier to take in for being all in view at the same time, less page hassles, does not interrupt custom movement patterns (another page will reset the movement pattern mark), etc.

Of course, it's still a lot just due to preferences, but just thought I'd throw this out there for those who want to scoop it.  :smile: Cha.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top