RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
[RESOLVED] Skill damage Formula help

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 86
I am having issues with the formula for damage on RMVXA. How can I set up a skill so that it works like final fantasys Demi. I want the skill to take out about a quarter of the characters current health. example: 500 hp then attack will cause 125dmg, 100hp then attack does 25dmg
« Last Edit: August 17, 2012, 12:34:10 AM by BloodyChaos »

***
Rep:
Level 57
Everything about Rendered Fate
I think the variable in the formula [which doesnt need a script] is b. hp, but don't quote me, from there multiply by a decimal and you have Demi.
Link to my game is here.
http://rmrk.net/index.php/topic,45507.0.html
Feedback will be nice to get, constructive or otherwise.

***
Rep:
Level 86
I dont get it lol srry im really bad with variables XD

***
Rep:
Level 57
Everything about Rendered Fate
Put b. hp in the damage formula deal and multiply it by a decimal, it will then do what you want it to do.
Link to my game is here.
http://rmrk.net/index.php/topic,45507.0.html
Feedback will be nice to get, constructive or otherwise.

**
Rep: +0/-0Level 55
RMRK Junior
Put b. hp in the damage formula deal and multiply it by a decimal, it will then do what you want it to do.

Ah, why not just tell him exactly what to put in the field?

For the formula for FF's Demi which cuts 1/4 of the enemy's HP use this in the formula field:

if b.hp >= 2; (b.hp * 0.25); else; 1; end;

What it tells the Maker is: If the target's HP value is higher than or equal to 2, multiply the target's current HP by 25% (that is, cut one quarter) - else, that is, if the target's HP is below 2, deal 1 HP damage.

The If check is included because Demi doesn't kill the enemy unless its HP are 1, and if HP are 1, it deals 1 damage.

Edit: Forgot to mention that I'm using Victor's Damage Limit script ( http://victorscripts.wordpress.com/rpg-maker-vx-ace/gameplay-scripts/damage-limit/ ). Since Demi caps the HP cut at 9,999, you should modify the formula like this unless you're also using the script:

if b.hp >= 2; [(b.hp * 0.25),9999].min; else; 1; end;

It changes the damage to "1/4 of the target's current HP or 9999, whichever is the lower value".
« Last Edit: August 16, 2012, 02:36:28 PM by Caveras »

***
Rep:
Level 86
awe thank you lol I would have never got that lol thank you so much :D