Custom Hit/Avoid and Crit Formula

Gelsamel

Warper
Member
Joined
Nov 8, 2015
Messages
2
Reaction score
1
First Language
Dutch
I'm currently working on an entirely revamped system for the stats in my game, but I have exactly 0 programming experience with Javascript.

Basically what I'm trying to do is create a system where every stat point is of equal value to any other stat point. So a point in attack is equally valuable to a point in defense. Additionally, the level of the character plays a role in the formula as well. I've managed to work out the physical and magical attack aspect through the database, but now I want hitting and dodging to be dependant on a character's stats.

What I want:

Idealy I'd like a plugin that allows me to create a formula in the same way the database allows you to create damage formulas. I've also used this script in order to give enemies levels and would like to be able to use these custom variables within the formula.

Example:

The chance to miss formula that I'd currently want to make with this script is the following: ((a.agi * ((20 + (a.level - b.level))/20)) / b.agi) * 20

I'd like to make the same formula for crit chance, using luck instead of agility.

Is there any skilled programmer who could help me with this? I've been looking for a while, but nothing similar to this has shown up for me.
 

Neo Soul Gamer

Veteran
Veteran
Joined
Aug 10, 2012
Messages
653
Reaction score
391
First Language
English
Primarily Uses
N/A
Search for Vlue's plugin compilation. It's in the forums. He has a Stat Formula script that will do what you need. 
 

Gelsamel

Warper
Member
Joined
Nov 8, 2015
Messages
2
Reaction score
1
First Language
Dutch
I've played around with it a bit and it looks like it does exactly what I need it to do. Thanks a lot for the tip!
 
Last edited by a moderator:

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c

Forum statistics

Threads
105,857
Messages
1,017,019
Members
137,564
Latest member
McFinnaPants
Top