Mr. Bubble

Makes stuff.
Member
Joined
Mar 1, 2012
Messages
853
Reaction score
163
Ignore Guard

Script by Mr. Bubble


Summary

Apparently, there's no default way in the project edtior to disregard the target's Guard state when calculating skill/item formulae.

This script allows skills, items, and other database objects to ignore the target's Guard state which will allow developers to create damage formulae that's truly supposed to ignore defense such as "b.hp - 1".

Script

Can be found here: http://wp.me/PxlCT-rc

Installation

Paste this script into its own page within the "Materials" section in the script editor of your project.

How to Use

This script utilizes notetags. Please read the comments thoroughly.

Compatibility

This script aliases some default VXA methods. There are no default method overwrites.

Requests for compatibility with other scripts are encouraged and welcome.

Terms and Conditions

Free for non-commercial use.

If you wish to use this for commercial games, contact me first.

Please feel free to post coding and efficiency suggestions, script features suggestions, and bug reports.
 

Crimson Dragon Inc.

Crimson Dragon
Veteran
Joined
Aug 8, 2012
Messages
921
Reaction score
134
First Language
english
Primarily Uses
RMMV
um i dont mean to say anything, but if you click ignore def it also ignores guard, just saying i tested it out using my meteor spell (formula is 550 + A.MAG * 25 no element)
 

Mr. Bubble

Makes stuff.
Member
Joined
Mar 1, 2012
Messages
853
Reaction score
163
um i dont mean to say anything, but if you click ignore def it also ignores guard, just saying i tested it out using my meteor spell (formula is 550 + A.MAG * 25 no element)
Actually, all what the "Ignore Target's Defense" checkbox does is exclude the target's DEF statistic when creating an auto-generated formula. What it doesn't do is ignore when the target uses the Guard command.

Use your meteor spell on a Guarding target. Does it ignore the Guard damage reduction?
 

Crimson Dragon Inc.

Crimson Dragon
Veteran
Joined
Aug 8, 2012
Messages
921
Reaction score
134
First Language
english
Primarily Uses
RMMV
it does the same damage no matter what 9500-9999
 

Mr. Bubble

Makes stuff.
Member
Joined
Mar 1, 2012
Messages
853
Reaction score
163
it does the same damage no matter what 9500-9999
Hey, if it work's for you without a script, great. All my tests and the code in the default scripts say otherwise.

If you want to do further tests, you can try out these damage formulae with no variance:



Code:
b.hp - 1



Code:
1000



Code:
b.hp / 4
 

Crimson Dragon Inc.

Crimson Dragon
Veteran
Joined
Aug 8, 2012
Messages
921
Reaction score
134
First Language
english
Primarily Uses
RMMV
hmmmm this makes me wonder if guard will effect my skill break the fourth wall, it deals 999 +a.atk*100 + a.mag*100 damage and it hits all allies as well for 9999, you might try activating certain hit as well for your skills
 

Mr. Bubble

Makes stuff.
Member
Joined
Mar 1, 2012
Messages
853
Reaction score
163
hmmmm this makes me wonder if guard will effect my skill break the fourth wall, it deals 999 +a.atk*100 + a.mag*100 damage and it hits all allies as well for 9999, you might try activating certain hit as well for your skills
Firstly, that's an atypical damage formula. The fact that your damage caps at 9999 tells me you're using a custom script that caps damage. By default, there is no damage cap (aside from potential integer overflow).

Don't use an atypical formula and test in a clean project. Use smaller, predictable values. All you need to do is make a formula that does 1000 pure damage with no variance. In all tests where the target uses Guard, the damage will turn out to be 500. Certain hit doesn't matter.

Anyway, I'm done trying to justify the existence of this script. It's pretty obvious you're not testing in a clean project. The default code doesn't lie.
 
Last edited by a moderator:

Crimson Dragon Inc.

Crimson Dragon
Veteran
Joined
Aug 8, 2012
Messages
921
Reaction score
134
First Language
english
Primarily Uses
RMMV
i am using a clean script i used a common event to make it hit the entire party for 9999 damage if the enemy survives it somehow, the attack is designed to be a last ditch effort and cost 100 tp and 700 mp, though i changed it as there is a damage limit i tested the forumula with stats and the highest it ever dealt was 24981 this was having it hit a weakness
 

Mr. Bubble

Makes stuff.
Member
Joined
Mar 1, 2012
Messages
853
Reaction score
163
BhiQo.png


Set that up. Guard against it. 500 damage.

I'm done now.
 

Latest Threads

Latest Profile Posts

RyanYe wrote on whtdragon's profile.
Your art works about Wyrvens and Dragons are sooooooooo cooooooooool~! I like them so bad
Can you create more? like Archangels, Devils, Titans, Cyclops!!
My valentine cutscene is now available on itch.io and you can get the "source code" as well, feel free to check it out!

The game page on itch can be found at:
A self-aware gamer, playing my game on video, and being honest about his feelings: :kaojoy:


It gets funny, there's heart, and his laptop is on fire as he plays. :kaoswt2:
Just finished making a 50x190 map.

It's not the overworld, just a simple trip from a forest all the way up a mountain.
Now time to map out a metropolis.
I'm trying to add footstep sounds to our project, while my insides feel like they're being torn apart . . . ugh . . . I hate this time of the month! :mad: The only silver lining is that it gave me an idea for an event.

Forum statistics

Threads
108,795
Messages
1,039,538
Members
141,247
Latest member
feedtalefour
Top