Attack related questions

● ARCHIVED · READ-ONLY
Started by kj3400 4 posts View original ↗
  1. Two questions.


    Is there some way to have an attack that regains HP depending on the attack of the user?


    If an enemy gives a state to a particular person, is there a way for that state to prevent the person from attacking only the enemy that gave it that state?
  2. Hey KJ

    Your first question can be done with the damage bar. But, needs a bit more explanation before I can advise.

    Is it a skill only for healing, but is based on the a.atk value? 

         - for this you would just change the skill to HP recover and use a.atk as part of the formua

    Does it cause damage to enemy and heal some to the user?

         - for this you would do something like: c = damage; a.hp+= x; c

         - this would heal the user for X hp and deal damage formula C. x could even use the c value so it is a percent of damage dealt like. a.hp += c * 0.1

    The second question would actually be pretty difficult... It would require a reassessment of what is considered a "target" by reading the state's of every battler on the screen other then the actor whose turn it is and assess if they will be a target for that actor or not before the actor gets their turn... I don't know much about scripting, but changing target functioning is relatively difficult in general let alone doing it between 2 players turns... after the last person acted, but before the next person gets to act.

    ~ Dinhbat
  3. It's the second one. Thanks for the help with the first question.


    However, I still haven't figured out the second one.
  4. I was still wondering about my second question, that is, if you can create a state that prevents the user from being attacked by the person it is cast on.