Original Source
- Original title: Victor's Custom Hit Script Support
- Original author: Lifestorm
- Original date: May 17, 2014
- Source thread: https://forums.rpgmakerweb.com/threads/victors-custom-hit-script-support.27082/
- Source forum path: Game Development Engines > Ruby Game System (RGSS) Scripts > RGSSx Script Support
Summary
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"...
Archived First Post
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
Downloads / Referenced Files
Log in, then follow the RPG Maker Developers Group to see these download links.
Log in to downloadCreator Claims / Removal
If you are the original creator and want this listing reassigned, edited, or removed, join BMMPlay and contact the moderators with proof that matches the original RPG Maker Web profile, linked GitHub, itch.io page, or another public creator identity.
Replies (0)
No replies yet.
Topic Summary
Loading summary...