Announcement

Collapse
No announcement yet.

Illutian Playa's Questions

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

    Illutian Playa's Questions

    I figured that I would have a bunch of questions so I decided to post them all in one thread. I may be an intermediate RPG Maker 2er but it doesn't mean I can't have questions! Ok, first question on this thread:

    I'm am attempting to create a script that will lower armor by 25% in battle. This is for a spell. The trouble is actually trying to lower the armor! I used an enemy with 9999hp and 300Defend(aka 300Armor) and everything else at 0. I tested attacks on it with the hero of the game and I had no items on. He had 402 Strength. My average hits were around 330hp to 410hp. The next test, I took off 25% of the enemies defend so it had only 225. Now on this test, all was same but the enemy defense. I did around 380-450damage this time. Now as for the script that lower armor, I copied the fu-ma script straight down to the pixel(except for the dialouge). Now, when i attack the enemy, i gave it back 300defend and tried the armor weaking spell. It "worked" and so I attacked and yet, it still did around 330-410hp instead of 280-300. Could I just possibly set the script so it had only dialouge, the script branch condition, and this command:
    Data Variable: Armor= Armor x 25
    Data Variable: Armor= Armor / 100 (/ = divide)

    and from there, the terminate command can contain this:
    Data Variable: Armor= Armor x 100
    Data Variable: Armor= Armor / 25

    Or does anyone know how to make one that works?
    Last edited by Illutian Playa; 11-22-2006, 10:43 PM.

    #2
    Re: Illutian Playa's Questions

    Try this:

    Var A = Armor / 25 (to get 25% of Armors value)
    Armor = Armor + Var A(To strengthen by 25%)

    or

    Var A = Armor / 25 (to get 25% of Armors value)
    Armor = Armor - Var A(To weaken by 25%)

    then to set it back just do the opposing coding of the one you used

    I havent played RPG2 so I dont know if this is possible, but this is an alternate way of adding/subtracting percentages that I find easier then using 100's and multiplying
    Last edited by JPS; 11-22-2006, 10:32 PM.

    Here I come Pav, like the Kool-Aid man barging into a funeral! Oh yeah!

    Comment


      #3
      Re: Illutian Playa's Questions

      thanks but it wouldn't truly matter to me, All i need answered is how to make a script that DOES subtract Enemy Armor by 25%.I can't quite get it to work.

      Comment


        #4
        Re: Illutian Playa's Questions

        Var A = Armor / 25 (to get 25% of Armors value)
        Armor = Armor - Var A

        use that to subtract it then, or maybe Im not getting the question...I dont know...I tried

        Here I come Pav, like the Kool-Aid man barging into a funeral! Oh yeah!

        Comment


          #5
          Re: Illutian Playa's Questions

          Code:
          Data: Target Info Load
          Data: Armor=Armor*3
          Data: Armor=Armor/4
          Data: Target Info Save
          For the recovery script, use:

          Code:
          Data: Target Info Load
          Data: Armor=Armor*4
          Data: Armor=Armor/3
          Data: Target Info Save
          Last edited by DYRE; 11-23-2006, 10:37 AM.
          .

          Comment


            #6
            Re: Illutian Playa's Questions

            ty, i'll see if that works. It looks like it won't but I'll try anything x.x

            Comment


              #7
              Re: Illutian Playa's Questions

              If it doesn't work, it's because I haven't used RPGM2 in a few months. However, if it won't work, I'll try to fix it.

              EDIT: Post number 777.
              Last edited by DYRE; 11-23-2006, 01:04 PM.
              .

              Comment


                #8
                Re: Illutian Playa's Questions

                ooooh....so I didnt get the question...sorry

                Here I come Pav, like the Kool-Aid man barging into a funeral! Oh yeah!

                Comment


                  #9
                  Re: Illutian Playa's Questions

                  Well, it didn't work ,but I decided to use the sample one x.x lol, it just looked complicated xD.
                  Next question, Anybody know how to set up a trait script that has a 100%chance of using normal attack BUT if it the monster is under 10% HP, Then they have a 35% chance of using their speical ability. For the 10% thing, its a trait script so I'd have to load the monster's hp and make a sbc that checks if its exactly at the 10% point or under. Ex. If the monster had 50hp, I would check to see if it had 5 or less hps. Anyone know how to set up this script??
                  Last edited by Illutian Playa; 11-29-2006, 08:40 PM.

                  Comment

                  Working...
                  X