Announcement

Collapse
No announcement yet.

Finding enemy hp in trait script

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

    Finding enemy hp in trait script

    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??
    Srry I put this on a new thread but no one replied on the other thread.It was at least 3days since I wrote it. As for the trait script, I did this:
    Data: Variable: Probability Variable: 1 ? 100
    Data: System: Battle Action (Attack)
    Battle Substitute Target Attribute for Variable
    SBC: Hip Points = 5
    SBC: Probability Variable < or = 35
    Data System Database Number For Variable: Ability: (Special Ability)
    Data: System: Battle Action: (Skill)
    SBE
    SBE

    #2
    Re: Finding enemy hp in trait script

    Well I would suggest looking at the
    Check who goes first and
    Check who goes next command.

    These will change who the instigator is (the variable for it), so you also must make sure to return the order before getting out of the trait script. This will allow you to look at the stats for any character or enemy in battle. But like I said these commands if used improperly can make some really wierd things happen to your battle system, so I would suggest making a script which will display the target (both target vars) and the insti vars (both of them as well) at each persons turn.

    This is because when you use trait scripts you typically have to have a choose target script as well then set the Action: Target variable to that. I can't remember how it works since it's been a while, but if you can't figure it out in a few days I'll look over my old code for this.
    はじめまして。真(しん)の冷静(れいせい)です。どうぞよろしく。
    http://www.thetruecoolness.com/

    5198-2124-7210 Smash

    Comment


      #3
      Re: Finding enemy hp in trait script

      I sorta understand but I just need to know how to create the script

      Comment

      Working...
      X