Announcement

Collapse
No announcement yet.

How would I do this?

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

    How would I do this?

    Ok say I want a monster to drop a key, have the player bring the key to a NPC, and the NPC will turn the key into another key that will open a door in a dungeon. How would I do this? Would I use a value-conditional branch event code or? I don't understand variable's at all so any help would be greatly appreciated ^^ thank you!

    #2
    Re: How would I do this?

    It's not a random battle, right? This only works with event battes.
    For this example, lets make shared variable 5 the key related variable. In the event code where you get the key, make shared variable 5 = 1, and give the party Key1. (Key2 is the key that opens the dungeon door.)

    Then, on the NPC, do this code:

    Val Control Branch: (Shared Variable 5)
    Option 1: Shared Variable 5 = 0
    *Here, place any code that occurs BEFORE the player finds the key, i.e, what the NPC will say.*

    Option 2: Shared Variable 5 = 1
    Display Message: "Liek HEY D00d u got key!!!1!11" (or whatever he says)
    Remove Item: Key1
    Give Item: Key 2
    Display Message: "Mr. Dude exchanged key 1 for key 2!"
    Variable 5 = 2

    Option 3: Shared Variable 5 = 2
    *Any code that occurs AFTER the NPC gave the characters Key2.*

    Comment


      #3
      Re: How would I do this?

      Originally posted by hitogoroshi
      It's not a random battle, right? This only works with event battes.
      For this example, lets make shared variable 5 the key related variable. In the event code where you get the key, make shared variable 5 = 1, and give the party Key1. (Key2 is the key that opens the dungeon door.)
      I don't get this part lol ; ; How do I make the boss to drop the key?

      Comment


        #4
        Re: How would I do this?

        Don't. In the event, but after the boss battle, give the party the key.
        .

        Comment


          #5
          Re: How would I do this?

          Actually, as the boss would need his own monster party, you could make it be dropped by the boss in the items section of the monster party. You see, key1 is not nessacary, only the variable. The code would function the exact same without the key, it's just for the players benefit.

          Comment


            #6
            Re: How would I do this?

            Originally posted by DYRE
            Don't. In the event, but after the boss battle, give the party the key.
            I don't understand that either lol... I don't understand the variable things :/

            Comment


              #7
              Re: How would I do this?

              ...thats not variable related in the slightest. Giving the party the key in the code is simply Party Control (I think): Give Item. Whereas for the boss it's just done in the monster party item list.
              Last edited by hitogoroshi; 06-27-2006, 05:00 PM.

              Comment


                #8
                Re: How would I do this?

                I think I get it (finally), but how do I make the shared variable 5=1 after the player beats the boss?

                Comment


                  #9
                  Re: How would I do this?

                  In the event code where the players fight the boss, do Propery Control: Modify Shared Variable: Shared Variable 5=1.

                  Comment


                    #10
                    Re: How would I do this?

                    ahhhh I get it now. Thank-you very much for explaining all this too me ^^ I'll put you in the game credits

                    Comment


                      #11
                      Re: How would I do this?

                      Hehe, thanks. Me and Page are there for all the questions (except "where babies come from." You're on your own there.)

                      Comment

                      Working...
                      X