Announcement

Collapse
No announcement yet.

I need help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    I need help

    I'm new to this but my friends and I are trying to make an NPC disappear after an event. if there is a way let me know by emailing me at wild_bill236@yahoo.com I appreciate it

    thanks,
    Bill

    P.S I'm using RPG Maker 3, But we're trying to haveit where where we talk to some ane start a fight scene and after it is over or after a conversation is over they disappear.

    #2
    Re: I need help

    Yeah, it's not too hard to do.

    In the NPC Character's event script, this would be the basic skeleton of your event:

    Display Message: (pre-battle dialogue)
    Event Battle (or Character Battle, if you want to fight against a Character Model instead of Monster Models)
    Display Message: (post-battle dialogue)
    Display Off: (name of this NPC)

    If you want the player to be allowed to lose this battle without a Game Over, you need to do a few other things. If that's the case, say so and I'll show you an example of how to make that work.


    How Badly Do You Want It? (VX Ace) is now available for download! - no outside software necessary.

    "I live and love in God's peculiar light." - Michelangelo

    Comment


      #3
      Re: I need help

      O.K. here is a short review of what we want to do. give me a little insight on how to get NPC to either walk away or disappear. my friend wants to do kinda like the little boy who cried wolf scenario but with another story line when we walk into a city.

      1. main character walks up to the NPC he screams for help (in a matter of speaking).
      2. fight scene with town guards.
      3. repeat no.1
      4. repeat no. 2
      5. repeat no.1
      6.town guards doesn't show.
      7. the boy disappears of walks away like the wolf got him.

      how would I do this

      Comment


        #4
        Re: I need help

        From the way that I interpret this, you are going to have a little bit of difficulty. The main problem is that it is not possible to make an NPC walk in a direction that you want them to; it is possible for them to wander randomly, but I don't think that's what you're looking for.

        As far as making him "disappear", you have two options. You can do it using modes, or you can do it using variables. There really isn't a significant difference that you need to worry about so just pick whichever sounds appetizing.

        If you want to use modes, you will need to create an NPC (the boy) and give him three modes. The first mode, the one he begins in, will have a line of code that makes him "scream", a line of code that makes the battle begin, and a line of code that changes the boys mode to mode two. This will let the game "register" that you have spoken to him. The second mode will look the exact same as the first, except that at the end it will switch the boy into mode three; the second mode is where the game registers that you talked to the boy again, thus making him cry wolf again, thus making your character fight guards again. The third mode will have the boy "scream" like before, but this time no battle occurs. Then, you can just turn his display off to make him disappear.

        Using variables is slightly different. In the boy's coding, (the first mode; we won't be needing to use any mode besides the first) but a variable branch with three options. One of these options will be when the selected variable is equal to 0 (before talking to the boy). One branch will be when the variable is equal to 1 (after talking once), and one branch will be variable is equal to 2 (after talking twice). In the first and second parts of the branch, you'll make the boy scream and make the guards come. In the third part, he'll scream and no one will come. He will then vanish via the "display off" command.


        If you need help with understanding variables or modes, or if you want me to actually tell you the way that the code will look written out, I would be happy to do so.
        Just call me judge, jury, and a cab.

        Current Project: We The Brave

        Fearless Gaze Studio here:http://www.pavilionboards.com/forum/...play.php?f=159

        Comment

        Working...
        X