Announcement

Collapse
No announcement yet.

Another question

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

    Another question

    Maybe you'll remember that in this thread...
    http://www.pavilionboards.com/forum/...d.php?p=291813
    I suggested an option for using less NPC and make it look like there are more. There is an event-based battle in it.
    When the player enters all those dungeons (9 total) the last fight in the dungeon should give him a key. If I use variables to increase the variable each battle, one could enter the same dungeon 20 times and get the key. Is there another way to get the key?
    Game in progress: "Cards of Destiny"!
    How many of you have tried Game Maker, for PC?

    #2
    Re: Another question

    Umm, use variables correctly? I don't understand your problem.

    Just variable + 1 each battle and when it hits the right amount do party > add treasure item. Then increase it once more to stop the key being given twice.

    Comment


      #3
      Re: Another question

      In the events that increase the variable when you enter the dungeon, add a 'display OFF' event code to keep the same dungeon from adding to the variable again. If you need those events to remain, use one of the dungeon's internal variables (to keep things simple). When the event activates, increase not only the 'number of dungeons' variable, but that dungeon's internal variable 1 (let's say).

      Now, add a V-C branch at the beginning of the event. If the dungeon's internal variable 1 ='s 1, then you've already increased the 'number of dungeons' variable, and it won't do it again.

      Comment


        #4
        Re: Another question

        No, Obright, it is the same dungeon that you enter many tims, making it seem like you enter many. I can add +1 to a variable, but one could be using the same door to enter the dungeon, when the point is entering through all the doors.
        Game in progress: "Cards of Destiny"!
        How many of you have tried Game Maker, for PC?

        Comment

        Working...
        X