Hi guys,
I am trying to write a hit formula to use with Victor's Custom Hit Script and have almost no experience with Ruby, and I was wondering if someone might be able to help me out with this. Here is a link to Victor's script: https://dl.dropboxusercontent.com/u/27014140/Scripts/Victor%20Engine%20-%20Custom%20Hit%20Formula.txt
What I am trying to do is very simple. Essentially, if the formula returns a "True" result, the skill will hit. If it returns a "False" result, the skill will miss. According to Victor, "You can use "a" to refer to the attacker, "b" to refer to the defender, "v[x]" to use variables on the formula, "hit" to refer to the attacker hit, rate and "eva" to refer to the defender evasion."
I am trying to write a formula for a skill that will only hit Enemy ID 043. Could the following work?
<hit formula>
b.id % 43 == 1
</hit formula>
This might be hilariously wrong, but again, I have no experience with Ruby, so I was wondering if someone could help me out. Additionally, if in the future, I need this skill to hit enemy ID 44 and other enemy IDs as well, how would I go about making the formula include this?
Thank you so much for your help and support, and thanks to Victor for writing up this very handy script.
Lifestorm
I am trying to write a hit formula to use with Victor's Custom Hit Script and have almost no experience with Ruby, and I was wondering if someone might be able to help me out with this. Here is a link to Victor's script: https://dl.dropboxusercontent.com/u/27014140/Scripts/Victor%20Engine%20-%20Custom%20Hit%20Formula.txt
What I am trying to do is very simple. Essentially, if the formula returns a "True" result, the skill will hit. If it returns a "False" result, the skill will miss. According to Victor, "You can use "a" to refer to the attacker, "b" to refer to the defender, "v[x]" to use variables on the formula, "hit" to refer to the attacker hit, rate and "eva" to refer to the defender evasion."
I am trying to write a formula for a skill that will only hit Enemy ID 043. Could the following work?
<hit formula>
b.id % 43 == 1
</hit formula>
This might be hilariously wrong, but again, I have no experience with Ruby, so I was wondering if someone could help me out. Additionally, if in the future, I need this skill to hit enemy ID 44 and other enemy IDs as well, how would I go about making the formula include this?
Thank you so much for your help and support, and thanks to Victor for writing up this very handy script.
Lifestorm