I have a question related to the Attack command

● ARCHIVED · READ-ONLY
Started by rpglover88 8 posts View original ↗
  1. Hi everyone. :)

     

    Since i couldnt find a thing on the net about this, i guess its either a really easy thing to do or something really complicated.

     

    Anyway, heres my question: For the 2 first actors, when they use the attack command in a battle, i want it to use the Agility stat and for the 2 other actors, i want it to use the attack stat. Could you please tell me how to do this?

     

    Im guessing it has something to do with the formula thingy, but im not entirely sure... All help is really appreciated! :D
  2. Not a dumb question, but not a helpful thread title. Can you please edit it to make reference to what your question/problem actually is?


    There is a thread around called Making the Most of Custom Formulas. Check it out for some ideas. You can do what you want by having a simple condition to see who the actor is, and performing one calculation or the other depending on the result.
  3. Sure. And thanks, but i already saw that thread. It solved another question i had but it didnt help me for this problem.
  4. Do you want to do it for chance to hit or just damage?

    If damage - make_damage_value in Game_Battler is where you want to put your changes.

    Most direct way, anyway.
  5. This damage formula should work:

    a.id <= 2 ? a.agi : a.atkSo that would output a.agi for actor 1 and 2.

    If the 2 characters are not sequential in your database. You can put an or statement.

    ~ Dinhbat
  6. @Mouser: I found the  make_damage_value but i have no idea what to do there. :(

    @Dinhbat3 Thanks! Ill try that. But what do you mean by "You can put an or statement."?

    Edit: @Dinhbat3: Should i add the default attack skill formula after that? Or should i only put your formula alone? 
  7. when you make a conditional statement it looks like this. This is the a basic condition.

    if x == y

    if you have 2 requirements that both need to be true it can look like this an AND statement, where both need to be true, if one is false the whole thing is considered false and wont run.

    if x == y && a == b

    if you want it so that only one of several options can be true that is an OR statement where if either or both are true, then the whole statement is true and will run.

    if x == y || a == b
  8. Im not really good with formulas and stuff like that. But i did understand part of what you said. Thanks! :D